diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-23 13:45:48 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-23 13:45:48 +0000 |
commit | 1c625d676cb8703fbf8956bc87d90bf5cdf21d89 (patch) | |
tree | 2f8c3bd3c0a883a90414fb8a1f465ccbae5d104d /scripts/build/kernel | |
parent | 58e57f180c46d4ad470d63b3a6033af3a395dabd (diff) | |
download | crosstool-ng-1c625d676cb8703fbf8956bc87d90bf5cdf21d89.tar.gz crosstool-ng-1c625d676cb8703fbf8956bc87d90bf5cdf21d89.tar.bz2 crosstool-ng-1c625d676cb8703fbf8956bc87d90bf5cdf21d89.zip |
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.sh | 5 | ||||
-rw-r--r-- | scripts/build/kernel/linux.sh | 5 |
2 files changed, 10 insertions, 0 deletions
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}" } |