mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
rootfiles: change MACHINE to xxxMACHINExxx
berkeley has a file that nane contain MACHINE wich should not replaced by the build architecture. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -193,7 +193,7 @@ define POSTBUILD
|
||||
ROOTFILE=$(TARGET)_missing_rootfile ; \
|
||||
echo "error $$LFS_SCRIPT not found in config/rootfiles"; \
|
||||
fi; \
|
||||
sed -e "s/BUILDTARGET/$(BUILDTARGET)/g" -e "s/KVER/$(KVER)/g" -e "s/MACHINE/$(BUILD_ARCH)/g" $$ROOTFILE > $(TARGET)_rootfile; \
|
||||
sed -e "s/BUILDTARGET/$(BUILDTARGET)/g" -e "s/KVER/$(KVER)/g" -e "s/xxxMACHINExxx/$(BUILD_ARCH)/g" $$ROOTFILE > $(TARGET)_rootfile; \
|
||||
for line in `cat $(TARGET)_diff`; do \
|
||||
if grep -qG "^#$$line$$" $(TARGET)_rootfile; then echo "#$$line" >> $(TARGET); \
|
||||
elif grep -qG "^$$line$$" $(TARGET)_rootfile ; then echo "$$line" >> $(TARGET); \
|
||||
@@ -257,7 +257,7 @@ define PAK
|
||||
sed -i $(DIR_TMP_PAK)/ROOTFILES \
|
||||
-e 's/BUILDTARGET/$(BUILDTARGET)/g' \
|
||||
-e 's/KVER/$(KVER)/g' \
|
||||
-e 's/MACHINE/$(BUILD_ARCH)/g'
|
||||
-e 's/xxxMACHINExxx/$(BUILD_ARCH)/g'
|
||||
|
||||
# Replace variables in scripts
|
||||
sed -i $(DIR_TMP_PAK)/install.sh \
|
||||
|
||||
Reference in New Issue
Block a user