From patchwork Wed Sep 11 07:07:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurabindo Pillai X-Patchwork-Id: 11140457 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8D52417E6 for ; Wed, 11 Sep 2019 07:07:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B02E222BF for ; Wed, 11 Sep 2019 07:07:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IblG3q3k"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=aurabindo.in header.i=@aurabindo.in header.b="B1ngaLX5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B02E222BF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=aurabindo.in Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:Reply-To: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Type:MIME-Version:Message-ID:Subject:From:To:Date: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=QD5JFi3HOa+glEWGy6WySsERmh9GRQd9mXgDIEr1dJM=; b=Ibl G3q3kKa0FEyBSkMQjr+WTiD6WxvRgAUFZc+4Jui7ZnKIdydkBze9C3tIXnnHjOSnmADaQGoHNyYEE NKdOX1T9S+iNF16J3ys5lKCOpApW0AEAE6grdkFCdkdMcsnAiLsGGDGsKnNp39bb5vZ99MclEf+5A 1y8vonqN3kLghaC6o0eMt0uDYL5+bQvea+X30cFw3e+IXF+WE2vm1WpzYOVLsE/pXDdrAK0cYLPp4 Hwzi3/DMfXmQItFMezm4eY97yF0wPIT0W2LtrcYglH6i2I2BrosiMz7crHDwazUdHRLiXV3s77TMc jzEOSAYzNFxeVAfYVNYsBtViiAfk4Xg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i7wiw-0003b8-1J; Wed, 11 Sep 2019 07:07:30 +0000 Received: from mail2.protonmail.ch ([185.70.40.22]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i7wis-0003Zy-D5 for linux-riscv@lists.infradead.org; Wed, 11 Sep 2019 07:07:27 +0000 Date: Wed, 11 Sep 2019 07:07:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aurabindo.in; s=protonmail; t=1568185634; bh=o1L+8KhqsX2u25XHVsCqbScSrZDVm6VBVGwx2oUNrkc=; h=Date:To:From:Cc:Reply-To:Subject:Feedback-ID:From; b=B1ngaLX5Wd0vi0NHSp7skQKh8dYy4lezL9ofvPLKxXliM72y9PJF4LOxBEYH7uFZC Z++rLaVCEzu2lnHJ/qIXYW5ltoyhKg1aOg/UTULTuX3epfAqsBxEgfx1+viO2SlrCP wUAMOlolarO3wnMNqjqWJ5w30HjId+EtZmFEOyv0= To: Paul Walmsley , Palmer Dabbelt , Albert Ou From: Aurabindo Jayamohanan Subject: [RFC] buildtar: add case for riscv architecture Message-ID: Feedback-ID: D1Wwva8zb0UdpJtanaReRLGO3iCsewpGmDn8ZDKmpao-Gnxd2qXPmwwrSQ99r5Q15lmK-D8x6vKzqhUKCgzweA==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190911_000726_599710_C4B40D06 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [185.70.40.22 listed in list.dnswl.org] 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Aurabindo Jayamohanan Cc: "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-kbuild@vger.kernel.org" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org Hi, I would like to know if something extra needs to be done other than copying compressed kernel image, when making tar package for riscv architecture. Please see the attached patch. --- Thanks and Regards, Aurabindo Jayamohanan From 86feb93c62daa61314df0bbe1a11272c23b1eadb Mon Sep 17 00:00:00 2001 From: Aurabindo Jayamohanan Date: Thu, 5 Sep 2019 12:52:45 +0530 Subject: [PATCH] buildtar: add riscv case Copy compressed kernel image into tarball root. Similar action for both arm64 and riscv architectures. Signed-off-by: Aurabindo Jayamohanan --- scripts/package/buildtar | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/package/buildtar b/scripts/package/buildtar index 2f66c81e4021..388d0fcbe8c2 100755 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar @@ -105,10 +105,10 @@ case "${ARCH}" in cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}" fi ;; - arm64) + arm64|riscv) for i in Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo ; do - if [ -f "${objtree}/arch/arm64/boot/${i}" ] ; then - cp -v -- "${objtree}/arch/arm64/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" + if [ -f "${objtree}/arch/${ARCH}/boot/${i}" ] ; then + cp -v -- "${objtree}/arch/${ARCH}/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" break fi done -- 2.23.0