From 88883163c49c62d3c5156eb5fc95ef718065f561 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 29 Oct 2014 15:50:32 +0100 Subject: build: fetch submodules as required Also document the unusual git feature we employ for 3rdparty Change-Id: I1d1c986f9d1c4dd8db687d746dbdeb510679141a Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/7243 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- Makefile.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.inc b/Makefile.inc index daf4cf4975..934755fd68 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -123,7 +123,11 @@ ifeq ($(CONFIG_COVERAGE),y) CFLAGS_ramstage += -fprofile-arcs -ftest-coverage endif +# try to fetch non-optional submodules +forgetthis:=$(shell git submodule update --init) ifeq ($(CONFIG_USE_BLOBS),y) +# this is necessary because 3rdparty is update=none, and so is ignored +# unless explicitly requested and enabled through --checkout forgetthis:=$(shell git submodule update --init --checkout 3rdparty) endif -- cgit v1.2.3