Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp168073pxf; Wed, 10 Mar 2021 03:27:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxtPIxen73nkT1czFZtqL8aJ51EhWjqvrv5eJfYfbzE3Xn9pfxtNNGAF9PThlkS+QwxcqF X-Received: by 2002:a17:906:86c6:: with SMTP id j6mr2989208ejy.197.1615375675621; Wed, 10 Mar 2021 03:27:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615375675; cv=none; d=google.com; s=arc-20160816; b=gIBki2ranZg9fNR8aFk7EbjgwVeuEavVLaYBV8XOFddI86MskYljnlwctTYkyh5iyB JH8stJhIutkLxVIbQTX/sdbcQJ5iGnVZkk+0+MWOy8ORb62Q6p5C32Zy41kVcWF9xbnM oajh9mBz+54i66AmjsRc7yHWOFedNnZ4ajEDMD84ZH1bFo3P1/84VHo1nrJXRTQg5rbc xn+VKS9UkBtS/4kwGPbfl7CtRyubUG6soAtarcPrhzVKdVON8QioBEUj1U7JkpR4V7tH 8b01qSRd6O5L8NWCLkNvBwGqsMH0m4212ZJcf3KOTio6R9+AEhmz6lrszxrtezRbkHok Y4DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=EtPI5/QZah2DyjWRoZyS3HDm98BPv6IVUcYhV4WF/kk=; b=LccdLQw9jWz3ovejbDjrv6xIWu3YROlTooqr3aiiRb8VbWAeCOaVKC9i3se/EgX7Kq ZAywOOiVc6nh+k6OQUxBbuLjz28bLGXL6a3K+gkUKGmE5UnS3ZT3UeaRRcxeCsRSNO93 F92OLWuEuip0Z7cLWLzWtwK9UKOswlfwymUn0hhGwjt1CnYc5EWSHGuMzRsn2XB4c4/c hXXcyqI23KMdjWdcJpL5dYMFNG1QPfIqhem88RYO7/kJ7JrlSLbTsGZTB9Xrr1PN58DT w/xUErVhY2qzLBI+udufsMl3n9B1hs5/vnPPAOCM9R14nFMEWwkhJUqdPd/RZF43jCbd de6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PZCO7Z2y; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si509778ejg.677.2021.03.10.03.27.32; Wed, 10 Mar 2021 03:27:55 -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=@nifty.com header.s=dec2015msa header.b=PZCO7Z2y; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232710AbhCJL0k (ORCPT + 99 others); Wed, 10 Mar 2021 06:26:40 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:54828 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232670AbhCJL0H (ORCPT ); Wed, 10 Mar 2021 06:26:07 -0500 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 12ABPUus013422; Wed, 10 Mar 2021 20:25:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 12ABPUus013422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1615375530; bh=EtPI5/QZah2DyjWRoZyS3HDm98BPv6IVUcYhV4WF/kk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PZCO7Z2y94+u+OqKaHscyOjzMVfEhJZoTiTCIdBtSL4vMDpEZ1Q2cdpTVCLk+AtGz U77F8zM2BiGEkOddfCblhCtfdAzQx1PdVSsJYJ+hmheKwxpWOJL1WaH7N/papEwZyV ILnnYUoU1Suo1apESMd6boJBgjlVnPIPy+TIHFDdhag3eE4hRIzWEAuMbIpXhuR1Ff KKlMX72y5kJmKPNnr805XN9EEOu7thDMq6k1nCPuTnDySZni0xhhqMXgbSg5COsOM7 4BuAiYt6gPBO+sbn00tqhahA3c3UVwf81iT/9E+dVQr31LEFmZHn4AV6KZG2weGFJL GV8/UwL0qvwNQ== X-Nifty-SrcIP: [209.85.210.176] Received: by mail-pf1-f176.google.com with SMTP id x7so8407488pfi.7; Wed, 10 Mar 2021 03:25:30 -0800 (PST) X-Gm-Message-State: AOAM530TtGyNzlHOrAzj45TCDEt+qwBT/9klD5rKEZ7Jh7MIAuAn7+v8 oo1g0e28C81hrRb9YJEQEN04QG40RY3lvW2r2nw= X-Received: by 2002:aa7:956d:0:b029:1f1:5ba6:2a58 with SMTP id x13-20020aa7956d0000b02901f15ba62a58mr2660757pfq.63.1615375529634; Wed, 10 Mar 2021 03:25:29 -0800 (PST) MIME-Version: 1.0 References: <170e086a5fa076869e7b37de8eea850fa7c39118.1615354376.git.viresh.kumar@linaro.org> In-Reply-To: <170e086a5fa076869e7b37de8eea850fa7c39118.1615354376.git.viresh.kumar@linaro.org> From: Masahiro Yamada Date: Wed, 10 Mar 2021 20:24:52 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files To: Viresh Kumar 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 2:35 PM Viresh Kumar wrote: > > Since the overlays dtb files are now named as .dtbo, there is a lot of > interest in similarly naming the overlay source dts files as .dtso. > > This patch makes the necessary changes to allow .dtso format for overlay > source files. > > Note that we still support generating .dtbo files from .dts files. This > is required for the source files present in drivers/of/unittest-data/, > because they can't be renamed to .dtso as they are used for some runtime > testing as well. > > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoeven > Signed-off-by: Viresh Kumar > --- > scripts/Makefile.lib | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > 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, but I guess you wanted to make this explicit, correct? I will drop the ugly -O. https://patchwork.kernel.org/project/linux-kbuild/patch/20210310110824.782209-1-masahiroy@kernel.org/ 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? > $(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE > $(call if_changed_dep,dtc) > > +$(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE > + $(call if_changed_dep,dtc) > + > overlay-y := $(addprefix $(obj)/, $(overlay-y)) > > quiet_cmd_fdtoverlay = DTOVL $@ > @@ -375,6 +379,9 @@ endef > $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE > $(call if_changed_rule,dtc,yaml) > > +$(obj)/%.dt.yaml: $(src)/%.dtso $(DTC) $(DT_TMP_SCHEMA) FORCE > + $(call if_changed_rule,dtc,yaml) > + > dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) > > # Bzip2 > -- > 2.25.0.rc1.19.g042ed3e048af > -- Best Regards Masahiro Yamada