add workaround to populate /usr/src/kernels/<ver> on kernels "older" than 6.6

This commit is contained in:
Pratham Patel 2023-09-22 06:18:37 +05:30
parent 69a835034b
commit dc9f80be83
No known key found for this signature in database

View File

@ -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}
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}'
%else
touch $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}/MAYBE_THIS_WORKS
%end
%clean
rm -rf $RPM_BUILD_ROOT