void-packages/srcpkgs/rpi-kernel/files/mv-debug
classabbyamp 97c5560c5b rpi-kernel: update to 6.6.67.
switch to an in-tree dotconfig to be more inline with mainline void kernels
2025-01-03 00:15:11 -05:00

8 lines
267 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
$SIGN_FILE $mod
zstd -T0 --rm -f -q $mod