From beb47ef07ddcd99d751088c588bc8135f6aae7ce Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 3 Mar 2014 07:41:20 +0100 Subject: only strip toolchain and target dirs for ADK_TOOLCHAIN --- scripts/rstrip.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index bacf25ca7..46a4586da 100644 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -5,10 +5,6 @@ SELF=${0##*/} -if [[ -z $debug ]];then - debug=1 -fi - if [[ -z $prefix ]]; then echo >&2 "$SELF: strip command not defined ('prefix' variable not set)" exit 1 @@ -64,12 +60,13 @@ find $TARGETS -type f -a -exec file {} \; | \ echo "$SELF: $V:$S" echo "-> $T $F" eval "chmod u+w $F" - if [[ $debug -eq 1 ]];then + if [[ $debug -ne 0 ]];then + echo "mkdir for $D" >> /tmp/debug eval "mkdir -p $D/usr/lib/debug/$Q" eval "$O --only-keep-debug $F $D/usr/lib/debug/$P.debug" fi eval "$T $F" - if [[ $debug -eq 1 ]];then + if [[ $debug -ne 0 ]];then eval "cd $D/usr/lib/debug/$Q && $O --add-gnu-debuglink=$R.debug $F" fi done -- cgit v1.2.3