summaryrefslogtreecommitdiff
path: root/scripts/build/kernel/linux.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2013-12-30 22:15:02 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2013-12-30 22:15:02 (GMT)
commit9bda4536fee99b14737f6e0cba3bf4d186f0544d (patch)
tree361280fc0a0a3ea0ee28ef0eac974057b4bc045d /scripts/build/kernel/linux.sh
parentdef5ffe83aa916c158e91c5dc9fd3e9d6a4f1cc1 (diff)
kernel/linux: prepare for arch whose kenel name is not the standard name
For some architectures, the kernel architecture name is not the common name of the architecture for other tools. For example: ARM 64-bit is commonly referenced as aarch64, but the kernel calls it arm64. Signed-off-by: Michael Hope <michael.hope@linaro.org> Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@free.fr: split out of the aarch64 patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/build/kernel/linux.sh')
-rw-r--r--scripts/build/kernel/linux.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index af40884..3899483 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -97,6 +97,7 @@ do_kernel_headers() {
# Install kernel headers using headers_install from kernel sources.
do_kernel_install() {
local kernel_path
+ local arch
CT_DoLog DEBUG "Using kernel's headers_install"
@@ -108,11 +109,13 @@ do_kernel_install() {
fi
V_OPT="V=${CT_KERNEL_LINUX_VERBOSE_LEVEL}"
+ kernel_arch="${CT_ARCH}"
+
CT_DoLog EXTRA "Installing kernel headers"
CT_DoExecLog ALL \
make -C "${kernel_path}" \
O="${CT_BUILD_DIR}/build-kernel-headers" \
- ARCH=${CT_ARCH} \
+ ARCH=${arch} \
INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
${V_OPT} \
headers_install
@@ -122,7 +125,7 @@ do_kernel_install() {
CT_DoExecLog ALL \
make -C "${kernel_path}" \
O="${CT_BUILD_DIR}/build-kernel-headers" \
- ARCH=${CT_ARCH} \
+ ARCH=${arch} \
INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \
${V_OPT} \
headers_check