|
|
|
@ -812,10 +812,6 @@ BuildKernel() {
|
|
|
|
|
# We'll get it from the linux-firmware package and we don't want conflicts.
|
|
|
|
|
%{make} %{?_smp_mflags} ARCH=%{bldarch} INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
|
|
|
|
|
|
|
|
|
|
ls $RPM_BUILD_ROOT/
|
|
|
|
|
find $RPM_BUILD_ROOT/ -name dm_mod.ko -type f -print
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add a noop %%defattr statement because rpm doesn't like empty file list files.
|
|
|
|
|
echo '%%defattr(-,-,-)' > ../%{name}${Variant:+-${Variant}}-ldsoconf.list
|
|
|
|
|
|
|
|
|
@ -1063,8 +1059,6 @@ BuildKernel() {
|
|
|
|
|
./filter-modules.sh modules.list %{_target_cpu}
|
|
|
|
|
rm -f filter-*.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
find lib/modules/$KernelVer/kernel -mindepth 1 -type d | sort -n > module-dirs.list
|
|
|
|
|
|
|
|
|
@ -1111,7 +1105,6 @@ BuildKernel() {
|
|
|
|
|
# Cleanup.
|
|
|
|
|
rm -f System.map
|
|
|
|
|
cp -r restore/* lib/modules/$KernelVer/
|
|
|
|
|
|
|
|
|
|
rm -fr restore
|
|
|
|
|
|
|
|
|
|
popd > /dev/null
|
|
|
|
@ -1263,12 +1256,12 @@ popd > /dev/null
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
|
|
#%define __modsign_install_post \
|
|
|
|
|
#if [ "%{signmodules}" -eq "1" ]; then \
|
|
|
|
|
# if [ "%{with_std}" -ne "0" ]; then \
|
|
|
|
|
# %{SOURCE21} linux-%{version}-%{release}.%{_build_arch}/certs/signing_key.pem.sign${Variant:++${Variant}} linux-%{version}-%{release}.%{_build_arch}/certs/signing_key.x509.sign${Variant:++${Variant}} $RPM_BUILD_ROOT${Variant:++${Variant}}/lib/modules/%{KVERREL}/ \
|
|
|
|
|
# fi \
|
|
|
|
|
#fi \
|
|
|
|
|
%define __modsign_install_post \
|
|
|
|
|
if [ "%{signmodules}" -eq "1" ]; then \
|
|
|
|
|
if [ "%{with_std}" -ne "0" ]; then \
|
|
|
|
|
%{SOURCE21} linux-%{version}-%{release}.%{_build_arch}/certs/signing_key.pem.sign${Variant:++${Variant}} linux-%{version}-%{release}.%{_build_arch}/certs/signing_key.x509.sign${Variant:++${Variant}} $RPM_BUILD_ROOT${Variant:++${Variant}}/lib/modules/%{KVERREL}/ \
|
|
|
|
|
fi \
|
|
|
|
|
fi \
|
|
|
|
|
if [ "%{zipmodules}" -eq "1" ]; then \
|
|
|
|
|
find $RPM_BUILD_ROOT/lib/modules/ -name '*.ko' -type f | xargs --no-run-if-empty -P%{zcpu} xz \
|
|
|
|
|
fi \
|
|
|
|
|