diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-28 15:12:05 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-28 15:12:05 +0000 |
commit | 25f46620dd2c5e2322673a320f8ffe1c4fb05cd8 (patch) | |
tree | c7a27dc7f1254ff391b247ae3fc57dd86fa6c7ba /meta/classes/package.bbclass | |
parent | 2e2d422d2e8e65c5e54c237eeb03312a2f53ee11 (diff) | |
download | openembedded-core-25f46620dd2c5e2322673a320f8ffe1c4fb05cd8.tar.gz openembedded-core-25f46620dd2c5e2322673a320f8ffe1c4fb05cd8.tar.bz2 openembedded-core-25f46620dd2c5e2322673a320f8ffe1c4fb05cd8.zip |
Update debug packages to place symbol files in a .debug directory - fixes certain packaging problems
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@578 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 6 |
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() { ro=1 chmod +w "$1" } - '${OBJCOPY}' --only-keep-debug "$1" "$1.dbg" + mkdir $(dirname "$1")/.debug + debugfile="$(dirname "$1")/.debug/$(basename "$1")" + '${OBJCOPY}' --only-keep-debug "$1" "$debugfile" '${STRIP}' "$1" st=$? - '${OBJCOPY}' --add-gnu-debuglink="$1.dbg" "$1" + '${OBJCOPY}' --add-gnu-debuglink="$debugfile" "$1" test -n "$ro" && chmod -w "$1" if test $st -ne 0 then |