void-zenkernel/linux-gcc/linux6.10-zen/files/mv-debug

8 lines
239 B
Plaintext
Raw Permalink Normal View History

2024-08-06 08:31:42 -04: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
gzip -9 $mod