strip debug symbols from modules

This commit is contained in:
Pratham Patel 2023-10-01 18:49:59 +05:30
parent 37d668fad3
commit e3c50f7dae
No known key found for this signature in database

View File

@ -114,17 +114,17 @@ chmod 755 $RPM_BUILD_ROOT/boot/vmlinuz-%{KVERREL}
# install DTBs # install DTBs
%ifarch aarch64 || riscv64 %ifarch aarch64 || riscv64
%{make} %{?_smp_mflags} dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/boot/dtb-%{KVERREL} %{make} %{?_smp_mflags} INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/boot/dtb-%{KVERREL} dtbs_install
find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete find arch/%{build_arch}/boot/dts -name '*.dtb' -type f -delete
%endif %endif
# 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.
%{make} %{?_smp_mflags} modules_install INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= %{make} %{?_smp_mflags} INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT mod-fw= modules_install
# install headers # install headers
%{make} %{?_smp_mflags} headers_install INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr %{make} %{?_smp_mflags} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
# install other key files too # install other key files too
install -m 644 .config $RPM_BUILD_ROOT/boot/config-%{KVERREL} install -m 644 .config $RPM_BUILD_ROOT/boot/config-%{KVERREL}