From patchwork Sat Nov 21 19:36:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1404380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=Wvza523v; dkim=temperror header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=Ebq/jKKs; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=YNvrC8KA; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CdpZb255zz9s1l for ; Sun, 22 Nov 2020 09:52:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zomqV9NUBCNJ6ljFxOlb+4EI5i4mIkdhGGAtO42UjYs=; b=Wvza523vQUD5Vn6JF4m16RZxG mqjDRtYku8/4GZQCWsXfpTIqn416vXrtHq0FR4nlNfd9hiVpbG91XPoIXBx1tqNcz+4CouzVKGWOD Dea0yb5ZWF7QkmCkWZQta4JEyF8eiyY++8cJe4CV3mo3Vp7h2fiV+lncjq/wxPVd5MuL+hjryQMYp aXieMIvmoIHStF/IXsKTP/clJNVIoeq5eLYBi5i68ouv/tTSssQP6Mgu4GlYNrWlOaNgyFFTM7ymv VWzbqc0Z7acYv5am5We9hLB6usFowhE9A2aBHARedkTZhwl3lJNTY70Ip4pOad8ib1ftKb3oSorBL z9t4Rfq/A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjf-0005cN-Jo; Sat, 21 Nov 2020 22:52:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjd-0005bT-I0 for linux-snps-arc@merlin.infradead.org; Sat, 21 Nov 2020 22:52:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=tO3lfkM46ZiPV3HhKCVAn/mbT1jwK78kFKMFlV1doXg=; b=Ebq/jKKsTIVMNwkTa+cIEEyYpS iOj9rsdU+liYlr/9CEmcjV7WB6J0Mf9V99qJf4xSZ5HoLCLVB5AcUqqbIDYqoRgJVdVsynI3yTcba qeYOLOns4GSXwSdY/QXwx/Wj8MFRDxXn41vw+T4PWpO8NjAQ7Dz7JmzA5ULwFE+cT3H3O/sHG5pn5 N3KVht8k42kGYyr+SwXR62RIXL0YHAlobcEOtVVDZtnukldywbWS8FWH33NEacqji/2Y3TLKWDVSr y/OuMNOfSFtAfLE3/SsaiZ+sFmzNuchMr3D9x1TZfcSfXxrg+KiI2B1sOY/l1CSCO6P1ZACWOTjBd psMBLVxQ==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgYho-0002Wl-23 for linux-snps-arc@lists.infradead.org; Sat, 21 Nov 2020 19:38:03 +0000 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZC029948; Sun, 22 Nov 2020 04:36:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZC029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987419; bh=tO3lfkM46ZiPV3HhKCVAn/mbT1jwK78kFKMFlV1doXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YNvrC8KA+LKEIK7ONHxyRkxBKssZdAJTe+oKUtGqaNwoUS/em0UqjMw52eHxgGkuq LhaF7WBp/rdUVdt8YalBMgD7KTq5fRDFUvkSXU1Kb1IFLH2aI6/ZCRBfwzL8DbalVa 7HqCU4xTlsfCjvhW5EkJobh6NBVxvRY/xQ+Yd553OOZ5qnZfPBogvQPybR5QRY1L7n mFaObU3zryeELlXFyb05UlSe+D5cNZG9Yzxvq4fNFCslF18b4LsvdcUP1Q0uLbWDTM etkwsclLElVKblM1XWs/85p94sGd5RuXyGgmHxzjL5sClJnl70Bfe1Ut1CfqE2yGkd urrm/fDRIJ9BA== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH 1/6] ARC: build: remove non-existing bootpImage from KBUILD_IMAGE Date: Sun, 22 Nov 2020 04:36:52 +0900 Message-Id: <20201121193657.51441-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_193757_061332_2570E97E X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The deb-pkg builds for ARCH=arc fail. $ export CROSS_COMPILE= $ make -s ARCH=arc defconfig $ make ARCH=arc bindeb-pkg SORTTAB vmlinux SYSMAP System.map MODPOST Module.symvers make KERNELRELEASE=5.10.0-rc4 ARCH=arc KBUILD_BUILD_VERSION=2 -f ./Makefile intdeb-pkg sh ./scripts/package/builddeb cp: cannot stat 'arch/arc/boot/bootpImage': No such file or directory make[4]: *** [scripts/Makefile.package:87: intdeb-pkg] Error 1 make[3]: *** [Makefile:1527: intdeb-pkg] Error 2 make[2]: *** [debian/rules:13: binary-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2 make: *** [Makefile:1527: bindeb-pkg] Error 2 The reason is obvious; arch/arc/Makefile sets $(boot)/bootpImage as the default image, but there is no rule to build it. Remove the meaningless KBUILD_IMAGE assignment so it will fallback to the default vmlinux. With this change, you can build the deb package. I removed the 'bootpImage' target as well. At best, it provides 'make bootpImage' as an alias of 'make vmlinux', but I do not see much sense in doing so. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 0c6bf0d1df7a..acf99420e161 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -102,12 +102,6 @@ libs-y += arch/arc/lib/ $(LIBGCC) boot := arch/arc/boot -#default target for make without any arguments. -KBUILD_IMAGE := $(boot)/bootpImage - -all: bootpImage -bootpImage: vmlinux - boot_targets += uImage uImage.bin uImage.gz $(boot_targets): vmlinux From patchwork Sat Nov 21 19:36:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1404383 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=aqQUfhD6; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=AG9/iLPu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=cZPsV4qu; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CdpZs04Jdz9s1l for ; Sun, 22 Nov 2020 09:52:21 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Pcbvt0dlh9HpRczf8H+DbO1JBXhhFhk/bc9H8NV84FU=; b=aqQUfhD66pb+Zbj6a9j/X9BPD MsIIwPO4zw9ThtWoIJL72KdzUgZKb2XkBy6e3nj9teZZlydRpgqgq0IGV73/lbiWg2/L02cY/sEEA 8PED3RJVQsBI81cXtq5A4kUfAi2dDD8Jtbz7aN3gbEIfapSi02S+PtjP0dic2IEVAy2QeP4HOY/Ce pMNuluPzcML1H6DtwFWiw1NU51KG5o0r+6TpGM02ey5U8x/c1vcQvqx7JJT0Q3WAtfI2L+Z2uR4RR sYPtKzWw3UILtqQOPk93iR99TMfo795tEm+BJbBnYNx8zjWhogMJgZoWjnVsh3QK/CSFRaAWh3sVa NDpMevIow==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjt-0005fl-Im; Sat, 21 Nov 2020 22:52:17 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjr-0005em-8D for linux-snps-arc@merlin.infradead.org; Sat, 21 Nov 2020 22:52:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=nAxcOdJY1mvrwExMzg4hS+b5OlfAmMuqUYSTfMiExmU=; b=AG9/iLPuIfVF5ZVcDROS5Z3Ewn UtLdln8gHeCLh4KGJpX1HbR+hnJPNmPpZrXp2Y9z2Bbh9qbrGh5bizL/ctk5+qoQ8Xv970HAcaOnl suFAqgWUl9Rt+XbCdfhlpVqQ5NA5YktMai7Xwy/RhEbaozpne513lytaYEIXVxGew38V/FRHWSpSn iTVRp0W+AR+sXspKRft4pOphI3ov9eGrtbbapiV/0e/8/2v6ohinPfWfDC7W9Bz0F9ztuOicgMQAD Ce3caI3R9k5n57WuWtn43camrNpgJil8vAwdhU2zAIi7NPQtGMwjtN85vEcU7rfJ5p2tum3Xgcyo8 ZxND0UmA==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgYhm-0002Wp-0Y for linux-snps-arc@lists.infradead.org; Sat, 21 Nov 2020 19:38:02 +0000 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZD029948; Sun, 22 Nov 2020 04:37:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZD029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987420; bh=nAxcOdJY1mvrwExMzg4hS+b5OlfAmMuqUYSTfMiExmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cZPsV4qudX33UralNq72zbDm/DGpw8VcC9GxyU5KnUZsunhaeRFN3AnCz3Hn55Cru 6YEfw4BWYUiluiJq2bQUcR+VPlT+wdUS7OMkoJD40LptWO3AzxihRviK+tGEBzTqCq nuEkRVoEKAdtBD+5oT2d31SVGGNVpLT7PSvV/ShkPaS/C5y50Vt1kep5byoBs1+oDQ foORTZlzcHxJeRJGJTm6s4gEfc8wq5MrFSNPdX/n4hC/DYjGarh6/CAmNBXSJnR1wD f6zQ3T8mN09XML5nG+q2nFP/Ps2WZ81JqfwQlCKE1KIrkgcvu3/TD1+gmRfRXSAmAK /BVPDUvWBbVtg== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH 2/6] ARC: build: add uImage.lzma to the top-level target Date: Sun, 22 Nov 2020 04:36:53 +0900 Message-Id: <20201121193657.51441-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_193755_823556_039F5C84 X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org arch/arc/boot/Makefile supports uImage.lzma, but you cannot do 'make uImage.lzma' because the corresponding target is missing in arch/arc/Makefile. Add it. I also changed the assignment operator '+=' to ':=' since this is the only place where we expect this variable to be set. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index acf99420e161..61a41123ad4c 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -102,7 +102,7 @@ libs-y += arch/arc/lib/ $(LIBGCC) boot := arch/arc/boot -boot_targets += uImage uImage.bin uImage.gz +boot_targets := uImage uImage.bin uImage.gz uImage.lzma $(boot_targets): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ From patchwork Sat Nov 21 19:36:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1404406 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=E8qpScqS; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=hpxOIdqT; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=a1v/i7VH; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CdqhG3d8Bz9sT6 for ; Sun, 22 Nov 2020 10:42:06 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o0sVRm41SCWxgQmhomWSZxaxHf5AAUve5oSHMjkeoY0=; b=E8qpScqSugiQaMiC87UmGoUAS W1qsJK7KWuMuv2oTB0gW+WPGwzdf7UnNFxdrPmNXoawM8JeecKt/sc1IIZ+QyT4K/LqVJ2bmDhDlC ZTO6jv80bzQZ1dcQTvGAvXbQlxJaxO8Qo9y18QkhEn/4u49/mjZyc16bGweXXuI3eYa+SoZuAJCer VOGrxG2PQJOqXIJumi2ieSLE68C5A19L2s2k653E+ujEcKwSRJsvlYBqs8tgKD3Hz+GJHjKMPPLaD 6AAoikJwZTS+3RBJRmtMOxsFdKmYsdrpmbwY9avQenc2/joGwkRbj9blJqBMFZ5d2QdFvGj3qIxoQ DKOK2qxLA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgcW3-00066X-2C; Sat, 21 Nov 2020 23:42:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgcW0-000651-8i for linux-snps-arc@merlin.infradead.org; Sat, 21 Nov 2020 23:42:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=1h+SziFamFq3LykQmarKbE8G+YUzBgaGe54/2+YrZwo=; b=hpxOIdqTGxjeMAa73C7XguI7mO 0CEuE0CRAfITY/KIVjHUrNbMgsrDt1Mnavdb6fyZmdqFAO5Ft0RI5qUmEihkQOwRIBKiLr+Pj5uH/ +dQg+09CbA0GOOrrqPZcwozAOOmgHLcyBY4yBZ4Mq7qFIBKmUUKr4zcdQ69WLBhMtwOcF81LGiW2w vyn3H2jMsyFi6TdyYjpOeBZFn898kVlFEdkqj4cJesZbTLs3OOZXgtUaH6koV9YsmnzYScIQ1c3kb GS46XslSCInbet4/kSYzizYtFO5lHjLkE8i8xCgpG2GubOVBXGPAMDY1PWY0/a92vyjRvcQuKxxIU un0VrRVg==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgYhl-0002Wm-VW for linux-snps-arc@lists.infradead.org; Sat, 21 Nov 2020 19:38:01 +0000 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZE029948; Sun, 22 Nov 2020 04:37:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZE029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987421; bh=1h+SziFamFq3LykQmarKbE8G+YUzBgaGe54/2+YrZwo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a1v/i7VHRh8dM3u6c0dJ3qzOE6tsqrSvmNZZEEeq6FgNMfc5lcrbSPMofvOANEPp6 FW7iWscKXNVfOqSESuqJXCpF3EG9wsG5LEZH7kZyv13X34Cg+jreHXM5NhgjJyjP4N sYrsZYPJnOUn08KuuBd1KDQ1lTVem1Ug51S+64qYo/7Xho4wYszqTYDb952AgWHvmu VXPTPQb1uR7qaAtNz2Q+13TFrrF8te513a1rtkBL3bDNmKv67XtlNMrP5X4wGuGgxS BWPtukllZyq9rpq2ceBU1XL0VbPggUPwEiTOj/Wqm4reUeGLyIWcCprLnwCN9P5aRt BcH+620rWnl+Q== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH 3/6] ARC: build: add boot_targets to PHONY Date: Sun, 22 Nov 2020 04:36:54 +0900 Message-Id: <20201121193657.51441-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_193755_822239_CB7FF5E0 X-CRM114-Status: UNSURE ( 7.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The top-level boot_targets (uImage and uImage.*) should be phony targets. They just let Kbuild descend into arch/arc/boot/ and create files there. If a file exists in the top directory with the same name, the boot image will not be created. You can confirm it by the following steps: $ export CROSS_COMPILE= $ make -s ARCH=arc defconfig all # vmlinux will be built $ touch uImage.gz $ make ARCH=arc uImage.gz CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h # arch/arc/boot/uImage.gz is not created Specify the targets as PHONY to fix this. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 61a41123ad4c..cf9da9aea12a 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -104,6 +104,7 @@ boot := arch/arc/boot boot_targets := uImage uImage.bin uImage.gz uImage.lzma +PHONY += $(boot_targets) $(boot_targets): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ From patchwork Sat Nov 21 19:36:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1404407 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=ZVImhbR+; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=IVUnA7xj; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=X+jMy/oC; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CdqhF5TDBz9sRK for ; Sun, 22 Nov 2020 10:42:05 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RfjLyXwMULreCQFItpqCsD/zmM4T+z9hwchEG+lrA3w=; b=ZVImhbR+X9SjyaT3zMm7RIGVw VtTOobvAm3dzBeJc1EUTvo9bSRGuDPgfkL39jPLev6300g3E6wXBHpFcc+tdNlT7tRgtU92y8SNOs ULno2QmbObEK4YcB49GhksH04rxIwzRi8VTIAiFxsaW6+V3d047gG1HbyNN2fPcw4p7r8Or4P43// T787Hn6MK8lhZfP2nsZkPlgBd8i8C4PI4L8zt9AGDCuEabzkgrdQjbmu9ToqqLcULrxy6HxzPqas9 N51l6W09slGyz3CeEXLi3nWkUSd4dStzkoavl/KTa7J6Vme26k50Vu8lPPNWpp1Q3x3OGkS9adRkA D5YxqgQZw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgcW2-00065z-6U; Sat, 21 Nov 2020 23:42:02 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgcVy-00064b-SY for linux-snps-arc@merlin.infradead.org; Sat, 21 Nov 2020 23:41:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=zRjAI6MWIz8eko8nj7c1QV+VW5QvZBMpIg5afqWWL3Y=; b=IVUnA7xjoaC1Sar5PSIWcIiaFe q0r/ljsLYa18gkD0REMzKnnJP2V/V23yg2/CcMC62v5MtyNUAicDoDYWUMjmxDi/eK5vWHhSCVgPn XxKXx2NRHDH3deF/jSY7wEs+e3SuMdywNbeaCaHpid2TVqeVExPC8UopYtmQaUA6Sai1pDZlISD0D Kezm3s3HHZAvI6HyvHFKoRHP8NWqh/NyTT7Jlz6E2BalRCup+QRmd/ERD++oQonvqPAL2B2NGLSLc zCMJLm31QKV4Y04ZpZ6rJL3v2Jm/5rMK8YLcAZDpQGyE+ZvBsaj712GQJSQe1R3GTO3Hxv64+JUil fE6Xi/aw==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgYhl-0002Wo-UH for linux-snps-arc@lists.infradead.org; Sat, 21 Nov 2020 19:38:02 +0000 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZF029948; Sun, 22 Nov 2020 04:37:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZF029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987421; bh=zRjAI6MWIz8eko8nj7c1QV+VW5QvZBMpIg5afqWWL3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X+jMy/oClpaAo13iHygxx8F3dSxfFzoypa25P4VmOe4gJ3rXB8WohOPSc0BAnTaec o4zx7LWDjGh28u+7Bce57OLV328pXbgb8ibiv3pjUETHH/hpHUBTOK4kKSxf5hhI/4 v9SyRdKLWPXnO0rC2p6fQjnacLrQDw3btZmEMui0MVSoh88EdwZCAsTwZ3AyoshBGN QOeG38sYI6/YS+MrTBmLGyiIMR1/Hjzu4w7iNNCmYHCk75XzJyOMrCMuiXinIht5Mt T2wRPl2IKqldLTCMFac0goaNMPSknuMLruPz/vU1E3TyAUyfkMSyIeAHeM/e8f9jVA 3NfaTGVlEoUBg== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH 4/6] ARC: build: move symlink creation to arch/arc/Makefile to avoid race Date: Sun, 22 Nov 2020 04:36:55 +0900 Message-Id: <20201121193657.51441-5-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_193755_485624_08DB4B39 X-CRM114-Status: GOOD ( 14.24 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org If you run 'make uImage uImage.gz' with the parallel option, uImage.gz will be created by two threads simultaneously. This is because arch/arc/Makefile does not specify the dependency between uImage and uImage.gz. Hence, GNU Make assumes they can be built in parallel. One thread descends into arch/arc/boot/ to create uImage, and another to create uImage.gz. Please notice the same log is displayed twice in the following steps: $ export CROSS_COMPILE= $ make -s ARCH=arc defconfig $ make -j$(nproc) ARCH=arc uImage uImage.gz [ snip ] LD vmlinux SORTTAB vmlinux SYSMAP System.map OBJCOPY arch/arc/boot/vmlinux.bin OBJCOPY arch/arc/boot/vmlinux.bin GZIP arch/arc/boot/vmlinux.bin.gz GZIP arch/arc/boot/vmlinux.bin.gz UIMAGE arch/arc/boot/uImage.gz UIMAGE arch/arc/boot/uImage.gz Image Name: Linux-5.10.0-rc4-00003-g62f23044 Created: Sun Nov 22 02:52:26 2020 Image Type: ARC Linux Kernel Image (gzip compressed) Data Size: 2109376 Bytes = 2059.94 KiB = 2.01 MiB Load Address: 80000000 Entry Point: 80004000 Image arch/arc/boot/uImage is ready Image Name: Linux-5.10.0-rc4-00003-g62f23044 Created: Sun Nov 22 02:52:26 2020 Image Type: ARC Linux Kernel Image (gzip compressed) Data Size: 2815455 Bytes = 2749.47 KiB = 2.69 MiB Load Address: 80000000 Entry Point: 80004000 This is a race between the two threads trying to write to the same file arch/arc/boot/uImage.gz. This is a potential problem that can generate a broken file. I fixed a similar problem for ARM by commit 3939f3345050 ("ARM: 8418/1: add boot image dependencies to not generate invalid images"). I highly recommend to avoid such build rules that cause a race condition. Move the uImage rule to arch/arc/Makefile. Another strangeness is that arch/arc/boot/Makefile compares the timestamps between $(obj)/uImage and $(obj)/uImage.*: $(obj)/uImage: $(obj)/uImage.$(suffix-y) @ln -sf $(notdir $<) $@ @echo ' Image $@ is ready' This does not work as expected since $(obj)/uImage is a symlink. The symlink should be created in a phony target rule. I used $(kecho) instead of echo to suppress the message 'Image arch/arc/boot/uImage is ready' when the -s option is given. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile | 13 ++++++++++++- arch/arc/boot/Makefile | 11 +---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index cf9da9aea12a..578bdbbb0fa7 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -102,11 +102,22 @@ libs-y += arch/arc/lib/ $(LIBGCC) boot := arch/arc/boot -boot_targets := uImage uImage.bin uImage.gz uImage.lzma +boot_targets := uImage.bin uImage.gz uImage.lzma PHONY += $(boot_targets) $(boot_targets): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ +uimage-default-y := uImage.bin +uimage-default-$(CONFIG_KERNEL_GZIP) := uImage.gz +uimage-default-$(CONFIG_KERNEL_LZMA) := uImage.lzma + +PHONY += uImage +uImage: $(uimage-default-y) + @ln -sf $< $(boot)/uImage + @$(kecho) ' Image $(boot)/uImage is ready' + +CLEAN_FILES += $(boot)/uImage + archclean: $(Q)$(MAKE) $(clean)=$(boot) diff --git a/arch/arc/boot/Makefile b/arch/arc/boot/Makefile index 538b92f4dd25..3b1f8a69a89e 100644 --- a/arch/arc/boot/Makefile +++ b/arch/arc/boot/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -targets := vmlinux.bin vmlinux.bin.gz uImage +targets := vmlinux.bin vmlinux.bin.gz # uImage build relies on mkimage being availble on your host for ARC target # You will need to build u-boot for ARC, rename mkimage to arc-elf32-mkimage @@ -13,11 +13,6 @@ LINUX_START_TEXT = $$(readelf -h vmlinux | \ UIMAGE_LOADADDR = $(CONFIG_LINUX_LINK_BASE) UIMAGE_ENTRYADDR = $(LINUX_START_TEXT) -suffix-y := bin -suffix-$(CONFIG_KERNEL_GZIP) := gz -suffix-$(CONFIG_KERNEL_LZMA) := lzma - -targets += uImage targets += uImage.bin targets += uImage.gz targets += uImage.lzma @@ -42,7 +37,3 @@ $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE $(call if_changed,uimage,lzma) - -$(obj)/uImage: $(obj)/uImage.$(suffix-y) - @ln -sf $(notdir $<) $@ - @echo ' Image $@ is ready' From patchwork Sat Nov 21 19:36:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1404381 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=D5sabHs2; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=KN/O1HC6; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=0PoWRkch; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CdpZn1s1lz9s1l for ; Sun, 22 Nov 2020 09:52:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DKZlN0n8aPHxbhWllftJP634OxXRUq8QkZWweCGryf8=; b=D5sabHs2zD6CeuGlpbNk8/2HH up5/WxdLdQ/rUzvNwjF2eC5p0IwWjV7t935UlfJ3QCvCM5S6Xh+0to/EM2ApF9fMe8OWGsWEGCSvD bR2XaNKlfpbF5Nk3ewIwlidOX26Dsnl8YxQ3CML19TJMnW7+qFRU/RO2p7pXFbqd89roq3BxeWvu4 gxoLKgUToFbhj/N8XFDC2Ygam6wv32iopfuwXorBF9eg9DC2zD2LdwI32VjKJRWz8qpyW1F6BVTvR FcxVFkO8d08IsgbX7bI/2wMWSI3WvVdMfC6PiQBz1x/eUd6JjwdCGMvbChmoqxlpTWKhVHtldEMnY P+g0pEa9g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjp-0005ee-L3; Sat, 21 Nov 2020 22:52:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjn-0005eA-UU for linux-snps-arc@merlin.infradead.org; Sat, 21 Nov 2020 22:52:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=alXBlMLWLCUCyTEUF8p/qc+ms20133bsRLbmR1w39mU=; b=KN/O1HC6PRj1cAwj938qnFb/c4 Fmi3gwCKkP3fpJqqu1uFjSU1Y8riur6kLn9PDFobUMglu4FBy6JcZ176eNPc1f64TKSPZcvcJrvUo 7YF3s8gJFlbuKZcHN54EPeu1NK+/x9m2dr+EdVKvPBSECLu+flI7UI5lmv4WLJEVCA+ilqPvtt8Fa qf8mAptYTrfXwUDLQycelH45zPlI+8ClcA7Bmv2vxUhlsThqWLQoIRd8EX5lNPJoFpizzPQ2wqBjn +k0vfojSJ5UM68QkdbAezDFExXsYuHoDlxZ0hiAcFSLjuTWAR/hU1bEjHXNQp7pujYlYGyiNYjoLp /kTP/TRw==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgYhl-0002Wn-V0 for linux-snps-arc@lists.infradead.org; Sat, 21 Nov 2020 19:37:58 +0000 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZG029948; Sun, 22 Nov 2020 04:37:02 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZG029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987422; bh=alXBlMLWLCUCyTEUF8p/qc+ms20133bsRLbmR1w39mU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0PoWRkch++wYopNCK7hJOVS2Ub0iw9gbr9sysU0966vxs2mQehozeuQqq3DpqhDBp GxDg1vPVFUP3THPlWMlPrOO7BkbW95ljIecZQ5S0Nec2Glc5es3kD8RR3LZ/YRm2BX K2lzf3dNt3zvLzI3Upje2h1f+wPZcIN6f+3CkMCkQgGrgIhSlTHrqRUim/MZiDRN5M zGqpegfpBbN1KFqn/6a+YqZlFVNMioihaBEAOwTuyDEEzn9jaRP0AFvQ+6vot4GnSh U0ETIv59V7nImQ1pwT4g9pVGeswRsJs85iUq0Svk8Z9wkVxEhpYLntv4UXb1S0Ej8r XJJMFOmvdNfBQ== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH 5/6] ARC: build: remove unneeded extra-y Date: Sun, 22 Nov 2020 04:36:56 +0900 Message-Id: <20201121193657.51441-6-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_193755_560439_C5847F82 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Adding vmlinux.* to extra-y has no point because we expect they are built on demand while building uImage.* Add them to 'targets' is enough to include the corresponding .cmd file. Signed-off-by: Masahiro Yamada --- arch/arc/boot/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arc/boot/Makefile b/arch/arc/boot/Makefile index 3b1f8a69a89e..b3870cc100bf 100644 --- a/arch/arc/boot/Makefile +++ b/arch/arc/boot/Makefile @@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -targets := vmlinux.bin vmlinux.bin.gz # uImage build relies on mkimage being availble on your host for ARC target # You will need to build u-boot for ARC, rename mkimage to arc-elf32-mkimage @@ -13,12 +12,12 @@ LINUX_START_TEXT = $$(readelf -h vmlinux | \ UIMAGE_LOADADDR = $(CONFIG_LINUX_LINK_BASE) UIMAGE_ENTRYADDR = $(LINUX_START_TEXT) +targets += vmlinux.bin +targets += vmlinux.bin.gz +targets += vmlinux.bin.lzma targets += uImage.bin targets += uImage.gz targets += uImage.lzma -extra-y += vmlinux.bin -extra-y += vmlinux.bin.gz -extra-y += vmlinux.bin.lzma $(obj)/vmlinux.bin: vmlinux FORCE $(call if_changed,objcopy) From patchwork Sat Nov 21 19:36:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1404384 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=hFWZjmft; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=nERJYY6V; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=Uq4W7h5v; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CdpZw3vvBz9s1l for ; Sun, 22 Nov 2020 09:52:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fGy9c5+OTY/4HQwilFRXKSij00+SQxEjahCGGlIYxm4=; b=hFWZjmft6vdZWb5/ByPLpxeeR chZi+Wl6rrqciGPaFDQs19xft6Ewv7sqV9z7Wz54fM3NqQw0143RHA51vk4SiI1Y5hdJoLZTNnsns KJ5A2ELWsq95SC8yed0Jx+ATniHZSlFDn1yiGmjlUmlQnfchTEvbtXL67k5FwxeGr1yKwNTAwGhAn Z0qrk4V1Pat+AyLMUIN+2cdD2aY4rzdC9zkaXvOUd/un0pautV1Op+WI5vWnUHnejjuScT27HZ20M CY2YRjA5nJ4TReGyMI5OA/01RbPSksrckPn8BGgGzIfmvY5xWbtwGBezbxivoThR1A0IQsWLfBfrX 0rVCvIWmg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjw-0005gi-8W; Sat, 21 Nov 2020 22:52:21 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgbjs-0005fK-Uk for linux-snps-arc@merlin.infradead.org; Sat, 21 Nov 2020 22:52:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=99oE6i2R2oSYJfOZeL3BoDQJFFm9KeclhptfXWwG3fI=; b=nERJYY6VYk+3yuMv66TDexDIpg uQ6dmd7rc+VQcqNHZ1KE5/Oysl/lIRcTfPgZwb9AM+BDUBLCgCzu5sZUcFAwKGkFy8NWjUKTuWqFi NounKcHt/YTJcQy2t/gAj1cdS/F6EOj6WzCqt+1GQ9vTinKKU4omX7kutU0k+6dTrzuHMaRUZtEvN +jOkqbX4Vc+kdqRIWtb8KkHmueR7Volcb+2uE3J53jmPCatS13zAHVA3CBrW+ps0Y+8Ll3RkBLN+h WM+xQ7ll+AkXwnaaV71fwJ+zP4QyfYzPXQY6TUhof128/1uMf7QARJ9y1ZX4HZFrejqn3jsgYjPNI dbrJPhQQ==; Received: from conuserg-10.nifty.com ([210.131.2.77]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgYhm-0002Wr-16 for linux-snps-arc@lists.infradead.org; Sat, 21 Nov 2020 19:38:02 +0000 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZH029948; Sun, 22 Nov 2020 04:37:02 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZH029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987423; bh=99oE6i2R2oSYJfOZeL3BoDQJFFm9KeclhptfXWwG3fI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uq4W7h5v8AWv3KkI0SgoqrLmL45db2IR3BrNlQsFjnJcfJ3fssIuvgFBPJl322xEB YpOlqKV8M/Ux3XYMDKnwyCCRHqDd+0keCXj6sdt660f8YqXGGLNyXmS4Ojovbbl3r3 jpcVWmMPH1fTx+/TSvJ+mk+nf8JkgX7zJwMmelVPI4DfRBsA0xSCblo4QZjXrNYvBS vhftL4QcM+RYdAFwcV56bxYdry9l8K0kRGXCPeRkxUo0rldbDhNVTh8bXxTu6Ii+Bp 9ECj6MyFeGcqCd7BebNWkiBo+iy7Acrzb4lz/WK4KOXjkSfHg2+aOFKtPjnGsqzfM9 LvPJvJyJ8KE3A== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH 6/6] ARC: build: use $(READELF) instead of hard-coded readelf Date: Sun, 22 Nov 2020 04:36:57 +0900 Message-Id: <20201121193657.51441-7-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_193755_912313_55114E94 X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The top Makefile defines READELF as the readelf in the cross-toolchains. Use it rather than the host readelf. Signed-off-by: Masahiro Yamada --- arch/arc/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/boot/Makefile b/arch/arc/boot/Makefile index b3870cc100bf..5648748c285f 100644 --- a/arch/arc/boot/Makefile +++ b/arch/arc/boot/Makefile @@ -6,7 +6,7 @@ OBJCOPYFLAGS= -O binary -R .note -R .note.gnu.build-id -R .comment -S -LINUX_START_TEXT = $$(readelf -h vmlinux | \ +LINUX_START_TEXT = $$($(READELF) -h vmlinux | \ grep "Entry point address" | grep -o 0x.*) UIMAGE_LOADADDR = $(CONFIG_LINUX_LINK_BASE)