* [PATCH] deb-pkg: Another fix for relative paths.
@ 2014-10-10 17:49 Anthony DeRobertis
2014-10-10 22:55 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Anthony DeRobertis @ 2014-10-10 17:49 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild
Similar to a765a7ce293aa0a072728790ce11088b2f7030e2, the -dbg package
build did a cd, breaking relative paths. This resulted in the debug
symbols being part of the kernel image package and further installed
under /debian instead of /.
Signed-off-by: Anthony DeRobertis <anthony@derobert.net>
---
scripts/package/builddeb | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 35d5a58..e6d70d8 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -152,18 +152,15 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
rmdir "$tmpdir/lib/modules/$version"
fi
if [ -n "$BUILD_DEBUG" ] ; then
- (
- cd $tmpdir
- for module in $(find lib/modules/ -name *.ko); do
- mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module)
- # only keep debug symbols in the debug file
- $OBJCOPY --only-keep-debug $module $dbg_dir/usr/lib/debug/$module
- # strip original module from debug symbols
- $OBJCOPY --strip-debug $module
- # then add a link to those
- $OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module
- done
- )
+ for module in $(cd $tmpdir && find lib/modules/ -name *.ko); do
+ mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module)
+ # only keep debug symbols in the debug file
+ $OBJCOPY --only-keep-debug $tmpdir/$module $dbg_dir/usr/lib/debug/$module
+ # strip original module from debug symbols
+ $OBJCOPY --strip-debug $tmpdir/$module
+ # then add a link to those
+ $OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $tmpdir/$module
+ done
fi
fi
--
2.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] deb-pkg: Another fix for relative paths.
2014-10-10 17:49 [PATCH] deb-pkg: Another fix for relative paths Anthony DeRobertis
@ 2014-10-10 22:55 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2014-10-10 22:55 UTC (permalink / raw)
To: Anthony DeRobertis, linux-kbuild
Dne 10.10.2014 v 19:49 Anthony DeRobertis napsal(a):
>
> Similar to a765a7ce293aa0a072728790ce11088b2f7030e2, the -dbg package
> build did a cd, breaking relative paths. This resulted in the debug
> symbols being part of the kernel image package and further installed
> under /debian instead of /.
Linux-next has a fix already: 2d087139 (builddeb: put the dbg files into
the correct directory).
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-10 22:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-10 17:49 [PATCH] deb-pkg: Another fix for relative paths Anthony DeRobertis
2014-10-10 22:55 ` Michal Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.