From 26056c89c036c80f6524ad8e61309ae59720c291 Mon Sep 17 00:00:00 2001 From: Michael Hennerich Date: Tue, 14 Nov 2023 17:03:38 +0100 Subject: [PATCH] Makefile: Always pass ARCH & CROSS_COMPILE variables to make Signed-off-by: Michael Hennerich --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f8d7425d..2b15051e 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ build: ### u-boot ### u-boot-xlnx/u-boot u-boot-xlnx/tools/mkimage: TOOLCHAIN - $(TOOLS_PATH) make -C u-boot-xlnx ARCH=arm zynq_$(TARGET)_defconfig + $(TOOLS_PATH) make -C u-boot-xlnx ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zynq_$(TARGET)_defconfig $(TOOLS_PATH) make -C u-boot-xlnx ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) UBOOTVERSION="$(UBOOT_VERSION)" .PHONY: u-boot-xlnx/u-boot @@ -89,8 +89,8 @@ build/uboot-env.bin: build/uboot-env.txt ### Linux ### linux/arch/arm/boot/zImage: TOOLCHAIN - $(TOOLS_PATH) make -C linux ARCH=arm zynq_$(TARGET)_defconfig - $(TOOLS_PATH) make -C linux -j $(NCORES) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zImage UIMAGE_LOADADDR=0x8000 KCFLAGS='-mcpu=cortex-a9 -mfpu=vfpv4 -mfloat-abi=soft -O2' + $(TOOLS_PATH) make -C linux ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zynq_$(TARGET)_defconfig + $(TOOLS_PATH) make -C linux -j $(NCORES) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zImage UIMAGE_LOADADDR=0x8000 .PHONY: linux/arch/arm/boot/zImage