All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to install modules
@ 2017-01-20 14:12 ` Vadim Lomovtsev
  0 siblings, 0 replies; 6+ messages in thread
From: Vadim Lomovtsev @ 2017-01-20 14:12 UTC (permalink / raw)
  To: linux-kbuild, Michal Marek, linux-kernel, Vadim Lomovtsev

Having kernel modules with debug sections consumes a lot of
hdd space, increases size of kernel rpm, initrd image grows
and in some cases kernel even can't be installed due to
insufficinet hdd space for modules.

Set INSTALL_MOD_STRIP=1 to enable debug info strip at rpm modules
install phase.

Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
---
 scripts/package/mkspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index bb43f15..176d8dd 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -90,7 +90,7 @@ echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules'
 echo "%endif"
 echo 'mkdir -p $RPM_BUILD_ROOT'"/lib/firmware/$KERNELRELEASE"
 
-echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{?_smp_mflags} KBUILD_SRC= mod-fw= modules_install'
+echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{?_smp_mflags} INSTALL_MOD_STRIP=1 BUILD_SRC= mod-fw= modules_install'
 echo 'INSTALL_FW_PATH=$RPM_BUILD_ROOT'"/lib/firmware/$KERNELRELEASE"
 echo 'make INSTALL_FW_PATH=$INSTALL_FW_PATH' firmware_install
 echo "%ifarch ia64"
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-23 14:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-20 14:12 [PATCH] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to install modules Vadim Lomovtsev
2017-01-20 14:12 ` Vadim Lomovtsev
2017-01-23 14:17 ` Vadim Lomovtsev
2017-01-23 14:17   ` Vadim Lomovtsev
2017-01-23 14:32 ` [PATCH v2] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to rpm mkspec Vadim Lomovtsev
2017-01-23 14:32   ` Vadim Lomovtsev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.