From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4652C433E0 for ; Thu, 7 Jan 2021 07:28:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 901E723101 for ; Thu, 7 Jan 2021 07:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726932AbhAGH15 (ORCPT ); Thu, 7 Jan 2021 02:27:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726005AbhAGH15 (ORCPT ); Thu, 7 Jan 2021 02:27:57 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6160C0612F5 for ; Wed, 6 Jan 2021 23:27:16 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id c132so4258047pga.3 for ; Wed, 06 Jan 2021 23:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vTGhjHR1vsg+Mr43HN4cyueuEjB0/vHkOdTIvdJMuEI=; b=N33IJmbkbnKTgBru1x+Bc6gzjJkYSr4kISEarysGplTh5RD8yJhsRm+T+a0RXU98lh iItU7n6DmJGPUikqEuuIxWJXIFayZK9DM977/7K1ChuWeyDUgQTzNncPVDbcpr7jxLhb yzJW24grUhNRXERPvP/FmMdVBSe6SvOONqQu644NxxibMpUiKAUoWt7h/Cc1+MGEOEH2 lT4kYtJykr08jOA39hiYKmdPD58tKFfGboJOs5UsK4XJuYKs6xhkgj/pIGwy2CI5P87p UlCyoSOGozI9H54eesz5b8IlLKG225aw6AZ9uEgAoLkkE2NS6ULVhpzJ1vTtkN9/bgE9 PHrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vTGhjHR1vsg+Mr43HN4cyueuEjB0/vHkOdTIvdJMuEI=; b=mgyURRWlbh8Hj/9MnjQovSe5DbNKb4gVy2GTtn1FdYBeuDCJc0O/SEsuSLl+2w0d2i jHh92DUwEO+hbJFA3je7B3hl+fEWnH/qgLsf+w7C/PdN5Io1TTr2dUw+ojpGvh0QJyHY CTfdTzUo02k9uupvAxSNsC1ADwV7e1hcpyZjU9fI/Xo+Zs4LPgMtmsJaU18z97j5WM+H Rwjo1OMqTmzwWdfvatLCFaV8oon22FYTt4i0m6PzGcfTd+eA6q1C58ofZOkfNUE9/zq3 mRWKlXtM7AqNSBDxmIhTIRfBmlZrbnYNdJfWNzfF2pHDbkyDgLICnXswsok0Z0mr59+9 2W/Q== X-Gm-Message-State: AOAM5330qyTLVgF/So4U9wIA1PjXm9CGxx3R+xuSESvOHZDewkpA0pH9 nLwRsqCLSH+ZFi5VNuo2XsfVnA== X-Google-Smtp-Source: ABdhPJwWCXkCtc9Ql0FAXoIcgCxNwxWJcNJRgjQZQ3Djqh8Dx1vdHZm2bTzQIVbLeDk7XK8/WxnxCg== X-Received: by 2002:a63:2b42:: with SMTP id r63mr552559pgr.316.1610004436040; Wed, 06 Jan 2021 23:27:16 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id c10sm4182974pjn.22.2021.01.06.23.27.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 23:27:15 -0800 (PST) Date: Thu, 7 Jan 2021 12:57:12 +0530 From: Viresh Kumar To: Masahiro Yamada Cc: Rob Herring , Arnd Bergmann , Olof Johansson , Pantelis Antoniou , Frank Rowand , Michal Marek , DTML , "linux-kernel@vger.kernel.org" , Linux Kbuild mailing list , Vincent Guittot , Bill Mills , tero.kristo@gmail.com Subject: Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo) Message-ID: <20210107072712.si2pdaatbqkpizhb@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-01-21, 14:28, Masahiro Yamada wrote: > On Wed, Jan 6, 2021 at 12:21 AM Rob Herring wrote: > > > > On Tue, Jan 5, 2021 at 4:24 AM Viresh Kumar wrote: > > > > > > Hello, > > > > > > Here is an attempt to make some changes in the kernel to allow building > > > of device tree overlays. > > > > > > While at it, I would also like to discuss about how we should mention > > > the base DT blobs in the Makefiles for the overlays, so they can be > > > build tested to make sure the overlays apply properly. > > > > > > A simple way is to mention that with -base extension, like this: > > > > > > $(overlay-file)-base := platform-base.dtb > > > > > > Any other preference ? > > Viresh's patch is not enough. > > We will need to change .gitignore > and scripts/Makefile.dtbinst as well. Thanks. > In my understanding, the build rule is completely the same > between .dtb and .dtbo Right. > As Rob mentioned, I am not sure if we really need/want > a separate extension. > > > A counter approach is to use an extension like '.ovl.dtb' > It clarifies it is an overlay fragment without changing > anything in our build system or the upstream DTC project. > > We use chained extension in some places, for example, > .dt.yaml for schema yaml files. > > > > dtb-$(CONFIG_ARCH_FOO) += \ > foo-board.dtb \ > foo-overlay1.ovl.dtb \ > foo-overlay2.ovl.dtb > > > Overlay DT source file names must end with '.ovl.dts' I am fine with any approach that you guys feel is better, .dts or .ovl.dts. I wanted to start a discussion where we can resolve this and be done with it. Thanks. -- viresh