void-packages/srcpkgs/linux6.11/files/mv-debug

9 lines
267 B
Plaintext
Raw Normal View History

2024-09-17 17:13:49 +02:00
#!/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
$SIGN_FILE $mod
zstd -T0 --rm -f -q $mod