X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2FConfig;h=42da3f3b1da6b1f453fdd3cb43cc2ae43ae3e2b8;hp=82bdde066a991ca0629df53c81758a2f036093b6;hb=d38f3eed08d71343cc16de61373860e5aa7efcfd;hpb=c22976907e44d682c916bed600dcd396907c2254 diff --git a/lfs/Config b/lfs/Config index 82bdde066a..42da3f3b1d 100644 --- a/lfs/Config +++ b/lfs/Config @@ -33,14 +33,36 @@ # Cleanup environment from any variables unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN TOOLS_DIR +PARALLELISM = $(shell echo $$( \ + if [ -n "$(MAX_PARALLELISM)" ] && [ $(MAX_PARALLELISM) -lt $(DEFAULT_PARALLELISM) ]; then \ + echo $(MAX_PARALLELISM); \ + else \ + echo $(DEFAULT_PARALLELISM); \ + fi) \ +) + +MAKETUNING = -j$(PARALLELISM) + ifeq "$(BUILD_ARCH)" "aarch64" IS_64BIT = 1 endif +ifeq "$(BUILD_ARCH)" "armv7hl" + IS_32BIT = 1 +endif + +ifeq "$(BUILD_ARCH)" "armv5tel" + IS_32BIT = 1 +endif + ifeq "$(BUILD_ARCH)" "x86_64" IS_64BIT = 1 endif +ifeq "$(BUILD_ARCH)" "i586" + IS_32BIT = 1 +endif + ifeq "$(TOOLCHAIN)" "1" PREFIX = $(TOOLS_DIR) else @@ -79,6 +101,19 @@ DIR_TMP = /tmp # Add the compiler location and version and specs to the ccache hash CCACHE_COMPILERCHECK += $(shell gcc -dumpspecs 2>/dev/null | md5sum | cut -d ' ' -f1) +# We support EFI on x86_64 and aarch64 +ifeq "$(BUILD_ARCH)" "x86_64" + EFI = 1 + EFI_ARCH = x64 + GRUB_ARCH = $(BUILD_ARCH) +endif + +ifeq "$(BUILD_ARCH)" "aarch64" + EFI = 1 + EFI_ARCH = aa64 + GRUB_ARCH = arm64 +endif + ############################################################################### # Common Macro Definitions ###############################################################################