summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-03 07:41:20 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-03 07:41:20 +0100
commitbeb47ef07ddcd99d751088c588bc8135f6aae7ce (patch)
treef93bb1d0696e18f7912040b87d1cbb40651d651e /scripts
parentf6c5a79972bcd216429484eb706fc47c7bb52a75 (diff)
only strip toolchain and target dirs for ADK_TOOLCHAIN
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rstrip.sh9
1 files changed, 3 insertions, 6 deletions
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