void-packages/srcpkgs/pinebookpro-kernel/files/mv-debug

8 lines
251 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
zstd -15 --rm -f -q $mod