mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Loongarch64: initial change for tool chain build
1. add loongarch64 in make.sh 2. updated many source tar balls with config.guss and config.sub with loongarch64 support 3. remove rust and surricata for now 4. workaround binary env dynamic linker missing by symbolic link tools_loongarch64/lib to lib64 when ./make.sh build cd build_loongarch64; ln -s tools_loongarch64/lib lib64 ./make.sh toolchain to build tool chain ./make clean to start fresh ./make.sh gettoolchain to extract tool chaina from cache ./make.sh build to build software and image Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
12
lfs/Config
12
lfs/Config
@@ -130,6 +130,12 @@ ifeq "$(BUILD_ARCH)" "aarch64"
|
||||
GRUB_ARCH = arm64
|
||||
endif
|
||||
|
||||
ifeq "$(BUILD_ARCH)" "loongarch64"
|
||||
EFI = 1
|
||||
EFI_ARCH = $(BUILD_ARCH)
|
||||
GRUB_ARCH = $(BUILD_ARCH)
|
||||
endif
|
||||
|
||||
# Go
|
||||
export GOARCH
|
||||
export GOOS = linux
|
||||
@@ -292,13 +298,13 @@ define POSTBUILD
|
||||
fi; \
|
||||
sed -e "s/BUILDTARGET/$(BUILDTARGET)/g" -e "s/KVER/$(KVER)/g" -e "s/xxxMACHINExxx/$(BUILD_ARCH)/g" $$ROOTFILE > $(TARGET)_rootfile; \
|
||||
while read -r line; do \
|
||||
if grep -qFx "#$$line" $(TARGET)_rootfile; then echo "#$$line" >> $(TARGET); \
|
||||
elif grep -qFx "$$line" $(TARGET)_rootfile ; then echo "$$line" >> $(TARGET); \
|
||||
if grep -qG "^#$$line$$" $(TARGET)_rootfile; then echo "#$$line" >> $(TARGET); \
|
||||
elif grep -qG "^$$line$$" $(TARGET)_rootfile ; then echo "$$line" >> $(TARGET); \
|
||||
else echo "+$$line" >> $(TARGET); \
|
||||
fi; \
|
||||
done < $(TARGET)_diff; \
|
||||
grep -v "^#" $(TARGET)_rootfile | while read -r line; do \
|
||||
if ! grep -qFx "$$line" $(TARGET)_diff ; then echo "-$$line" >> $(TARGET); \
|
||||
if ! grep -qG "^$$line$$" $(TARGET)_diff ; then echo "-$$line" >> $(TARGET); \
|
||||
fi; \
|
||||
done; \
|
||||
rm -f $(TARGET)_rootfile; \
|
||||
|
||||
Reference in New Issue
Block a user