void-packages/srcpkgs/linux5.7/files/mv-debug
Foxlet 8f7b6a03e0 New package: linux5.7-5.7.4.
Closes: #22860 [via git-merge-pr]
2020-06-21 17:14:53 +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