Received: by 10.223.164.202 with SMTP id h10csp1770778wrb; Wed, 8 Nov 2017 09:24:16 -0800 (PST) X-Google-Smtp-Source: ABhQp+TCXtEpyzngfqJELF3bQWIoDs72t3CekXnW8Y9OrVNZ7CrjePVUPsmQedCR4xuvznBoKmXw X-Received: by 10.84.225.145 with SMTP id u17mr1046716plj.369.1510161856509; Wed, 08 Nov 2017 09:24:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510161856; cv=none; d=google.com; s=arc-20160816; b=I9J7rpSSiu5KAP5XJ0niwUCR16qWkq10gR/QgF79nU9gejwx4zoxtDBJ8S0u9B1L21 KOH+upw9wb3v0+RaxXLeMq62teAYjmPLJrotyJf1XOjT73Y8OLdvTpHgNCfNRZAFB9H5 93guExyQXcI7repf/bSGaXNHZrN4jZZOCqhPaWQhu14MlthFzbfyO4cIn2k0EjjVwfr0 8e7EwJ57BQi+HSxEyFiGzv36udYXdavOdRfxu5gJfjeedwOi7OIKbFiz96z4AjvJtsP1 TJRDw/0MoczhQHJZfvJM4nrRBf9pWMcOM7EN+DfiiamH32ooJBYoYRKrdSLBDsEJI1Gn F3Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=TbE65X5xSDtlaOAZ1c3ip+OFt05NRFXHY4h2MPUv47Q=; b=w+qUwrvlN93Aolri/WrUzMLji/Yd4VGs4y8qSpAkLXHAfbJe3WmKaPbbav/LOcoMIz Nf3VLJuc7o+/pzMzk2JEBtIHLhhc+19L6WOAnwKkg1tvdSALknd8nMkqdePP/c3F4Az+ slDiNLD0etBo+7GcjbJy4UvIY/eGdy4HHTpWoaxAjEaSgUZ5hd7bBbB2Sk6/EQSXrpzi P8fzCHzvje05O3vr+LuQl00GsVBAoy0RWKzhe43j4qw642TE2yND14Ozm4kxj8nzykyv Q2Bd6Y8Fumx1gia/O12rddAgfxpg2X7BmGjA0gDHeofHQrMSO38XyytBYpVxlI4X0X9H aqQA== ARC-Authentication-Results: i=1; mx.google.com; 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 e9si4343639pga.447.2017.11.08.09.24.04; Wed, 08 Nov 2017 09:24:16 -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; 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 S1752398AbdKHRXb (ORCPT + 84 others); Wed, 8 Nov 2017 12:23:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:38376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbdKHRXa (ORCPT ); Wed, 8 Nov 2017 12:23:30 -0500 Received: from mail-qt0-f170.google.com (mail-qt0-f170.google.com [209.85.216.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C7B621938; Wed, 8 Nov 2017 17:23:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C7B621938 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qt0-f170.google.com with SMTP id 1so4285967qtn.3; Wed, 08 Nov 2017 09:23:29 -0800 (PST) X-Gm-Message-State: AJaThX5MwIgQmVQQ7fIvCZbVflk9RUgdbKuiLeZdmoizvAwUJdSeiaoH OW2cDL4Uhc/MAPf/57XnE5EY3z0/uo5lG2xm9w== X-Received: by 10.200.35.147 with SMTP id q19mr2006181qtq.262.1510161808728; Wed, 08 Nov 2017 09:23:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.130.134 with HTTP; Wed, 8 Nov 2017 09:23:08 -0800 (PST) In-Reply-To: References: <1509859853-27473-1-git-send-email-yamada.masahiro@socionext.com> <1509859853-27473-3-git-send-email-yamada.masahiro@socionext.com> From: Rob Herring Date: Wed, 8 Nov 2017 11:23:08 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] kbuild: handle dtb-y and CONFIG_OF_ALL_DTBS natively in Makefile.lib To: Arnd Bergmann Cc: Masahiro Yamada , DTML , Linux Kbuild mailing list , Mark Rutland , Pantelis Antoniou , Linux ARM , Linux Kernel Mailing List , Michal Marek , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 5, 2017 at 7:49 AM, Arnd Bergmann wrote: > On Sun, Nov 5, 2017 at 6:30 AM, Masahiro Yamada > wrote: >> If CONFIG_OF_ALL_DTBS is enabled, "make ARCH=arm64 dtbs" compiles each >> DTB twice; one from arch/arm64/boot/dts/*/Makefile and the other from >> the dtb-$(CONFIG_OF_ALL_DTBS) line in arch/arm64/boot/dts/Makefile. >> It could be a race problem when building DTBS in parallel. >> >> Another minor issue is CONFIG_OF_ALL_DTBS covers only *.dts in vendor >> sub-directories, so this broke when Broadcom added one more hierarchy >> in arch/arm64/boot/dts/broadcom//. >> >> One idea to fix the issues in a clean way is to move DTB handling >> to Kbuild core scripts. Makefile.dtbinst already recognizes dtb-y >> natively, so it should not hurt to do so. >> >> Add $(dtb-y) to extra-y, and $(dtb-) as well if CONFIG_OF_ALL_DTBS is >> enabled. All clutter things in Makefiles go away. >> >> As a bonus clean-up, I also removed dts-dirs. Just use subdir-y >> directly to traverse sub-directories. >> >> Signed-off-by: Masahiro Yamada > > Nice, that's much better than the hack I had. > > Acked-by: Arnd Bergmann I applied this, but it has a few conflicts with SPDX tags from Greg and some board additions in arm-soc. Please take a look. Rob From 1583234290147531424@xxx Sun Nov 05 13:51:19 +0000 2017 X-GM-THRID: 1583203172444751191 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread