Skip to content

Commit beea501

Browse files
committed
exclude module_info.ld from root
1 parent 5940dc4 commit beea501

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

SPECS-SIGNED/kernel-signed/kernel-signed.spec

+1-4
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,11 @@ Requires(postun): coreutils
8787
The kernel package contains the signed Linux kernel.
8888

8989
%prep
90-
# Remove module_info.ld script due to error "unpackaged file" build error
91-
LDFLAGS="`echo " %{build_ldflags} " | sed 's#-Wl,-dT,/usr/src/mariner/BUILD/module_info.ld##'`"
92-
export LDFLAGS
9390

9491
%build
9592
# This spec's whole purpose is to inject the signed kernel binary
9693
rpm2cpio %{SOURCE0} | cpio -idmv
9794
cp %{SOURCE1} ./boot/vmlinuz-%{uname_r}
98-
find / | grep module_info
9995

10096
%install
10197
# 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
145141
%exclude /lib/modules/%{uname_r}/build
146142
%exclude /lib/modules/%{uname_r}/kernel/drivers/gpu
147143
%exclude /lib/modules/%{uname_r}/kernel/sound
144+
%exclude /module_info.ld
148145
%ifarch x86_64
149146
%exclude /lib/modules/%{uname_r}/kernel/arch/x86/oprofile/
150147
%endif

0 commit comments

Comments
 (0)