From dc9f80be834a69cdd370972ac059604dce287f0c Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Fri, 22 Sep 2023 06:18:37 +0530 Subject: [PATCH] add workaround to populate /usr/src/kernels/ on kernels "older" than 6.6 --- master.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/master.inc b/master.inc index 14c4468..73d5d42 100644 --- a/master.inc +++ b/master.inc @@ -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