no need for the temp workaround

This commit is contained in:
Pratham Patel 2023-10-04 12:16:17 +05:30
parent 66156badab
commit 7b036009d5
No known key found for this signature in database
2 changed files with 5 additions and 8 deletions

View File

@ -2,9 +2,6 @@
%global rel_ver 1 %global rel_ver 1
%global next_snapshot_date 20231003 %global next_snapshot_date 20231003
%global target_config defconfig %global target_config defconfig
# TODO: these are temporary, until 'stable' is 6.6
%global major_ver 6
%global minor_ver 6
Name: kernel-next-tfg Name: kernel-next-tfg
Version: %{next_snapshot_date} Version: %{next_snapshot_date}

View File

@ -139,11 +139,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 %{major_ver} > 6 && %{minor_ver} > 5 if [ -f scripts/package/install-extmod-build ]; then
%{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 else
touch $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}/MAYBE_THIS_WORKS touch $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}/MAYBE_THIS_WORKS
%endif fi
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT