From beea50180ac742db6762c151076ca545763aa834 Mon Sep 17 00:00:00 2001 From: Andrew Phelps Date: Wed, 29 Sep 2021 11:20:13 -0700 Subject: [PATCH] exclude module_info.ld from root --- SPECS-SIGNED/kernel-signed/kernel-signed.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SPECS-SIGNED/kernel-signed/kernel-signed.spec b/SPECS-SIGNED/kernel-signed/kernel-signed.spec index 945b4dca047..5ce6bf931e7 100644 --- a/SPECS-SIGNED/kernel-signed/kernel-signed.spec +++ b/SPECS-SIGNED/kernel-signed/kernel-signed.spec @@ -87,15 +87,11 @@ Requires(postun): coreutils The kernel package contains the signed Linux kernel. %prep -# Remove module_info.ld script due to error "unpackaged file" build error -LDFLAGS="`echo " %{build_ldflags} " | sed 's#-Wl,-dT,/usr/src/mariner/BUILD/module_info.ld##'`" -export LDFLAGS %build # This spec's whole purpose is to inject the signed kernel binary rpm2cpio %{SOURCE0} | cpio -idmv cp %{SOURCE1} ./boot/vmlinuz-%{uname_r} -find / | grep module_info %install # Don't use * wildcard. It does not copy over hidden files in the root folder... @@ -145,6 +141,7 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg %exclude /lib/modules/%{uname_r}/build %exclude /lib/modules/%{uname_r}/kernel/drivers/gpu %exclude /lib/modules/%{uname_r}/kernel/sound +%exclude /module_info.ld %ifarch x86_64 %exclude /lib/modules/%{uname_r}/kernel/arch/x86/oprofile/ %endif