Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp115386pxu; Wed, 6 Jan 2021 23:30:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcGN9h7iBThd7aLcPaQcCIkpukxhim+cecqhSxH9+up7KKFpqFCroEZEBjWMRnu6Gf+19P X-Received: by 2002:a50:c315:: with SMTP id a21mr712442edb.50.1610004636708; Wed, 06 Jan 2021 23:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610004636; cv=none; d=google.com; s=arc-20160816; b=lOaV1d/GMSBgJwuiUVLkMQb0F//+OYfJ9g1Eg0QUt+NSWxvaRO+haNa4PSOWuNroDD 31Sz9KDKqXFMyl1SdBNsLnaoCxgQ5uzy/dOEKs6ttQKPxYmyPBgQfusZms8cNYL76hnb OpIVmXmZ/9VEkeCzt7cUZ+vLo6luyjA+1yvmNzGnHg/ajvnxsbR8DLPBzDyK4KM5n0Hf J8+RwwP+Ae/pUx2AJP0PDN10GvDetri9AcXAA8kDWRtbPw+rJNTUF746TuqeDLBTKqkN m5de67ir2ZsDHiJFgGfsf6mM1ZiKXsgUKeoFB0XqgCK3JVqnCu/KU1jyOsRsN2KwJ09a KmrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vTGhjHR1vsg+Mr43HN4cyueuEjB0/vHkOdTIvdJMuEI=; b=JfDsIqTcZjFE1FkWbHW/m13UY578nplTV4e6Mdp4ag++HKjpYQOPtJAMI6kajbdgYK N7np8+sVmCx262hop1Pvg4PnwV14jRSEwo1lwChUSKgdS6nqQQpH0rRPrnngK3VyUHKo cIQbjTcHr6DSgq5J1CYQcTUdPD4K6/VnE1T0P+u+6SVF9Vb4k8R/Gpb3co42Kt+wIL35 gmiOxt+TD0mOj6mVqW1gPUczf1VXK8rUDWlwHNaY9xMJj2COqT68MudyTkKIYXisYN2k bKs1lWeZteXZVRk5Mb3E50OnjcbU8N9HAnL9r3Q6KzAeM5JSuzcSdt9l9dKcfv3WE1wl 9IoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N33IJmbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si1765238eje.122.2021.01.06.23.30.13; Wed, 06 Jan 2021 23:30:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N33IJmbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbhAGH15 (ORCPT + 99 others); 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-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