build: fetch submodules as required
Also document the unusual git feature we employ for 3rdparty Change-Id: I1d1c986f9d1c4dd8db687d746dbdeb510679141a Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/7243 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
b4ce4d4814
commit
88883163c4
|
@ -123,7 +123,11 @@ ifeq ($(CONFIG_COVERAGE),y)
|
||||||
CFLAGS_ramstage += -fprofile-arcs -ftest-coverage
|
CFLAGS_ramstage += -fprofile-arcs -ftest-coverage
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# try to fetch non-optional submodules
|
||||||
|
forgetthis:=$(shell git submodule update --init)
|
||||||
ifeq ($(CONFIG_USE_BLOBS),y)
|
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)
|
forgetthis:=$(shell git submodule update --init --checkout 3rdparty)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue