pesign-obs-integration/brp-99-compress-vmlinux
Gary Ching-Pang Lin 87e166a2f0 Accepting request 245477 from home:michal-m:branches:Base:System
- 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
2014-08-21 04:08:32 +00:00

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