Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6644770imu; Sun, 2 Dec 2018 23:53:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/WOPKn9M4hu/zYg2lIU8xaKTCapmyfVACHCnSVi7sMpxasf4dyL2aww6T3XAwaWW+tu1FdA X-Received: by 2002:a63:955a:: with SMTP id t26mr12496431pgn.449.1543823607353; Sun, 02 Dec 2018 23:53:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543823607; cv=none; d=google.com; s=arc-20160816; b=V9lMeaM8EtX95XOHHB4ey+giOEwYPznm5IJM/CRYrLkI1Yfoo8vvU+RErB9IaHMb35 medD63ZTz+k7SQUsWJlwAvlQirYV4punFiuMNgDOFcZEycUuWLDzTYNhg6kcm/Jut+Y6 AHo/VvQaAEqnoYeMk0xv6l56T6s7c4eXK/SMogVwPuR/TwDrZszx2SFXol4/BtN55PD3 +l2zdq21x/Up/equqFi1JV5KVGb25eOxmgyRHIh4RCCLllyDKvMa6gJUerQk8T+dxqom 8tjLiMM5ctlIeOSjfk8f7jHb3/HOaU0hM/OZBPvDut5bQuzqgY0XyqdXlms15hrS9Gw4 8APA== 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 33-v6si13779418plk.407.2018.12.02.23.53.12; Sun, 02 Dec 2018 23:53:27 -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 S1725921AbeLCHvr (ORCPT + 99 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(-) 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`')' -- 2.7.4