On Tue, Dec 21, 2021 at 1:36 AM Yann Sionneau <ysionneau@xxxxxxxxx> wrote: > > If some flag is not supported by host toolchain but is supported by target toolchain, then > using host toolchain will fail here because the checks are only done on target toolchain. Then, some flag is not supported by target toolchain but is supported by host toolchain > Signed-off-by: Yann Sionneau <ysionneau@xxxxxxxxx> > --- > scripts/Makefile.lib | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index 94133708889d..1d11b7a23957 100644 > --- a/scripts/Makefile.lib > +++ b/scripts/Makefile.lib > @@ -316,7 +316,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE > $(call if_changed,dt_S_dtb) > > quiet_cmd_dtc = DTC $@ > -cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ > +cmd_dtc = $(CC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ This change is not sensible at all. This is a partial revert of the following: commit 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 Author: Rob Herring <robh@xxxxxxxxxx> Date: Wed Jan 10 15:19:37 2018 -0600 kbuild: consolidate Devicetree dtb build rules > $(DTC) -O $(patsubst .%,%,$(suffix $@)) -o $@ -b 0 \ > $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ > -d $(depfile).dtc.tmp $(dtc-tmp) ; \ > -- > 2.17.1 > -- Best Regards Masahiro Yamada