From patchwork Fri Dec 7 11:33: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: 153147 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp386996ljp; Fri, 7 Dec 2018 03:34:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/XCwIq6SEpugpfqU/hNFB17mxMshmVX6dDezhQM+vvwmaE41VzOSOP1QzyDUsckTFWKhAFe X-Received: by 2002:a63:83c1:: with SMTP id h184mr1581172pge.437.1544182483555; Fri, 07 Dec 2018 03:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544182483; cv=none; d=google.com; s=arc-20160816; b=QnjKfAnNqKNEE5S8hqCSXURMgo7BLqqTjV26gzbTXNL6aGFwte3ut1BEGV1XtI3s8n hGG+KLWPZ6u+4p0yaq/QPOWVvrgDcIQd5yPpkRbAzcffKDFI2/V5kB49evomqvnI0bFO ijGxOfZXkWIbyW4CSv1op8hdOr5upnyG1GLeuLbIJFTuXN7eINDi9hxmZcpynhgX916u IPiLKcEy5rT3K7YWiIl/aL3/NXVfhcD7PSB35MMur03UiNwL1CcdOc4LwrCe/iZUwfR2 TTrMZmoAOoHufxSNgt8MlAwBmFktxg+rCRSi40nNAMM9b3tsgBOakY+etH06I1Tr3H6A LXCQ== 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=iWKyb7H5Y6sa+fS3ZVKUj+AUMRvSCVfD4O07yhmAYiw=; b=dkEYeIEgMM4OpnJVK+n+fA/N8kUWfonZFy2NE8i5csVGkRtiCwYx4tV6BfpMPweXtl iHyssPEMVZnxeBf8fKohkQiGL43nPiQ7Hp2ZZKM3N5pWOzIIXvjm4JjjYOiOdT7pX/oF D9kvcNpZ0i9IEWoPN7OWzqdG1NK7ZFx4sT/K6YUOX7e+Jr6+aB+i2WaVfNh2rmi+kZ2N wPe8lowcgLetk6z1O4qpLW7Gmd3/97nu0JSB9GoKqvF1DmvHEQOr+XwIkXVGiTj9C9nV NG+ErOmUsvCAJ69O33kbNIbNiBHSRsZGsfxyQ4dclMRtb1CTO6NyZelgl6/a/HP2k22T uTpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bqdWSyR4; 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 q9si2685750pgh.92.2018.12.07.03.34.43; Fri, 07 Dec 2018 03:34:43 -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=bqdWSyR4; 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 S1726155AbeLGLeh (ORCPT + 31 others); Fri, 7 Dec 2018 06:34:37 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:45839 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbeLGLef (ORCPT ); Fri, 7 Dec 2018 06:34:35 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id wB7BY6rg020070; Fri, 7 Dec 2018 20:34:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wB7BY6rg020070 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544182449; bh=iWKyb7H5Y6sa+fS3ZVKUj+AUMRvSCVfD4O07yhmAYiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bqdWSyR4ct/WJ+ehuhU+WAJQkwtK44msPUli7SjFA8ROLf/az93c6UktZdCt0ZXMY 0Nl+x+PLiyTuT8VMfKfcvDBfqp9+zAYiRDSlhDS6T9wMWlv+EFBFTkGKn1RANPLJRC 9xg1Ov4LGkhWBzoXVyinLT9Kz9zsQ+WpJolntiRkpr2MXaL9zldQ5oX02lS/iXvEW+ EMVdRIzrJIoMO+9iFeE4Jx2YVesCddmJsJmj5iVRPn2KEGTWJd6Tyb2LHM/d0HN0Ua O6jI2s610G3XOnWZancW8nJtwJjpogOZhV1YwWDsVxvdj4q2poEDeprJbiEntOY4RU 8JHvwvR8fzIBA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Michal Simek Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] microblaze: fix race condition in building boot images Date: Fri, 7 Dec 2018 20:33:56 +0900 Message-Id: <1544182437-26660-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544182437-26660-1-git-send-email-yamada.masahiro@socionext.com> References: <1544182437-26660-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 because two threads descend into arch/microblaze/boot simultaneously. Add proper dependencies to avoid it. Signed-off-by: Masahiro Yamada --- Changes in v2: None 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 180dffa..7b340a3 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -83,7 +83,9 @@ archheaders: $(Q)$(MAKE) $(build)=arch/microblaze/kernel/syscalls all PHONY += linux.bin linux.bin.gz linux.bin.ub -linux.bin linux.bin.gz linux.bin.ub: vmlinux +linux.bin.ub linux.bin.gz: linux.bin +linux.bin: vmlinux +linux.bin linux.bin.gz linux.bin.ub: $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'