Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp510984lki; Wed, 10 Mar 2021 06:49:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbKeqyP9X1mVJCYV7wdBy7JGY4EQLTSfK6SERJBLybifHxDu8NsZNChYpZYhs2s/dFkQ7h X-Received: by 2002:a17:906:27c7:: with SMTP id k7mr4056973ejc.13.1615387768171; Wed, 10 Mar 2021 06:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615387768; cv=none; d=google.com; s=arc-20160816; b=CSkDTcI+XGIrMUxLjCy6b+URKeZGhx9J/jWZ1jsFxGiAW6wPAEUs2YgQN6AIbwo9T0 2po7Bsk1nGDln7nf7Pw2diYtNqw0v5E1t1EDROTLsTNjU7ASwXML7rgItYT8SFG/tXt2 MuCfRSqX8X5gGv+AqpPTRHLjS7djEuOoZ7ZQABWKeQrfcBIHMThgSWbr6uiMAFGvrK2P oDIBXdz2a632eQTwgkzVF9ImasnTxY2cgyYWZjLfDxpPo4ydxHPcMvuSZeZM5dcuAIdi 5shVnjQ4uper1WDTRfFcg5WEoMDHVaYLMsRr/eCLsBlW9LpXOYy37xfNoLGspttMWxeN OfVg== 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=8nVZpKJm2G6+Tv7qEZM8ArWrPGc3bpG+Vuw50VmO88I=; b=oafbrdYojvpeRtPgGYV/OCnOOnGco8fmGceB+LYNsig801SYpIGwmezhVGnILzoZY2 UkyzXdOfe0kudXqWMfPIAOuaj9bYX9JRagv4MGEC3vCRlysZup8ZEoqKkmiClqOpAFAd WcetPzTZcyrP+pOzp62BnWtt0x7zf3/FZbfgzMcoRcSR8OW4kQ+bgAOXWiwvzeaEQlHH ZHJ+195FDnOFItxkozYNNVTTkYSOAKwzTHouP7CEK929tRjo4TU6zk30TYJMQOVOSQq8 e8qYF3khKthpMeu5Fgdw54UDSSZp6sNs0NqUE5tVfEH7vweElE6gFe8hreLZbvWxJG7z L+mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQlbtSKv; 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 s14si10575254edx.521.2021.03.10.06.49.05; Wed, 10 Mar 2021 06:49:28 -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=eQlbtSKv; 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 S232781AbhCJOr5 (ORCPT + 99 others); Wed, 10 Mar 2021 09:47:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232746AbhCJOre (ORCPT ); Wed, 10 Mar 2021 09:47:34 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA59C061761 for ; Wed, 10 Mar 2021 06:47:34 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id t18so1749890pjs.3 for ; Wed, 10 Mar 2021 06:47:34 -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=8nVZpKJm2G6+Tv7qEZM8ArWrPGc3bpG+Vuw50VmO88I=; b=eQlbtSKvzf6Q3pni9+l7ILEa82jE+wshQl7wH51lNSRPAIB0Qc775lX3Lt318vPD5h 3XURESeHLeIAu+V+Dy3be1VAhbl83ApgEcitA/Mb/HnMmohUZDqKKlfcTJHV3rwVRJuV lGKnU2l3jtmopQUmNhaMAMPwI/Cjqo3zI/AdZrDELkTm5dUGO7FYaWaboTYU9ALoHL2e cRiAQZB5bXboDLWFFxi2PDMWf5tzgbZ959Mf2AnR5o2g4Ln+OxBZ4zUoRLkQZi+Fx36q 9x1VbQagNu1mWERibggsYy1gM9D+rX2Mnbj1S8gysYoBZFr+ZrGRE4mfcxMcSMeYn4+x v0jg== 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=8nVZpKJm2G6+Tv7qEZM8ArWrPGc3bpG+Vuw50VmO88I=; b=eI6EOaP5c6/q3rZBki2TrThjK2rDzJYEDQjehpBA3s7VatvaJ+tyOB7n9he90hwe2A BqSKHI5V4Ql/Zy9yMgTP2W0YtqAeqGOsKQbqUF/L0AX7GJ/jbs3c5KP7QH3duKty8y9g vPwAhfF9vfDrMC3eTO+rMHUdLyL6fqUIrkcF89g9NPtKvrW77c8/CMjYAHWBk9KYTxza Iwzn7FPxaMmABTz3zRgDZcskDCBnF4tXqsunZe6FkFaxALyeEh9D2LDSBEfyTdcbDjou Yd5/oBGPLOY21TdVJvX34Jv9FuNY0TjhWJVRVhLmnztE197afbGQtvNbiA3q0jKQroBK LdMw== X-Gm-Message-State: AOAM533ZfVOcieKO7BbWee/8BcETEW0RYN2tV1ihyrH4/ZrcL7c9RtTR jD984rZQO09xABlaQBNCJr0JDQ== X-Received: by 2002:a17:90a:e7cc:: with SMTP id kb12mr1218121pjb.31.1615387653515; Wed, 10 Mar 2021 06:47:33 -0800 (PST) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id s15sm16561363pfe.108.2021.03.10.06.47.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Mar 2021 06:47:32 -0800 (PST) Date: Wed, 10 Mar 2021 20:17:30 +0530 From: Viresh Kumar To: Masahiro Yamada Cc: Michal Marek , Vincent Guittot , David Gibson , Frank Rowand , Michal Simek , Geert Uytterhoeven , Anmar Oueja , Bill Mills , Geert Uytterhoeven , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files Message-ID: <20210310144730.5ipzeailoj6nno5h@vireshk-i7> References: <170e086a5fa076869e7b37de8eea850fa7c39118.1615354376.git.viresh.kumar@linaro.org> 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 10-03-21, 20:24, Masahiro Yamada wrote: > On Wed, Mar 10, 2021 at 2:35 PM Viresh Kumar wrote: > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > > index bc045a54a34e..59e86f67f9e0 100644 > > --- a/scripts/Makefile.lib > > +++ b/scripts/Makefile.lib > > @@ -339,7 +339,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE > > > > quiet_cmd_dtc = DTC $@ > > cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ > > - $(DTC) -O $(patsubst .%,%,$(suffix $@)) -o $@ -b 0 \ > > + $(DTC) -I dts -O $(patsubst .%,%,$(suffix $@)) -o $@ -b 0 \ > > Even without "-I dts", > > inform = guess_input_format(arg, "dts"); > > seems to fall back to "dts" anyway, I missed this TBH. > but I guess you wanted to make this explicit, correct? That can be a reason now :) > I will drop the ugly -O. > https://patchwork.kernel.org/project/linux-kbuild/patch/20210310110824.782209-1-masahiroy@kernel.org/ But if we are going to depend on DTC to guess it right, then we shouldn't add -I at all.. > I will queue it to linux-kbuild/fixes. > > > > > $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ > > -d $(depfile).dtc.tmp $(dtc-tmp) ; \ > > cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) > > @@ -347,9 +347,13 @@ cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; > > $(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE > > $(call if_changed_dep,dtc) > > > > +# Required for of unit-test files as they can't be renamed to .dtso > > If you go with *.dtso, I think you will rename > all *.dts under the drivers/ directory. > > What is blocking you from making this consistent? The unit-test dts files are designed differently (we have had lots of discussion between Frank and David on that) and they aren't purely overlay or base files. They are designed to do some tricky testing and renaming them to .dtso won't be right, we are just reusing them to do static (build time) testing as well. I think it would be better if we can drop the existing %.dtbo rule here (i.e. dtbo from .dts) and do some magic in unit-test's Makefile, so it is localised at least instead of it here. Any ideas for that ? -- viresh