void-packages/srcpkgs/linux6.13/files/mv-debug
Piraty 04cb050a7b linux*: honor XBPS_MAKEJOBS when compressing modules
run zstd with one working thread only, as mv-debug is executed by
xargs -P $XBPS_MAKEJOBS already
2025-07-30 22:14:07 +02: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 -T1 --rm -f -q $mod