summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2012-04-30 21:06:10 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-05-01 00:09:27 +0200
commit7e9b9d893c08e5cf92a4620df476238008511ecd (patch)
treec47ff0d4f762a96d014b2fce3820912b23d1624b /Makefile.inc
parent1db6e2aa197bd8f8ed702f77d6a1e09267af71ee (diff)
downloadcoreboot-7e9b9d893c08e5cf92a4620df476238008511ecd.tar.xz
Add Kconfig options to handle the blobs repository
One option to allow using the repo (defaults to no), one to let boards state that they require it in the current configuration. The build system checks out the repo if allowed, and fails if the repo is requested by the configuration but not desired by the user. Change-Id: If71d80b329cf528aa467fcb0b4d9d7c7434aab27 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/957 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 53a3dadab0..c17978498e 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -67,6 +67,14 @@ ifeq ($(CONFIG_TRACE),y)
ramstage-c-ccopts:= -finstrument-functions
endif
+ifeq ($(CONFIG_USE_BLOBS),y)
+forgetthis:=$(shell git submodule update --init --checkout 3rdparty)
+else
+ifeq ($(CONFIG_REQUIRES_BLOB),y)
+$(error Your current configuration requires binary-only components, but you did not choose to use them)
+endif
+endif
+
smm-c-ccopts:=-D__SMM__
smm-S-ccopts:=-D__SMM__