From patchwork Mon Dec 3 07:50:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 152677 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6512182ljp; Sun, 2 Dec 2018 23:51:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/W8zzEizJ/z7BnGijQFQ3A7jLTOB9cx/UOlMxyfBo2To1TT1BfCWJuocJgAG0Wf32dmB5jo X-Received: by 2002:a62:160d:: with SMTP id 13mr14730872pfw.203.1543823510144; Sun, 02 Dec 2018 23:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543823510; cv=none; d=google.com; s=arc-20160816; b=AUBZxCeARStnnDiTzAzB2s0qDKZwy5mPQ1DqKltwttXCnndUSZ0K3xcBU7co0F+lcA UkDmoGU6+bTnwfThUzrlqdvgXqq1kcso8ujn2PzFdToQtUystIumhgv8eWKDJtAU7l1K AT373I+y5Viq7g1n+5YI0rvCujflPlmXxosTS+nQfFdNkdC9PX3Tw2F6aFNLVpd2gyJq ee/ZWzcPFfVUIQJBKyWzFT8QP4WKTkLomYCKpngLTv0h/Qr1K/ottH70kkymDuO9gDhM TIo/3upCTIWkdRhzTMtbk760s76kSc7lCq+wYdhIhj1ZL3Ie7bAUJ/uBv1w0J7NdLNXa ihmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=/bkD1AaEj77ORfzeA5lP0B9fBeG7hxBuHP/+JIDuorc=; b=rSn3W8djcTkrJdABiHjnX4Qio6Tuj4c5poPQ09kUtHMuPcgo8si/krw2J3NiBTf9HS eAXN7T06WFSS2P/eHZCpmSozmt5r51Xya0epgWleb2N7DB3NM6DfbSiwQvn74TrqG3ZW jlWwJa9iqYWW7F3g+wA6sBdsm5GfLGmKmvTi7UNXl8e3rmYYuvuBe3CTKzjY61XLX2xH rrsHgh3dDI/WWxgWdqZFcBab8zc+JVXgml8DFV82rvQtix35iEx5Ch8a9wyiibK8mFTm 4wNpXrOFyVMAR+w60xXXx4hNqDYljaAJz8cKaydSjupAIuVjQ8IrbjrpDQBJHTo0NH9u zlsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="gYi/FM64"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p127si13519080pfp.119.2018.12.02.23.51.49; Sun, 02 Dec 2018 23:51:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="gYi/FM64"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725924AbeLCHvr (ORCPT + 32 others); Mon, 3 Dec 2018 02:51:47 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:60224 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbeLCHvp (ORCPT ); Mon, 3 Dec 2018 02:51:45 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id wB37p4O7009296; Mon, 3 Dec 2018 16:51:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com wB37p4O7009296 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1543823468; bh=/bkD1AaEj77ORfzeA5lP0B9fBeG7hxBuHP/+JIDuorc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gYi/FM64UmEWhru1vPEsWksgX7+4FHQ/yeM0vaw/7w4qb0I0gZvTdsvNSo3eqWcua xqA9aSeYGR3iM4RMZysWfwtFtqDZKyzMVPB8qw4vgRa7C/dqHu5bTcrgxYEsXFrJVd JdcNRQxDjrbdxST93V4SQpssHnUFh2VJclPjJ1JHnFDrMFZ/1bnyUhC26ANl1dUEg2 MdMw3AO6RAF/55ZBRx6ALj1KqBFEYlsd6vlC7GhW8PigLdHkF7xGaKJOsjgaWxlENs h75chG7rpwz/pMkMPDNIqWehKGUH7NmLRY2QoM1YwdFRLdDxuSX92ZAk4J0QZCUvLP sD+umS9WKn3HA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek Cc: linux-kbuild@vger.kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 6/7] microblaze: fix race condition in building boot images Date: Mon, 3 Dec 2018 16:50:56 +0900 Message-Id: <1543823457-32478-7-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I fixed a race condition in the parallel building of ARM in commit 3939f3345050 ("ARM: 8418/1: add boot image dependencies to not generate invalid images"). I see the same problem for MicroBlaze too. "make -j ARCH=microblaze all linux.bin.ub" results in a broken build since two threads descend into arch/microblaze/boot simultaneously. Add proper dependencies to avoid it. Signed-off-by: Masahiro Yamada --- arch/microblaze/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index 7a5df02..544796d 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -79,13 +79,15 @@ all: linux.bin archclean: $(Q)$(MAKE) $(clean)=$(boot) +linux.bin.ub linux.bin.gz: linux.bin + PHONY += linux.bin linux.bin.gz linux.bin.ub linux.bin linux.bin.gz linux.bin.ub: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')' PHONY += simpleImage.$(DTB) -simpleImage.$(DTB): vmlinux +simpleImage.$(DTB): linux.bin.ub $(Q)$(MAKE) $(build)=$(boot) simple_images @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'