Message ID | 1475159543-2519-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 9F1E76077A for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 29 Sep 2016 14:35:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A3DD262FF for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 29 Sep 2016 14:35:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7977B29ADE; Thu, 29 Sep 2016 14:35:20 +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 DED7829ACB for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 29 Sep 2016 14:35:16 +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 1bpcP3-0005jC-Hb; Thu, 29 Sep 2016 14:33:37 +0000 Received: from mail-by2nam01on0080.outbound.protection.outlook.com ([104.47.34.80] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bpcOy-0005fh-L5 for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2016 14:33:34 +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=Z41JjNW9bYaJ9qfxo46w52DPnzHJs9lAgWhHX9XFmto=; b=mDDWYB7oqenZTHX2uTc/L0vnhLOuffmjCc9FhMZqgTkoQXuSC7dhAJm5Y8M2EEd2nzJMCWxT8KaZ1lMs1iBbnPSM+6Wk3C6paT4j5gRF/muoxj+ImAhtsG8C9yq3LN+f2AhSZC2K1C+N7Vn5MRFXhKyZPrNGuYwZRJ8Dihzs2ow= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@caviumnetworks.com; Received: from localhost.localdomain.localdomain (50.233.148.156) by CO2PR07MB2647.namprd07.prod.outlook.com (10.166.213.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Thu, 29 Sep 2016 14:33:10 +0000 From: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com> To: <linux-arm-kernel@lists.infradead.org>, <mmarek@suse.com> Subject: [PATCH] arm64: make rpm failed due to incorrect path to Image.gz Date: Thu, 29 Sep 2016 07:32:23 -0700 Message-ID: <1475159543-2519-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: BY2PR06CA0006.namprd06.prod.outlook.com (10.166.106.144) To CO2PR07MB2647.namprd07.prod.outlook.com (10.166.213.146) X-MS-Office365-Filtering-Correlation-Id: 77363abe-dcad-4943-8a33-08d3e8758948 X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2647; 2:6USCIM/6LD3AZHJBs2xwCib9h+hBxOewtrpoOexHtioj46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pi0yFtqOClBI4yLfM+QndVWQJL6I3FIV/K5SerCXNVRlsn/v+jFlhq3JDSvfXEzlucKE/OCpxRQ== X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2647; 31:HYWZ0r4+8Rjd1Esrkv3qMPz6OOfOlD9tcYhiwHobAB0ld1/9a1NVevoSm6o1Rk2JAuqS7ajLTJNPOmNU7+LUojXl5Vu4czPX/Hqq6o6mi6XeUT06qweROVNlugzmnOjNvAV7vq/Uieh34NleNmcFlUPMiUiKOTlStHlcO8WECWljmHKVuxeWN8FjSlVTr7bX5OExIj4Z2Iar/uVbGtRx+yCGpK+l0HGePYOJZTyasxY=; 20:YFoaI0AFedkT4htM7iVHAqC1jGItgSU9I3fGvxt3pWMqB0nyq9xS6MLdWp5Ht3XRTU7aHNv0Ho5dxBVo/vRqK0NYVV7cZpBWqMet2zJD10myaQPU/Q/88vZ5hpZcqRsU10OBVzAl9KLnSRZ0mNCuQ4u59UpTKzDPVdLkERwD11u4EtzT+BM4bthveP5uG/QM5i8BXMoCA8xK711IFBCTHPmCqPtA2D7UxAKn6TOhdxPEz3Znn+88XMVzQIchsmntVIcrJ7l/gG5RKIpnpEvToPFVuyPmIodxx4GTrlPFues9dHsMSnApFxqnadZ1y7ABGEQDqqyvS7wlPzmVQcn4wPHVjlP2h5TBifGiquVe9t1Z4E6L2dY1BjZ4pAEya0UCuyGUcbZs/BL/r4wDE8gWAkWriuWfQhhRWmQPOmiRMJZzTEy1JeWmPL9MDyQOg22z5Q8smJLciPdpfHRPF4NFQKb67d3DmCTRkocXYkOVgO3L8JH9/yIQdPC2++3dpTll+HVGJZqKbmMWQKKYPiRaj7F8izMvYErXELFVC3So/kUlChpozCR4pd9WKrLzQsi0JoBPM/BKlo9AA2ruUnT2SdQ2JlT0mu1CtPHPf3vAe/A= X-Microsoft-Antispam-PRVS: <CO2PR07MB2647C2FD221CBF5834287E0187CE0@CO2PR07MB2647.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:CO2PR07MB2647; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2647; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2647; 4:FJMk1ZvYLY7SUuqJzpFJgQjcCVSftXKkJHGeeVLrrASPoaC18HFMmGskDVRH65iNpZOO+WTfMpB2LdcLUh2RxiOqmHocNNXFLquZmziZ4KE1RzOV+bexbdAsrjVykz3XZDMKMML6umU0qJPBoDXUpLugt0SVl4I0o6yCdmUNopOXQ+uqIDxisc5rNnzPG+++whYIxAnf9nAQQRdRFM4VrwSnyeD90HpWbubbv/7Yy9ZEXA1VOmeIOHS9N5EeNWP+93qd4G54s9wp9WIc4nmshLI8q++DmTdvB89R5/dw3IJkLDDRZ8dkRXOjRO7jfuD+0s9Mg9LigVMrTuv9acTPw+uupTh4PLXqLq7enc7Ec3ufAZZqnspc3QsKh86yVOHKSj7JpWZka/6dFV9t6mKhcg== X-Forefront-PRVS: 00808B16F3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(47776003)(6116002)(586003)(3846002)(50986999)(5001770100001)(97736004)(189998001)(107886002)(4326007)(92566002)(66066001)(2906002)(4001430100002)(36756003)(6666003)(229853001)(77096005)(81166006)(7846002)(81156014)(19580405001)(19580395003)(305945005)(7736002)(106356001)(86362001)(48376002)(50466002)(42186005)(68736007)(5003940100001)(50226002)(105586002)(101416001)(5660300001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2647; 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; CO2PR07MB2647; 23:1LzwFTRvSOhw9e4/+I2Z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O85zywBfXvm0Y9e4Mkou97eGusSzxrftJOn+4DczuQ82SVuzKrt1wa8Qu3WeC/X9Q4l6iGmPKeqdn1EB3m3ubuO90C3U9IJ4iiVG2j3stVd7Qbs3S0RiL0VKZs38J6m7g8tgWW/LvrW/UHy/UGVaUKaNGf8fU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2016 14:33:10.0101 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2647 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160929_073332_800932_6B0D51BF X-CRM114-Status: UNSURE ( 8.28 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index ab51aed..09926d3 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -101,6 +101,8 @@ all: $(KBUILD_IMAGE) $(KBUILD_DTBS) boot := arch/arm64/boot +image_name: KBUILD_IMAGE :=$(boot)/$(KBUILD_IMAGE) + Image: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
The "make rpm" and "make rpm-pkg" commands for arm64 platform are broken due to rpmbuild couldn't find Image.gz file at default location (which is kernel src root): cp: cannot stat 'Image.gz': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.ocFBmP (%install) While the correct path to arm64 kernel image file is "arch/arm64/boot/Image.gz". The exact file name (Image.gz) is stored at KBUILD_IMAGE variable and read by rpmbuild with "make image_name" command at install phase after kernel build is complete. Accordingly to Michal's Marek comment it is necesary that the KBUILD_IMAGE variable value has to be set accordingly to point to actual file and thus fix that issue. Since the KBUILD_IMAGE variable is used in general cases of build we need to prevent other build types breakage by changing it. The solution is to add to arch/arm64/Makefie extra target "image_name" with dependency "KBUILD_IMAGE:=<proper path to Image.gz file>". Thus it will allow to set proper path to Image.gz file only for the "image_name" build target and this exact value will be picked up while rpm build install phase. Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com> --- arch/arm64/Makefile | 2 ++ 1 file changed, 2 insertions(+)