Compare commits

..

No commits in common. "56a16fd5b3e9b7858e1f9f5118bf6251fcb66b90" and "66156badab0408cce7336f5a8f38a9346e41cfd8" have entirely different histories.

2 changed files with 8 additions and 9 deletions

View File

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