Đoàn Trần Công Danh 877064af60 New package: linux6.1-6.1.1
2022-12-22 21:24:57 +07:00

8 lines
245 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 --rm -19 $mod