mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
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 <bryanhundven@gmail.com>
This commit is contained in:
parent
387955ea86
commit
bb821551c5
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user