summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 6365748956..e67fb749fe 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -177,10 +177,12 @@ runstrip() {
177 ro=1 177 ro=1
178 chmod +w "$1" 178 chmod +w "$1"
179 } 179 }
180 '${OBJCOPY}' --only-keep-debug "$1" "$1.dbg" 180 mkdir $(dirname "$1")/.debug
181 debugfile="$(dirname "$1")/.debug/$(basename "$1")"
182 '${OBJCOPY}' --only-keep-debug "$1" "$debugfile"
181 '${STRIP}' "$1" 183 '${STRIP}' "$1"
182 st=$? 184 st=$?
183 '${OBJCOPY}' --add-gnu-debuglink="$1.dbg" "$1" 185 '${OBJCOPY}' --add-gnu-debuglink="$debugfile" "$1"
184 test -n "$ro" && chmod -w "$1" 186 test -n "$ro" && chmod -w "$1"
185 if test $st -ne 0 187 if test $st -ne 0
186 then 188 then