public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
To: linux-kbuild@vger.kernel.org, Michal Marek <mmarek@suse.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to install modules
Date: Mon, 23 Jan 2017 06:17:09 -0800	[thread overview]
Message-ID: <20170123141709.GA31673@localhost.localdomain> (raw)
In-Reply-To: <1484921558-26181-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com>

On Fri, Jan 20, 2017 at 06:12:38AM -0800, Vadim Lomovtsev wrote:
Please ignore this accordingly to mysypo
> 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.
first one 'insifficinet'
> 
> 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'
occasionally remove 'K' from KBUILD_SRC
>  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
> 

Vadim

  reply	other threads:[~2017-01-23 14:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-20 14:12 [PATCH] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to install modules Vadim Lomovtsev
2017-01-23 14:17 ` Vadim Lomovtsev [this message]
2017-01-23 14:32 ` [PATCH v2] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to rpm mkspec Vadim Lomovtsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170123141709.GA31673@localhost.localdomain \
    --to=vadim.lomovtsev@caviumnetworks.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox