[coreboot-gerrit] Patch set updated for coreboot: 5e5692f build system: add control of 'git submodule update --init'

WANG Siyuan (wangsiyuanbuaa@gmail.com) gerrit at coreboot.org
Tue Jun 9 09:49:36 CEST 2015


WANG Siyuan (wangsiyuanbuaa at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10472

-gerrit

commit 5e5692ff8cc3d3c00198216ffed17e02e2c4e5df
Author: WANG Siyuan <wangsiyuanbuaa at gmail.com>
Date:   Tue Jun 9 15:41:10 2015 +0800

    build system: add control of 'git submodule update --init'
    
    'git submodule update --init' runs when 'make menuconfig'.
    This is very inconvenience when developing.
    USE_BLOBS is added in Kconfig. If USE_BLOBS isn't set,
    this command will not run.
    
    Change-Id: I442da4be18e9d43d7188a1434cc67b4e61456b58
    Signed-off-by: WANG Siyuan <wangsiyuanbuaa at gmail.com>
    Signed-off-by: WANG Siyuan <SiYuan.Wang at amd.com>
---
 Makefile.inc | 2 ++
 src/Kconfig  | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/Makefile.inc b/Makefile.inc
index 585fd17..7a54586 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -128,8 +128,10 @@ ifeq ($(CONFIG_COVERAGE),y)
 ramstage-c-ccopts += -fprofile-arcs -ftest-coverage
 endif
 
+ifeq ($(CONFIG_SUBMODULE_UPDATE),y)
 # try to fetch non-optional submodules if the source is under git
 forgetthis:=$(if $(GIT),$(shell git submodule update --init))
+endif
 ifeq ($(CONFIG_USE_BLOBS),y)
 # this is necessary because 3rdparty/blobs is update=none, and so is ignored
 # unless explicitly requested and enabled through --checkout
diff --git a/src/Kconfig b/src/Kconfig
index f685cc3..8a3ccc5 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -200,6 +200,10 @@ config COLLECT_TIMESTAMPS
 	  Make coreboot create a table of timer-ID/timer-value pairs to
 	  allow measuring time spent at different phases of the boot process.
 
+config SUBMODULE_UPDATE
+	bool "fetch non-optional submodules"
+	default y
+
 config USE_BLOBS
 	bool "Allow use of binary-only repository"
 	default n



More information about the coreboot-gerrit mailing list