summaryrefslogtreecommitdiff
path: root/scripts/build/kernel/linux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/kernel/linux.sh')
-rw-r--r--scripts/build/kernel/linux.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 90daa8a..76fb98c 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -97,7 +97,7 @@ do_kernel_headers() {
# Install kernel headers using headers_install from kernel sources.
do_kernel_install() {
local kernel_path
- local arch
+ local kernel_arch
CT_DoLog DEBUG "Using kernel's headers_install"
@@ -119,7 +119,7 @@ do_kernel_install() {
CT_DoExecLog ALL \
make -C "${kernel_path}" \
O="${CT_BUILD_DIR}/build-kernel-headers" \
- ARCH=${arch} \
+ ARCH=${kernel_arch} \
INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
${V_OPT} \
headers_install
@@ -129,7 +129,7 @@ do_kernel_install() {
CT_DoExecLog ALL \
make -C "${kernel_path}" \
O="${CT_BUILD_DIR}/build-kernel-headers" \
- ARCH=${arch} \
+ ARCH=${kernel_arch} \
INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
${V_OPT} \
headers_check