summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-28 15:12:05 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-28 15:12:05 +0000
commit25f46620dd2c5e2322673a320f8ffe1c4fb05cd8 (patch)
treec7a27dc7f1254ff391b247ae3fc57dd86fa6c7ba /meta
parent2e2d422d2e8e65c5e54c237eeb03312a2f53ee11 (diff)
downloadpoky-25f46620dd2c5e2322673a320f8ffe1c4fb05cd8.tar.gz
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')
-rw-r--r--meta/classes/package.bbclass6
-rw-r--r--meta/conf/bitbake.conf4
2 files changed, 6 insertions, 4 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
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 6c15ef71b4..759f1381ec 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -118,8 +118,8 @@ FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \
118 ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \ 118 ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \
119 /lib/*.a /lib/*.o ${datadir}/aclocal" 119 /lib/*.a /lib/*.o ${datadir}/aclocal"
120FILES_${PN}-locale = "${datadir}/locale" 120FILES_${PN}-locale = "${datadir}/locale"
121FILES_${PN}-dbg = "${bindir}/*.dbg ${sbindir}/*.dbg ${libexecdir}/*.dbg ${libdir}/lib*.so.*.dbg \ 121FILES_${PN}-dbg = "${bindir}/.debug ${sbindir}/.debug ${libexecdir}/.debug ${libdir}/.debug \
122 /bin/*.dbg /sbin/*.dbg /lib/*.so*.dbg ${libdir}/${PN}/*.dbg" 122 /bin/.debug /sbin/.debug /lib/.debug ${libdir}/${PN}/.debug"
123 123
124# File manifest 124# File manifest
125 125