On Wed, Mar 10, 2021 at 8:24 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote: > > On Wed, Mar 10, 2021 at 2:35 PM Viresh Kumar <viresh.kumar@xxxxxxxxxx> 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 <geert+renesas@xxxxxxxxx> > > Tested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > > Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> > > --- > > 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@xxxxxxxxxx/ > > I will queue it to linux-kbuild/fixes. > > BTW, is the attached patch good for DTC? I do not know when '-O dtbo' is useful, unless I am missing something. -- Best Regards Masahiro Yamada
From eeac710289a22397c6ae4e90a9334c4f7e178688 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada <masahiroy@xxxxxxxxxx> Date: Wed, 10 Mar 2021 19:48:05 +0900 Subject: [PATCH] dtc: Remove -O dtbo support This partially reverts 163f0469bf2e ("dtc: Allow overlays to have .dtbo extension"). I do not understand why we need to support "dtbo" as --out-format. *.dtb and *.dtbo have the same format, "dtb". Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx> --- dtc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dtc.c b/dtc.c index 838c5df..3962d3f 100644 --- a/dtc.c +++ b/dtc.c @@ -359,8 +359,6 @@ int main(int argc, char *argv[]) #endif } else if (streq(outform, "dtb")) { dt_to_blob(outf, dti, outversion); - } else if (streq(outform, "dtbo")) { - dt_to_blob(outf, dti, outversion); } else if (streq(outform, "asm")) { dt_to_asm(outf, dti, outversion); } else if (streq(outform, "null")) { -- 2.27.0