Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-02-11 14:48:06 +0100
committerMichal Marek <mmarek@suse.cz>2013-02-11 15:01:53 +0100
commit8a5fc4a58f76c850bf9357ff6cddb9c16b25c798 (patch)
tree20321c5138ea15c7553f276fdda7c6b0bc7ea920
parentb3ece72e0fd28f1dbe464b904f79ab91e915ee96 (diff)
rpm/kernel-binary.spec.in: Adapt for new pesign-obs-integration package.rpm-3.0.61-0.9
-rw-r--r--rpm/kernel-binary.spec.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index 11ead21947..2eb60b3e5f 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -80,11 +80,6 @@ BuildRequires: fdupes elfutils openssl
# Have the buildservice sign the kernel image (on x86_64), modules
# and firmware files
BuildRequires: pesign-obs-integration
-%if %CONFIG_EFI_STUB == "y"
-%define sign_files /boot/vmlinuz-%kernelrelease-%build_flavor *.ko /lib/firmware
-%else
-%define sign_files *.ko /lib/firmware
-%endif
Provides: multiversion(kernel)
Provides: %{name}_%_target_cpu = %version-%release
%if %split_base
@@ -386,6 +381,12 @@ touch signing_key.x509
%install
+# sign the modules, firmware and possibly the kernel in the buildservice
+export BRP_PESIGN_FILES="*.ko /lib/firmware"
+%if %CONFIG_EFI_STUB == "y"
+BRP_PESIGN_FILES="$BRP_PESIGN_FILES /boot/vmlinuz-%kernelrelease-%build_flavor"
+%endif
+
# get rid of /usr/lib/rpm/brp-strip-debug
# strip removes too much from the vmlinux ELF binary
export NO_BRP_STRIP_DEBUG=true