@ -28,33 +28,35 @@ do_finish() {
CT_DoExecLog ALL " ${ CT_TARGET } -strip " ${ strip_args } \
" ${ CT_TARGET } /debug-root/usr/bin/gdbserver "
fi
# We can not use the version in CT_CC_VERSION because
# of the Linaro stuff. So, harvest the version string
# directly from the gcc sources...
# All gcc 4.x seem to have the version in gcc/BASE-VER
# while version prior to 4.x have the version in gcc/version.c
# Of course, here is not the better place to do that...
if [ -f " ${ CT_SRC_DIR } /gcc- ${ CT_CC_VERSION } /gcc/BASE-VER " ] ; then
gcc_version = $( cat " ${ CT_SRC_DIR } /gcc- ${ CT_CC_VERSION } /gcc/BASE-VER " )
else
gcc_version = $( sed -r -e '/version_string/!d; s/^.+= "([^"]+)".*$/\1/;' \
" ${ CT_SRC_DIR } /gcc- ${ CT_CC_VERSION } /gcc/version.c " \
)
if [ " ${ CT_CC_gcc } " = "y" ] ; then
# We can not use the version in CT_CC_GCC_VERSION because
# of the Linaro stuff. So, harvest the version string
# directly from the gcc sources...
# All gcc 4.x seem to have the version in gcc/BASE-VER
# while version prior to 4.x have the version in gcc/version.c
# Of course, here is not the better place to do that...
if [ -f " ${ CT_SRC_DIR } /gcc- ${ CT_CC_GCC_VERSION } /gcc/BASE-VER " ] ; then
gcc_version = $( cat " ${ CT_SRC_DIR } /gcc- ${ CT_CC_GCC_VERSION } /gcc/BASE-VER " )
else
gcc_version = $( sed -r -e '/version_string/!d; s/^.+= "([^"]+)".*$/\1/;' \
" ${ CT_SRC_DIR } /gcc- ${ CT_CC_GCC_VERSION } /gcc/version.c " \
)
fi
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
*script*executable*)
; ;
*executable*)
CT_DoExecLog ALL ${ CT_HOST } -strip ${ strip_args } " ${ _t } "
; ;
esac
done
fi
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
*script*executable*)
; ;
*executable*)
CT_DoExecLog ALL ${ CT_HOST } -strip ${ strip_args } " ${ _t } "
; ;
esac
done
CT_Popd
fi