Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-10-22 11:25:46 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-10-22 11:27:02 +0200
commit7f1e8810f9a0399b2f08ed305b6cfcca12fc6048 (patch)
treea9670ea3a8888cfcfaa3c0bec98cac5dc86ba3de
parent92b52c6eb998af5a3c6331f43155b12b99b3e742 (diff)
kernel-binary.spec.in: Fix build of non-modular kernels (boo#1154578).packaging
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
-rw-r--r--rpm/kernel-binary.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index 95d421acc5..cbb2bbf4ac 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -824,8 +824,10 @@ if [ %CONFIG_MODULES = y ]; then
fi
rm -rf %{buildroot}/lib/firmware
-# file contains number of CPUs, making builds hard to reproduce
-find %{buildroot}/usr/src/linux-*-obj/ -name .kernel-binary.spec.buildenv -delete
+if [ %CONFIG_MODULES = y ]; then
+ # file contains number of CPUs, making builds hard to reproduce
+ find %{buildroot}/usr/src/linux-*-obj/ -name .kernel-binary.spec.buildenv -delete
+fi
add_dirs_to_filelist() {
sed -rn '