summaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/Makefile.inc
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2017-09-10 08:48:11 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2017-09-13 22:52:13 +0000
commit1210026bda8ad1fa24d2f0a7625f5b2cd35662ed (patch)
tree02453f36c02df0408032225e3cc911b651bd1959 /src/vendorcode/amd/agesa/Makefile.inc
parentd136b8ef21f9fb4f469a8f0682b086637b0ea542 (diff)
downloadcoreboot-1210026bda8ad1fa24d2f0a7625f5b2cd35662ed.tar.xz
AGESA buildsystem: Reduce include path exposure
Remove AGESA_AUTOINCLUDES -list from coreboot proper CPPFLAGS. Couple individual directories are now manually added to complete builds. Change-Id: I2595b87641c70e34e49fedf11b42f4961b0842dd Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/21479 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/vendorcode/amd/agesa/Makefile.inc')
-rw-r--r--src/vendorcode/amd/agesa/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vendorcode/amd/agesa/Makefile.inc b/src/vendorcode/amd/agesa/Makefile.inc
index ca7a201934..018cd53eb3 100644
--- a/src/vendorcode/amd/agesa/Makefile.inc
+++ b/src/vendorcode/amd/agesa/Makefile.inc
@@ -11,6 +11,7 @@ subdirs-y += common
classes-y += libagesa
libagesa-y =
libagesa-generic-ccopts += -D__LIBAGESA__
+libagesa-generic-ccopts += $(AGESA_INC) $(AGESA_AUTOINCLUDES)
ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32),y)
$(eval $(call create_class_compiler,libagesa,x86_32))
@@ -18,7 +19,11 @@ else
$(eval $(call create_class_compiler,libagesa,x86_64))
endif
+# buildOpts should be in libagesa
$(obj)/romstage/mainboard/$(MAINBOARDDIR)/buildOpts.o: CPPFLAGS_x86_32 += $(BUILDOPTS_INCLUDES)
$(obj)/ramstage/mainboard/$(MAINBOARDDIR)/buildOpts.o: CPPFLAGS_x86_32 += $(BUILDOPTS_INCLUDES)
+$(obj)/romstage/vendorcode/amd/agesa/common/agesa-entry.o: CPPFLAGS_x86_32 += $(BUILDOPTS_INCLUDES)
+$(obj)/ramstage/vendorcode/amd/agesa/common/agesa-entry.o: CPPFLAGS_x86_32 += $(BUILDOPTS_INCLUDES)
+
endif