Compare commits
2 Commits
66156badab
...
56a16fd5b3
Author | SHA1 | Date | |
---|---|---|---|
56a16fd5b3 | |||
7b036009d5 |
@ -2,9 +2,6 @@
|
||||
%global rel_ver 1
|
||||
%global next_snapshot_date 20231003
|
||||
%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
|
||||
Version: %{next_snapshot_date}
|
||||
|
10
master.inc
10
master.inc
@ -120,7 +120,11 @@ find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete
|
||||
# install modules
|
||||
# '$(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.
|
||||
%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
|
||||
%endif
|
||||
|
||||
# install headers
|
||||
%{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}
|
||||
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}'
|
||||
%else
|
||||
else
|
||||
touch $RPM_BUILD_ROOT/usr/src/kernels/%{KVERREL}/MAYBE_THIS_WORKS
|
||||
%endif
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
Loading…
Reference in New Issue
Block a user