From patchwork Fri Jan 20 14:12:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Lomovtsev X-Patchwork-Id: 9528567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A51E660434 for ; Fri, 20 Jan 2017 14:13:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95F5528687 for ; Fri, 20 Jan 2017 14:13:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A8B12868C; Fri, 20 Jan 2017 14:13:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1D7B28687 for ; Fri, 20 Jan 2017 14:13:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbdATONf (ORCPT ); Fri, 20 Jan 2017 09:13:35 -0500 Received: from mail-cys01nam02on0055.outbound.protection.outlook.com ([104.47.37.55]:60746 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752124AbdATONe (ORCPT ); Fri, 20 Jan 2017 09:13:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Rka9+ri4a2zqwOth8/uXxru/5ZzBCgFZOEKNOl3nn/4=; b=wr1FNFph3mJ4vxHA3VD6zFthuyOACHCfm2h9P1HrJm7XBzLl9IV3O2UjZCboybPmmDxdrfieeyOPSGhmXou0W8gNFkTT4Oe1VeojgicFj8ZUIFOqYdLBWpRGMLtDiDCmDfw1uisphh3w8MDcD7oj7VpK/8K7AZEhOYaQ6FTEHwA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@caviumnetworks.com; Received: from localhost.localdomain.localdomain (50.233.148.156) by BN3PR07MB2643.namprd07.prod.outlook.com (10.167.5.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Fri, 20 Jan 2017 14:13:31 +0000 From: Vadim Lomovtsev To: , Michal Marek , , Vadim Lomovtsev Subject: [PATCH] scripts: rpm: build: add INSTALL_MOD_STRIP=1 to install modules Date: Fri, 20 Jan 2017 06:12:38 -0800 Message-ID: <1484921558-26181-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: git-send-email 2.4.11 MIME-Version: 1.0 X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BY1PR18CA0035.namprd18.prod.outlook.com (10.162.126.45) To BN3PR07MB2643.namprd07.prod.outlook.com (10.167.5.23) X-MS-Office365-Filtering-Correlation-Id: 2d06a8ed-71bb-49b3-711d-08d4413e8369 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR07MB2643; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2643; 3:1pCw7boAQClUjNhImRD4tNjaKsdltItiJO1IEeb3++2fQ6feyjb2LiIa+GD8bntgeja1W73EZamlDon/0vYCY9XN0AL/ukN/hhCqfup/QN64a1ISMtn9ZiPfT5bWKcHX7SV/KshaWHOloNj/FEXm4WaTYEu7ORuFuF4QXb3eAuqPOn4fz/icHjBvUEZCt9xKplStyeEEhIaUtZGuW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OKtw1lf6edU93sHXjBEMw7O1s55YjXvRfwQGLWM1wAg4KxFN7wEfXiosesziTY8R8jvz8AlKkfFIOdvtVU6zPp0c2KjC/tQ0Tg+APCVao/1ktOFbSeKKU8iXAZPSXwfLlI6aOAf4wMON5wtd6kaJM3BbRPRsqpfp1TJSiPHWL4Hfavla1ntpnFOh2m6XdAPWr53q1AkYRzJeGkuahyQWZxNlC85Dxg0eC0HK/V61ZacKrJtSNvr7Aim3HVMuEYvD+cN526/kQreQ06VM0/zWNMX5lp1zxoujYSmRe01RAe/6baSqI/OxXcIJeceVlSzs5ASXjIFSNNS1KgKvRw7LCX8bRoBNeeWYAjtXsEY2WbeIjfvYV4LQEmux7PAH6ejnK/ONIMykzqRBLt6s= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BN3PR07MB2643; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2643; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2643; 4:23+x/8JXQ41CPfBs8Sqk3MSihOjt2L87SK8r7shkbNKzjNk0MPJuiNGFBXb0IR0C3tynSMmlZ/cyQTOzRg5g44rOd96o3hGPj+DGdEZNZZjVHNIii79y2+PSUFOv0YY6Dmf7s7H2RH88xoy0XW6LfCulRwdr7DMJxgeMJluSSL7sUpHDbpnS/zc1p7ofcLl76DwsasjjdDK/K61zKOjl4yzeJAooHNY3MQ6RhUFeHr216+YY6xHnc9rQR8jh5qLpbV46rCPuW48GxgDWMy6bHlVtA1doKAdZVja4AbgbL6gVkbDZ0R7GSRhOIjLbvFWexa++Vrj1t31pEKWkZMi/CqOhmNb041ha3/MSFSuY92hVdEnrb8+PW2zjLceyxYAnYEslN7rVu+YysimGj7Sj7b6fn1GpidokXUXi4sCKwL8PU0PU20+Ai4ltk2bVPXPrRLF//5/gchQ/woF0Bl/Zqj7gvDs7Zbu7smJghyKKgEiVigXgO4p3JWeY+iPNetQmR5XE1iFdxSjSX/IYBF85Jgc2rnjOH7BDJxwTz/3lBf94HyVIRPq/e0cP1FtnGQr8TVkC0YKkKIXp0CHyT9iVWg== X-Forefront-PRVS: 01930B2BA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(50466002)(53936002)(101416001)(48376002)(50986999)(42186005)(66066001)(5003940100001)(6116002)(3846002)(47776003)(36756003)(86362001)(7049001)(105586002)(92566002)(106356001)(81166006)(6862003)(2906002)(6512007)(81156014)(8676002)(25786008)(50226002)(97736004)(107886002)(5001770100001)(68736007)(189998001)(7736002)(5660300001)(305945005)(6506006)(6486002)(38730400001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2643; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2643; 23:q27li6qVz3tEHRn/P/lIe4cmzuEXE/QMD012T5jnd?= =?us-ascii?Q?Db1LPH7iZBqeaPS50L+X0IeqzdwYgvX6Dm9zs3moFDevmJD0esnQ3JNPxrhb?= =?us-ascii?Q?i35Y5aXxkT1+FbmOZsA3ckRL0Zi0qxyOkn3VremLoRO8mzaAAeFsJXRKvziZ?= =?us-ascii?Q?l8j2pi4n0YFyYwUrqxKB7/epJIsy5suBceFn4+yj3/h3YvJbEd0Qj++4z5gH?= =?us-ascii?Q?ZftUj2E95npQHfXBmhU9w7KCm324uvLHrWRinIDT0AdD0GHFsQU0lguo93ub?= =?us-ascii?Q?ATAy6vNrDgtwBLoaCKw5Nd97mVJ5ZDsk5iO8fbOK4igJp0IA96fppf8oUdj9?= =?us-ascii?Q?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yEhIn2VFrZVWlg6v2ytthW8NeqqLGCtEyfR4vcSf+0Zxq2OfyaA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 14:13:31.0872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2643 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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"