diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-02 19:33:26 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-05 16:18:38 +0000 |
commit | 1368244d487096685f1ef340ab6628be8c1d7149 (patch) | |
tree | 9b98034675c602ff7b97f32ba70a83cd85cb5bc5 /Makefile.inc | |
parent | 278529098918f2bdcf43526e584c102c78097b43 (diff) |
Makefile: Reduce scope of oprom include paths
Change-Id: Ibaa5428df1832d3f18946d456fb0b6d2fff65c32
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31694
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc index 6ae3e7640c..36c05dbac4 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -382,7 +382,6 @@ COREBOOT_EXPORTS += COREBOOT_EXTRA_VERSION endif CPPFLAGS_common := -Isrc -Isrc/include -Isrc/commonlib/include -I$(obj) -CPPFLAGS_common += -Isrc/device/oprom/include VBOOT_SOURCE ?= 3rdparty/vboot CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/include CPPFLAGS_common += -include $(src)/include/kconfig.h @@ -391,6 +390,10 @@ CPPFLAGS_common += -include $(src)/commonlib/include/commonlib/compiler.h CPPFLAGS_common += -I3rdparty CPPFLAGS_common += -D__BUILD_DIR__=\"$(obj)\" +ifeq ($(CONFIG_PCI_OPTION_ROM_RUN_YABEL)$(CONFIG_PCI_OPTION_ROM_RUN_REALMODE),y) +CPPFLAGS_ramstage += -Isrc/device/oprom/include +endif + CFLAGS_common += -pipe -g -nostdinc -std=gnu11 CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs |