add workaround to populate /usr/src/kernels/<ver> on kernels "older" than 6.6
This commit is contained in:
parent
69a835034b
commit
dc9f80be83
@ -145,7 +145,11 @@ ln -fns /usr/src/kernels/%{KVERREL} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/sourc
|
|||||||
|
|
||||||
# install actual Linux src to /usr/src/kernels/%{KVERREL}
|
# install actual Linux src to /usr/src/kernels/%{KVERREL}
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}
|
mkdir -p $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}
|
||||||
|
%if %{minor_ver} > 5
|
||||||
%{make} run-command KBUILD_RUN_COMMAND='${RPM_BUILD_DIR}/%{src_dir}/scripts/package/install-extmod-build $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}'
|
%{make} run-command KBUILD_RUN_COMMAND='${RPM_BUILD_DIR}/%{src_dir}/scripts/package/install-extmod-build $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}'
|
||||||
|
%else
|
||||||
|
touch $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}/MAYBE_THIS_WORKS
|
||||||
|
%end
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
Loading…
Reference in New Issue
Block a user