On Mon, Dec 20, 2021 at 12:29 PM 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. > > 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) $< ; \ The host toolchain is used so that we don't have to have cross compiler for every last arch. Rob