fix depmod for linux-next

This commit is contained in:
Pratham Patel 2023-10-09 12:57:32 +05:30
parent e911b3227d
commit 5185339240
No known key found for this signature in database
2 changed files with 7 additions and 8 deletions

View File

@ -1,11 +1,14 @@
# change version here # change version here
%global rel_ver 11 %global rel_ver 12
%global major_ver 6
%global minor_ver 6
%global patch_ver 0
%global next_snapshot_date 20231006 %global next_snapshot_date 20231006
%global target_config defconfig %global target_config defconfig
%global kname next %global kname next
Version: %{next_snapshot_date} Version: %{major_ver}.%{minor_ver}.%{patch_ver}
Release: %{rel_ver}%{?dist} Release: %{next_snapshot_date}.%{rel_ver}%{?dist}
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/snapshot/linux-next-next-%{next_snapshot_date}.tar.gz Source0: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/snapshot/linux-next-next-%{next_snapshot_date}.tar.gz
Source1: master.inc Source1: master.inc

View File

@ -60,7 +60,7 @@ against the kernel package.
%prep %prep
if [ -f ../SOURCES/linux-%{version}.tar.sign ]; then if [ -f ../SOURCES/linux-%{version}.tar.sign ]; then
gzip --decompress --keep %{SOURCE0} [ -f ../SOURCES/linux-%{version}.tar ] || gzip --decompress --keep %{SOURCE0}
gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org
gpg2 --verify %{SOURCE99} || exit 1 gpg2 --verify %{SOURCE99} || exit 1
@ -130,11 +130,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} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= DEPMOD=/doesnt/exist modules_install
%else
%{make} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= modules_install %{make} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= modules_install
%endif
# install headers # install headers
%{make} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install %{make} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install