void-packages/srcpkgs/linux5.6/files/mv-debug
Juan RP 5947da0f86
New package: linux5.6-5.6.0.
This is only available for x86_64 and I've been running it for
some hours already.

Feel free to update `archs` when the target <arch>-dotconfig
file is there. ENOTIME to handle other archs.
2020-03-30 12:09:21 +02:00

7 lines
239 B
Bash
Executable file

#!/bin/sh
mod=$1
mkdir -p usr/lib/debug/${mod%/*}
$OBJCOPY --only-keep-debug --compress-debug-sections $mod usr/lib/debug/$mod
$OBJCOPY --add-gnu-debuglink=${DESTDIR}/usr/lib/debug/$mod $mod
/usr/bin/$STRIP --strip-debug $mod
gzip -9 $mod