Accepting request 745872 from home:jirislaby:branches:Base:System
- 0001-brp-99-compress-vmlinux-support-xz-compressed-vmlinu.patch to support xz-compressed vmlinux (bnc#1155921) OBS-URL: https://build.opensuse.org/request/show/745872 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign-obs-integration?expand=0&rev=84
This commit is contained in:
parent
61342f2452
commit
034791523e
@ -0,0 +1,38 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Date: Wed, 6 Nov 2019 10:57:01 +0100
|
||||
Subject: brp-99-compress-vmlinux: support xz-compressed vmlinux
|
||||
Patch-mainline: submitted as PR#16
|
||||
References: bnc#1155921
|
||||
|
||||
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
|
||||
---
|
||||
brp-99-compress-vmlinux | 14 ++++++++------
|
||||
1 file changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/brp-99-compress-vmlinux b/brp-99-compress-vmlinux
|
||||
index 2c8222d23024..ffe3841fb836 100755
|
||||
--- a/brp-99-compress-vmlinux
|
||||
+++ b/brp-99-compress-vmlinux
|
||||
@@ -11,11 +11,13 @@ 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
|
||||
+ for compression in gz/gzip xz; do
|
||||
+ if test -e "$f" -a -e "$f.${compression%/*}"; then
|
||||
+ echo "${compression#*/} $f"
|
||||
+ # Deliberately not using -n; the vmlinux image has a
|
||||
+ # predictable timestamp (bnc#880848#c20)
|
||||
+ ${compression#*/} -k -9 -f "$f"
|
||||
+ fi
|
||||
+ done
|
||||
done
|
||||
|
||||
--
|
||||
2.24.0
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 6 09:58:34 UTC 2019 - Jiri Slaby <jslaby@suse.com>
|
||||
|
||||
- 0001-brp-99-compress-vmlinux-support-xz-compressed-vmlinu.patch
|
||||
to support xz-compressed vmlinux (bnc#1155921)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 6 03:52:16 UTC 2019 - Gary Ching-Pang Lin <glin@suse.com>
|
||||
|
||||
|
@ -36,6 +36,7 @@ Patch1: 0001-Passthrough-license-tag.patch
|
||||
Patch2: 0001-Add-support-for-kernel-module-compression.patch
|
||||
Patch3: 0001-Initialize-compress-variable.patch
|
||||
Patch4: 0001-Keep-the-files-in-the-OTHER-directory.patch
|
||||
Patch5: 0001-brp-99-compress-vmlinux-support-xz-compressed-vmlinu.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# suse-module-tools <= 15.0.10 contains modsign-verify
|
||||
Requires: suse-module-tools >= 15.0.10
|
||||
@ -50,6 +51,7 @@ boot loader, kernel and kernel modules in the openSUSE Buildservice.
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user