]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/Config
kernel: update to 4.14.183
[ipfire-2.x.git] / lfs / Config
index a278b015531ce84aaacb7a25a9dc77b68f498133..b16da91bdb4080c7a742b5a39ff64c79f29bd53c 100644 (file)
@@ -117,8 +117,18 @@ ifeq "$(BUILD_ARCH)" "aarch64"
 endif
 
 # Go
+export GOARCH
+export GOOS   = linux
 export GOPATH = $(HOME)/gopath
 
+ifeq "$(BUILD_ARCH)" "x86_64"
+       GOARCH = amd64
+endif
+
+ifeq "$(BUILD_ARCH)" "aarch64"
+       GOARCH = arm64
+endif
+
 ###############################################################################
 # Common Macro Definitions
 ###############################################################################
@@ -183,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); \
@@ -247,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 \