summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-02-17 20:54:07 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-02-17 20:54:07 (GMT)
commit20b6fec157f25be17ee3b3c63e7b10eb7327db2a (patch)
treecd8a300e0532a4c059fafead286858c8079a24c0
parent26adaf158e74529216a2e4503efa33e0622ff944 (diff)
internals: fix stripping host binaries
The gcc used by linaro has a version number specific to Linaro, but identifies itself with its upstream version numbering scheme. This breaks the strip in the finish step, because the actual gcc version is not the same as the configured one (eg. 4.5.2 vs. linaro-4.5-2011.02-0). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> (transplanted from a3818c3b03e053adb8f6b7e6cf326f16a7f0c4aa)
-rw-r--r--scripts/build/internals.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index a0749a6..cf129d9 100644
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -7,6 +7,7 @@ do_finish() {
local _t
local _type
local strip_args
+ local gcc_version
CT_DoStep INFO "Cleaning-up the toolchain's directory"
@@ -21,10 +22,11 @@ do_finish() {
esac
CT_DoLog INFO "Stripping all toolchain executables"
CT_Pushd "${CT_PREFIX_DIR}"
- for _t in "bin/${CT_TARGET}-"* \
- "${CT_TARGET}/bin/"* \
- "libexec/gcc/${CT_TARGET}/${CT_CC_VERSION}/"* \
- "libexec/gcc/${CT_TARGET}/${CT_CC_VERSION}/install-tools/"* \
+ gcc_version=$( "./bin/${CT_TARGET}-gcc" -dumpversion )
+ for _t in "bin/${CT_TARGET}-"* \
+ "${CT_TARGET}/bin/"* \
+ "libexec/gcc/${CT_TARGET}/${gcc_version}/"* \
+ "libexec/gcc/${CT_TARGET}/${gcc_version}/install-tools/"* \
; do
_type="$( file "${_t}" |cut -d ' ' -f 2- )"
case "${_type}" in