From patchwork Thu Jun 23 04:53:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 70725 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp240318qgy; Wed, 22 Jun 2016 21:53:59 -0700 (PDT) X-Received: by 10.28.193.78 with SMTP id r75mr11453491wmf.83.1466657639826; Wed, 22 Jun 2016 21:53:59 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id wd5si4662601wjc.38.2016.06.22.21.53.59; Wed, 22 Jun 2016 21:53:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED17BA7506; Thu, 23 Jun 2016 06:53:58 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CPu-8WYsrDiR; Thu, 23 Jun 2016 06:53:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 64E2A4BB3B; Thu, 23 Jun 2016 06:53:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E264D4BB3B for ; Thu, 23 Jun 2016 06:53:37 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WSIA2Mgqqpc1 for ; Thu, 23 Jun 2016 06:53:37 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by theia.denx.de (Postfix) with ESMTPS id 3A5C24BABA for ; Thu, 23 Jun 2016 06:53:31 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id u5N4qOVF004563; Thu, 23 Jun 2016 13:52:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u5N4qOVF004563 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1466657546; bh=8mIkQ9j6XH5b/jQj+0vE9/cl9AGp1IDJPLu0QQ3pwM8=; h=From:To:Cc:Subject:Date:From; b=PXxlJWQB/dloJyHPEjU+g1hO4n8UlgyK4WEvIv1JgKrdOzycWe1DJgIxZy32btLk4 zv2jrzXqx4zvBTMrgBTAjM9RHsyHQxfQw7OkO7c0OaqK2z6kO1+ttndTMPHknrHTvS knQLVSh/uC38E23TrqEjegzSCB+L9P6uifkDYvRmHHUqPqqGidldCLUoZCehLygLpm HjVX9Ki0KKeeIBvtmxZJ2FWTAL5G8E295vixZBL7LdZZ7gpCcn0GoHU4/l7FddmyAj BTQ1yGCjBZjt6LdleX4dqbqYjce+jxk7XixWZP9kB1H5/ENcfTW2EMdsWNqDnjAZ+N tsPqNXLi0sevw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 23 Jun 2016 13:53:46 +0900 Message-Id: <1466657626-9328-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Cc: Stefan Roese , Stephen Warren Subject: [U-Boot] [PATCH] kbuild: avoid race between dtbs and dt/dt.dtb targets X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If the final targets depend on both "dtbs" and "dts/dt.dtb", and -j option is given to the command line, multiple threads descend into the dts/ directory, which causes build error. Signed-off-by: Masahiro Yamada --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Tested-by: Andreas Dannenberg diff --git a/Makefile b/Makefile index d0e7a8a..ad434c7 100644 --- a/Makefile +++ b/Makefile @@ -810,7 +810,9 @@ ifeq ($(CONFIG_DM_I2C_COMPAT),y) endif PHONY += dtbs -dtbs dts/dt.dtb: checkdtc u-boot +dtbs: dts/dt.dtb + @: +dts/dt.dtb: checkdtc u-boot $(Q)$(MAKE) $(build)=dts dtbs quiet_cmd_copy = COPY $@