remove bypassing DEPMOD

This commit is contained in:
Pratham Patel 2023-10-01 08:05:27 +05:30
parent 43374880c5
commit 5c4d6d73f7
No known key found for this signature in database

View File

@ -119,10 +119,9 @@ find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete
%endif %endif
# install modules # install modules
# Disable depmod with by passing '/doesnt/exist' to the DEPMOD environment variable.
# '$(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.
%{make} %{?_smp_mflags} modules_install INSTALL_MOD_PATH=$RPM_BUILD_ROOT DEPMOD=/doesnt/exist mod-fw= %{make} %{?_smp_mflags} modules_install INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw=
# install headers # install headers
%{make} %{?_smp_mflags} headers_install INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr %{make} %{?_smp_mflags} headers_install INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr