summaryrefslogtreecommitdiff
path: root/scripts/build/kernel/linux.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-12-11 06:31:17 (GMT)
committerGitHub <noreply@github.com>2018-12-11 06:31:17 (GMT)
commitabee9bd48239468b49913ae73dcab5283bcb8810 (patch)
tree1e4b67f370e123bd02c648bb01a86b1dc61d1676 /scripts/build/kernel/linux.sh
parent1f65837c01bc6f25b33f4fa108045cb5082f708c (diff)
parentb0d954f0ecdf84c112aeaa249d9ca223af12cf14 (diff)
Merge pull request #1114 from stilor/strip-vendor
Allow removing vendor part of the tuple
Diffstat (limited to 'scripts/build/kernel/linux.sh')
-rw-r--r--scripts/build/kernel/linux.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 5ab4918..f098765 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -2,10 +2,9 @@
# Copyright 2007 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
-CT_DoKernelTupleValues() {
- if [ "${CT_ARCH_USE_MMU}" = "y" ]; then
- CT_TARGET_KERNEL="linux"
- else
+CT_DoKernelTupleValues()
+{
+ if [ -z "${CT_ARCH_USE_MMU}" ]; then
# Some no-mmu linux targets requires a -uclinux tuple (like m68k/cf),
# while others must have a -linux tuple. Other targets
# should be added here when someone starts to care about them.
@@ -18,7 +17,8 @@ CT_DoKernelTupleValues() {
}
# Download the kernel
-do_kernel_get() {
+do_kernel_get()
+{
CT_Fetch LINUX
}
@@ -42,7 +42,8 @@ do_kernel_extract()
}
# Install kernel headers using headers_install from kernel sources.
-do_kernel_headers() {
+do_kernel_headers()
+{
local kernel_path
local kernel_arch