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:
Arne Fitzenreiter
2020-05-10 17:27:28 +00:00
parent c6744d67f0
commit 289a86a320
82 changed files with 1215 additions and 1100 deletions

View File

@@ -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 \