X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2FConfig;h=a2d3cddc5ca49e6e251ee6d65adb77d61ab16a7f;hb=5621b0ef0a6b7e36966d9183979538ab5a0b08b5;hp=9ca50c42b14dd334186948c5988277429b47a8cd;hpb=1ebdfb0e4e7247f1fa4ddd796cffec96c9494397;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/Config b/lfs/Config index 9ca50c42b1..a2d3cddc5c 100644 --- a/lfs/Config +++ b/lfs/Config @@ -13,7 +13,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2021 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -35,7 +35,9 @@ unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN TOOLS_DIR unexport XZ_OPT PARALLELISM = $(shell echo $$( \ - if [ -n "$(MAX_PARALLELISM)" ] && [ $(MAX_PARALLELISM) -lt $(DEFAULT_PARALLELISM) ]; then \ + if [ -n "$(MAX_PARALLELISM)" ] && [ $(MAX_PARALLELISM) -lt 1 ]; then \ + echo 1 ; \ + elif [ -n "$(MAX_PARALLELISM)" ] && [ $(MAX_PARALLELISM) -lt $(DEFAULT_PARALLELISM) ]; then \ echo $(MAX_PARALLELISM); \ else \ echo $(DEFAULT_PARALLELISM); \ @@ -52,7 +54,7 @@ ifeq "$(BUILD_ARCH)" "armv7hl" IS_32BIT = 1 endif -ifeq "$(BUILD_ARCH)" "armv5tel" +ifeq "$(BUILD_ARCH)" "armv6l" IS_32BIT = 1 endif @@ -64,6 +66,10 @@ ifeq "$(BUILD_ARCH)" "i586" IS_32BIT = 1 endif +ifeq "$(BUILD_ARCH)" "riscv64" + IS_64BIT = 1 +endif + ifeq "$(TOOLCHAIN)" "1" PREFIX = $(TOOLS_DIR) else @@ -75,6 +81,11 @@ TAR_OPTIONS = \ --acls \ --xattrs --xattrs-include='*' +ZSTD_OPTIONS = \ + -T$(PARALLELISM) \ + -19 \ + --long + # URLs that are common sources of downloads. If you're having trouble with # a site you should change its URL to that of a suitable mirror site. # @@ -273,7 +284,8 @@ define PAK rm -rf $(DIR_TMP_PAK)/root && mkdir -p $(DIR_TMP_PAK)/root tar -c --exclude='#*' --exclude='proc/*' --exclude='dev/pts/*' --exclude='tmp/*' \ --exclude='__pycache__' \ - -C / --files-from=$(DIR_TMP_PAK)/ROOTFILES | tar -x -C $(DIR_TMP_PAK)/root + -C / --files-from=$(DIR_TMP_PAK)/ROOTFILES | tar -x -C $(DIR_TMP_PAK)/root; \ + exit $${PIPESTATUS[0]} # Compress tarball cd $(DIR_TMP_PAK)/root && tar cf - * | xz $(XZ_OPT) > $(DIR_TMP_PAK)/files.tar.xz @@ -307,7 +319,8 @@ endef ifeq "$(BUILD_ARCH)" "$(filter $(BUILD_ARCH),aarch64 riscv64)" define UPDATE_AUTOMAKE for i in $$(find $(DIR_APP) -name config.guess -o -name config.sub); do \ - cp -vf /usr/share/automake*/$$(basename $${i}) $${i}; \ + cp -vf /usr/share/automake*/$$(basename $${i}) $${i} || \ + cp -vf $(TOOLS_DIR)/share/automake*/$$(basename $${i}) $${i}; \ done endef endif