Nico Huber has uploaded this change for review. ( https://review.coreboot.org/29639
Change subject: MAKE: MOAAAAAR $$$$$$$$ ......................................................................
MAKE: MOAAAAAR $$$$$$$$
Change-Id: I19d3016e67f8930345e0da9564abcc5e5f8ab365 Signed-off-by: Nico Huber nico.h@gmx.de --- M Makefile M Makefile.inc 2 files changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/29639/1
diff --git a/Makefile b/Makefile index 1d4a488..5b3724c 100644 --- a/Makefile +++ b/Makefile @@ -320,7 +320,8 @@ $$(call src-to-obj,$1,$$(1).$2): $$(1).$2 $(KCONFIG_AUTOHEADER) $(4) @printf " CC $$$$(subst $$$$(obj)/,,$$$$(@))\n" $(CC_$(1)) \ - -MMD $$$$(CPPFLAGS_$(1)) $$$$(CFLAGS_$(1)) -MT $$$$(@) \ + -MMD $$$$(CPPFLAGS_$(1)) $$$$(CFLAGS_$(1)) \ + -MT '$$$$(patsubst $(obj)/%,$$$$$$$$(obj)/%,$$$$(@))' \ $(3) -c -o $$$$@ $$$$< end$(EMPTY)if en$(EMPTY)def diff --git a/Makefile.inc b/Makefile.inc index aaae7bc..4f894d1 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -373,7 +373,7 @@ COREBOOT_EXPORTS += COREBOOT_EXTRA_VERSION endif
-CPPFLAGS_common := -Isrc -Isrc/include -Isrc/commonlib/include -I$(obj) +CPPFLAGS_common := -Isrc -Isrc/include -Isrc/commonlib/include -isystem $(obj) CPPFLAGS_common += -Isrc/device/oprom/include VBOOT_SOURCE ?= 3rdparty/vboot CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/include