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 <>
Reviewed-by: Stefan Reinauer <>
Tested-by: build bot (Jenkins)
diff --git a/ b/
index 53a3dad..c179784 100644
--- a/
+++ b/
@@ -67,6 +67,14 @@
 ramstage-c-ccopts:= -finstrument-functions
+ifeq ($(CONFIG_USE_BLOBS),y)
+forgetthis:=$(shell git submodule update --init --checkout 3rdparty)
+$(error Your current configuration requires binary-only components, but you did not choose to use them)