Aske has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/71704 )
Change subject: util/kconfig: use HOST_EXTRACFLAGS for menuconfig ......................................................................
util/kconfig: use HOST_EXTRACFLAGS for menuconfig
When using a sysroot for host tool `make menuconfig` would not look into the sysroot sepcifies via HOST_EXTRACFLAGS.
This change enables using `bitbake coreboot -c menuconfig`
Signed-off-by: Aske Bækdal Møller aske@geanix.com Change-Id: I20c088c6566415a0c43f5a65109c7100e985eb15 --- M util/kconfig/Makefile.inc 1 file changed, 19 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/71704/1
diff --git a/util/kconfig/Makefile.inc b/util/kconfig/Makefile.inc index 36678da..62383d2 100644 --- a/util/kconfig/Makefile.inc +++ b/util/kconfig/Makefile.inc @@ -41,13 +41,13 @@ filechk=$< > $@
$(objk)/%.o: $(srck)/%.c - $(HOSTCC) -I $(srck) -I $(objk) -c $(HOSTCFLAGS_$(notdir $@)) -o $@ $< + $(HOSTCC) -I $(srck) -I $(objk) $(HOST_EXTRACFLAGS) -c $(HOSTCFLAGS_$(notdir $@)) -o $@ $<
$(objk)/%.o: $(srck)/%.cc - $(HOSTCXX) -I $(srck) -I $(objk) -c $(HOSTCXXFLAGS_$(notdir $@)) -o $@ $< + $(HOSTCXX) -I $(srck) -I $(objk) $(HOST_EXTRACFLAGS) -c $(HOSTCXXFLAGS_$(notdir $@)) -o $@ $<
$(objk)/%.o: $(objk)/%.c - $(HOSTCC) -I $(srck) -I $(objk) -c -o $@ $< + $(HOSTCC) -I $(srck) -I $(objk) $(HOST_EXTRACFLAGS) -c -o $@ $<
$(objk)/%.moc: $(srck)/%.h | $(objk)/qconf-cfg $(call cmd_moc) @@ -55,7 +55,7 @@ define hostprogs_template # $1 entry in hostprogs $(objk)/$(1): $$(foreach _o,$$($(1)-objs) $$($(1)-cxxobjs),$(objk)/$$(_o)) | $(wildcard $(objk)/$(1)-cfg) - $$(HOSTCXX) -o $$@ $$^ $$(HOSTLDLIBS_$(1)) + $$(HOSTCXX) $(HOST_EXTRACFLAGS) -o $$@ $$^ $$(HOSTLDLIBS_$(1)) endef
$(foreach prog,$(hostprogs),$(eval $(call hostprogs_template,$(prog))))