diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2013-01-24 10:15:40 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2013-01-24 10:15:40 +0200 |
commit | f6a00003badfb0f586ca99f25f356519d87a9642 (patch) | |
tree | 33681fc8aa123347a3a095d8c4b742055b2c6406 | |
parent | 62a4858005d9cf3390368011c0926616b90cc892 (diff) |
scripts/package_kernel: get rid of some toolchain related hardcoded values
Turn toolchain related harcoded values. It will allow to use a custom
toolchain.
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-x | scripts/package_kernel | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/package_kernel b/scripts/package_kernel index 6b137a5..98028bc 100755 --- a/scripts/package_kernel +++ b/scripts/package_kernel @@ -9,6 +9,7 @@ shopt -s extglob export DEFAULT_PATH="/usr/sbin:/usr/bin:/sbin:/bin" export CIROOTDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" export TCBINDIR="$HOME/tc/bin" +export TOOLCHAIN="gcc-linaro-aarch64-linux-gnu-4.7-2012.12-20121214_linux.tar.bz2" export PATH="$CIROOTDIR/scripts:$CIROOTDIR/configs:$PATH" # exit with error message and bad exit status @@ -389,9 +390,9 @@ __END__ install_custom_toolchain() { - test -d ~/tc/bin && return 0 - mkdir -p ~/tc - tar --strip-components=1 -C ~/tc -xf gcc-linaro-aarch64*.tar.* + test -d ${TCBINDIR} && return 0 + mkdir -p `dirname ${TCBINDIR}` + tar --strip-components=1 -C `dirname ${TCBINDIR}` -xf ${TOOLCHAIN} true } @@ -639,8 +640,8 @@ test "$do_publish_release_tag" == "true" && { } test "$do_test_build_source_pkg" == "true" && { - test -f gcc-linaro-aarch64*.tar.* && install_custom_toolchain - test -d ~/tc/bin && install_custom_toolchain + test -f ${TOOLCHAIN} && install_custom_toolchain + test -d ${TCBINDIR} && install_custom_toolchain cd kernel_build test_build_source_pkg cd .. |