Compare commits

...

2 Commits

Author SHA1 Message Date
56a16fd5b3
no DEPMOD if on linux-next 2023-10-04 12:16:41 +05:30
7b036009d5
no need for the temp workaround 2023-10-04 12:16:17 +05:30
2 changed files with 9 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

@ -120,7 +120,11 @@ find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete
# install modules # install modules
# '$(mod-fw)' is overridden because there is no reason to install any firmware # '$(mod-fw)' is overridden because there is no reason to install any firmware
# since we already have 'linux-firmware' package as the dependency of this package. # since we already have 'linux-firmware' package as the dependency of this package.
%if "%{name}" == "kernel-next-tfg"
%{make} %{?_smp_mflags} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= DEPMOD=/doesnt/exist modules_install
%else
%{make} %{?_smp_mflags} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= modules_install %{make} %{?_smp_mflags} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= modules_install
%endif
# install headers # install headers
%{make} %{?_smp_mflags} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install %{make} %{?_smp_mflags} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
@ -139,11 +143,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