87e166a2f0
- brp-99-compress-vmlinux: Compress the vmlinux image after find-debuginfo (bnc#880848, bnc#884459) OBS-URL: https://build.opensuse.org/request/show/245477 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign-obs-integration?expand=0&rev=35
22 lines
388 B
Bash
22 lines
388 B
Bash
#!/bin/bash
|
|
|
|
# Compress the /boot/vmlinux image after find-debuginfo.sh has done its job
|
|
|
|
set -e
|
|
|
|
case "$RPM_PACKAGE_NAME" in
|
|
kernel-*)
|
|
;;
|
|
*)
|
|
exit 0
|
|
esac
|
|
for f in $RPM_BUILD_ROOT/boot/vmlinux-*; do
|
|
if test -e "$f" -a -e "$f.gz"; then
|
|
echo "gzip $f"
|
|
# Deliberately not using gzip -n; the vmlinux image has a
|
|
# predictable timestamp (bnc#880848#c20)
|
|
gzip -k -9 -f "$f"
|
|
fi
|
|
done
|
|
|