From bb821551c5a9942473b035fb7fddf45663b0123f Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Mon, 2 Nov 2015 16:55:44 -0800 Subject: [PATCH] linux: Set CROSS_COMPILE while building/checking headers Some architectures, like arc and blackfin set CROSS_COMPILE to a default if it is not set on the command-line. Since we are building the cross-compiler, we need to ALWAYS set CROSS_COMPILE, since building/checking headers is done after the GCC PASS1 step. Signed-off-by: Bryan Hundven --- scripts/build/kernel/linux.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index 5f326803..2ebb03c1 100644 --- a/scripts/build/kernel/linux.sh +++ b/scripts/build/kernel/linux.sh @@ -119,6 +119,7 @@ do_kernel_install() { CT_DoLog EXTRA "Installing kernel headers" CT_DoExecLog ALL \ make -C "${kernel_path}" \ + CROSS_COMPILE="${CT_TARGET}-" \ O="${CT_BUILD_DIR}/build-kernel-headers" \ ARCH=${kernel_arch} \ INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \ @@ -129,6 +130,7 @@ do_kernel_install() { CT_DoLog EXTRA "Checking installed headers" CT_DoExecLog ALL \ make -C "${kernel_path}" \ + CROSS_COMPILE="${CT_TARGET}-" \ O="${CT_BUILD_DIR}/build-kernel-headers" \ ARCH=${kernel_arch} \ INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \