summaryrefslogtreecommitdiff
path: root/scripts/build/kernel
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-23 13:45:48 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-23 13:45:48 (GMT)
commit1c625d676cb8703fbf8956bc87d90bf5cdf21d89 (patch)
tree2f8c3bd3c0a883a90414fb8a1f465ccbae5d104d /scripts/build/kernel
parent58e57f180c46d4ad470d63b3a6033af3a395dabd (diff)
Push the calculation of the tuple's kernel part down to kernel's build scripts:
- update the kernel script's API with the function CT_DiKernelTupleValues - update doc accordingly (also with the architecture change, missing in the previous commit) - small clean-up in the main script, remove useless test /trunk/scripts/build/kernel/bare-metal.sh | 5 5 0 0 +++++ /trunk/scripts/build/kernel/linux.sh | 5 5 0 0 +++++ /trunk/scripts/crosstool.sh | 31 13 18 0 +++++++++++++------------------ /trunk/scripts/functions | 15 8 7 0 ++++++++------- /trunk/docs/overview.txt | 13 9 4 0 +++++++++---- 5 files changed, 40 insertions(+), 29 deletions(-)
Diffstat (limited to 'scripts/build/kernel')
-rw-r--r--scripts/build/kernel/bare-metal.sh5
-rw-r--r--scripts/build/kernel/linux.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build/kernel/bare-metal.sh b/scripts/build/kernel/bare-metal.sh
index 2dfda41..be83d16 100644
--- a/scripts/build/kernel/bare-metal.sh
+++ b/scripts/build/kernel/bare-metal.sh
@@ -2,6 +2,11 @@
# Copyright 2008 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
+CT_DoKernelTupleValues() {
+ # For bare-metal, there is no kernel part in the tuple
+ CT_TARGET_KERNEL=
+}
+
do_print_filename() {
:
}
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 27749e2..2313c8b 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -2,6 +2,11 @@
# Copyright 2007 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
+CT_DoKernelTupleValues() {
+ # Nothing to do, keep the default value
+ :
+}
+
do_print_filename() {
echo "linux-${CT_KERNEL_VERSION}"
}