From 1c625d676cb8703fbf8956bc87d90bf5cdf21d89 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 23 Oct 2008 13:45:48 +0000 Subject: 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(-) --- scripts/build/kernel/bare-metal.sh | 5 +++++ scripts/build/kernel/linux.sh | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'scripts/build') diff --git a/scripts/build/kernel/bare-metal.sh b/scripts/build/kernel/bare-metal.sh index 2dfda41d..be83d169 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 27749e25..2313c8b8 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}" } -- cgit v1.2.3