Skip to content

Commit

Permalink
attempted build fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jslobodzian committed Sep 29, 2021
1 parent 18affae commit 5940dc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SPECS-SIGNED/kernel-signed/kernel-signed.spec
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,15 @@ 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...
Expand Down Expand Up @@ -141,7 +145,6 @@ 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 /usr/src/mariner/BUILD/module_info.ld
%ifarch x86_64
%exclude /lib/modules/%{uname_r}/kernel/arch/x86/oprofile/
%endif
Expand Down

0 comments on commit 5940dc4

Please sign in to comment.