From 56a16fd5b3e9b7858e1f9f5118bf6251fcb66b90 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 4 Oct 2023 12:16:41 +0530 Subject: [PATCH] no DEPMOD if on linux-next --- master.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/master.inc b/master.inc index 1c1bce2..3fe174b 100644 --- a/master.inc +++ b/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