void-packages/srcpkgs/linux5.1/files/mv-debug
Helmut Pozimski eb7925da02 New package: linux5.1-5.1.0
[skip ci]
2019-05-08 18:39:10 +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