From patchwork Tue Sep 27 15:53:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Lomovtsev X-Patchwork-Id: 9352147 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 E76F860757 for ; Tue, 27 Sep 2016 15:55:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8B9E2927A for ; Tue, 27 Sep 2016 15:55:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD7C72928A; Tue, 27 Sep 2016 15:55:58 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E8B6D2927A for ; Tue, 27 Sep 2016 15:55:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1boui7-0006bl-MF; Tue, 27 Sep 2016 15:54:23 +0000 Received: from mail-co1nam03on0042.outbound.protection.outlook.com ([104.47.40.42] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1boui1-0006Wq-TJ for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2016 15:54:19 +0000 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=ziHRp1u++8EMtaLhiyQTd78gbnmPIMIa9WrEe50/BXs=; b=gMFSrxesn92AM0PMLXBb+MIOG0+51m03wYy7ulStKpl0G6NpJT3jP9SvzzJ/82tNIt3TavsN7jjvq0652rIb0WC42IKAQ0bcuKKKFnCIlDJLZitvX5J7JA92jX43rDI8XLEAKoHxm8aWlcgM2MAEl00EXu0rYbjRP0X6m0crGak= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@caviumnetworks.com; Received: from localhost.localdomain.localdomain (50.233.148.156) by BN3PR07MB2641.namprd07.prod.outlook.com (10.167.5.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Tue, 27 Sep 2016 15:53:55 +0000 From: Vadim Lomovtsev To: Subject: [PATCH] arm64: set path to Image.gz in the mkspec to avoid rpm build issue Date: Tue, 27 Sep 2016 08:53:47 -0700 Message-ID: <1474991627-1743-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: CO2PR05CA037.namprd05.prod.outlook.com (10.141.241.165) To BN3PR07MB2641.namprd07.prod.outlook.com (10.167.5.21) X-MS-Office365-Filtering-Correlation-Id: aef4aefb-c544-4ad5-7660-08d3e6ee7cb0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2641; 2:QPbC0zWNQ2DfKvg5NV8/lD9/yYGmtsAiCumzqDDnWpYYJkYa4PL6YCfD8zxnOuANUF7nXv6lnWE8ImbEB4SLx7Q8/Imxcut49J3daGjxy/p9ZNgbHtBUIHdLRxvewe4JPjiW9kxVOzuj/wdmfNkhr5UhSfzCK22HUmWu1OFePCYt2Wy1ohpoqBlTPSuD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4E7Agmff4BgS2W8NX7riL8u9irkLXr8prIo= X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2641; 31:e2EevHqJg3aUUBrMdPJkre2OEz8VwCq3nWGt4Jse0JXnZNUSeYtqDWnRGvMGNZ7O/Tw01InQGYSIpWIOBzliumfVsqGJdN1zEX4AfcufK3dQx8WsMttY2dQjGMV504eT+XurS2fNp4JnPXKWoyMrGW8VfTIYMhS7fT9V+jR9KBJgfpJe1r9b2VwdZOP0T8MPTzhmN0Qqlo3Q1+sWzAjLUguLcrY5snvwSJ4Sj5sXqbA=; 20:SFv9+3EuzFI4qiNndgUoASEgS9zal+YigeXwo7jfLzT0N+EniMJNv0SZJBePGMCvgfQjdUWVri91l92F8Uu/seQ/0qLWGk7I0lMgncecMtZGXHKQJ3ZZ5zij+srMENSPD/QG2MF8c4xRA61m6BhxxolCoBuUG3Td4jdkEtJDHr0cNggoX35Juhp3ukOZvvMOTixMDTa4h2FNkAryBSWQkuZxLsuBiVpX3UqBu1iO5SDTPeYnijoLYBJLWw6KmDm7+rcwEraDkCGP5j21rl7W/Rbx3cXmMJ2wU/Pah0MXoRtPU4GnpOUhZ3sHDICK5kPy7cXcj4An3u2cRiLitdvWNnTUK4x0v9qbZHgXlCBOTxQkGVEO09jJGGc2A1pYWK5uhG/MWll54LjJlcYWzAkknGnXFEWTk3jgNeQsQV2lq/LnYB0AH6+C9f4jEIa1TqUI3GhNjVvDhsNpPnEVQwmo3+kFbBc99nvD3073KNSOq2jajTQkKEEA7ywl6ULrzi/yij2EWOQAirCW6BsPiNLRZin3LyvfKghULfJsX9kzR78kwIwZx2O8h+DGN06HdiS0blOmeZl1sH1ZPc53qeaIzMIQCQISK7syfzacLtliMd4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BN3PR07MB2641; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2641; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2641; 4:BbVemuk5M6WjFuHKMc6bYUfwOx/M3ETPH6ADoH/AnNcDsYpvZVeFF7ohy6RFCnjmOmIs4I2l0H3V06a1050zKuIRBvNdEScFw8+XmiyJrppWoW5xIPzJZQvnqnrNTXBBrAEdMyl1VOcH6PBX6vw9HLRDWnadeXqNb5TQwQXH5p+oNYY6346+qjFNVdmH+Zob5dsDhogL6V41fS//JAnm3Z7+fd/STCLHSWDf6DEw5UVAVk7vEPxneTMDfhDSF1H145GsWMC/GgWxpbYoNyri66bF5cNHllfxOahxjkZ5cMQMhSEAEb0MjfB9EJdU7bFznwknyN5y7MyzCW1xMXvhhPDn+zXcfLekFuE3ADooNd9ruwoVhlr8OpWN7Z8vsBm2kM+Kd2B+DgENIh7MYwcuoQ== X-Forefront-PRVS: 007814487B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(7736002)(4001430100002)(305945005)(229853001)(81156014)(6916009)(92566002)(36756003)(8676002)(81166006)(15188555004)(19580395003)(86362001)(19580405001)(5003940100001)(50226002)(106356001)(586003)(47776003)(107886002)(97736004)(4326007)(3846002)(7846002)(68736007)(6116002)(2906002)(450100001)(66066001)(101416001)(48376002)(50466002)(15975445007)(2351001)(105586002)(50986999)(5660300001)(77096005)(189998001)(42186005)(110136003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2641; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BN3PR07MB2641; 23:mB0M7KZqoxin5eH4mNbnimj1dj5i0lchoVUu90aFm?= =?us-ascii?Q?EV4Jgu8xarVt1ZjhiCAx7MAC6SanUSzQCY1FGv5qQMeSE2DpurxL4T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bUoV9YeKF05+xUM9TTCAGCWR5HjXoIRIN2Q8whubmSvWXdw2ta3U1V6n+xCuoCvOzwGypLHL1Pj56G0jPnOrCBQK0rwHueGsSnKCXrOKzPX/3grQWxTEdo0UtJHjcft1v58HLkGmeL6L3DkjV6iFC7OfkcSsvSNZXKuXWBsoQyTEUZk3T SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2016 15:53:55.4012 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2641 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160927_085418_176362_B42716E9 X-CRM114-Status: UNSURE ( 5.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vadim Lomovtsev Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In addition to http://www.spinics.net/lists/arm-kernel/msg527466.html While building rpm-pkg target it fails to copy kernel image from default location to rpm buildroot directory. Since we have arch variable set to aarch64 while Image.gz is located at arch/arm64/boot it's necessary to specify correct path to cp command as it implemeted for ppc64 build. Signed-off-by: Vadim Lomovtsev --- scripts/package/mkspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 57673ba..2f2bc7e 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -101,9 +101,13 @@ echo "%ifarch ppc64" echo "cp vmlinux arch/powerpc/boot" echo "cp arch/powerpc/boot/"'$KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE" echo "%else" +echo "%ifarch aarch64" +echo "cp arch/arm64/boot/"'$KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE" +echo "%else" echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE" echo "%endif" echo "%endif" +echo "%endif" echo 'make %{?_smp_mflags} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr KBUILD_SRC= headers_install' echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE"