summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2021-01-29 16:14:37 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-02-01 08:55:22 +0000
commit1cf2427d1d32b1055592213154eea9c31c287c2e (patch)
tree924f28f039ed0010308fc1a94527d95df9a8910f
parent42e4433ce0d7145ecaa67f413d5ac288f6eb2053 (diff)
security/vboot: Add config for GBB_FLAG_ENABLE_UDC
This change adds the missing `GBB_FLAG_ENABLE_UDC` as a config in vboot/Kconfig (just like the other GBB flags) and uses its value to configure GBB_FLAGS Makefile variable. This is done to allow the mainboard to configure GBB flags by selecting appropriate configs in Kconfig. Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: I6b397713d643cf9461294e6928596dc847ace6bd Reviewed-on: https://review.coreboot.org/c/coreboot/+/50110 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/security/vboot/Kconfig4
-rw-r--r--src/security/vboot/Makefile.inc1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig
index e7744786f6..e202333aca 100644
--- a/src/security/vboot/Kconfig
+++ b/src/security/vboot/Kconfig
@@ -338,6 +338,10 @@ config GBB_FLAG_DISABLE_FWMP
bool "Disable Firmware Management Parameters (FWMP)"
default n
+config GBB_FLAG_ENABLE_UDC
+ bool "Enable USB Device Controller"
+ default n
+
endmenu # GBB
menu "Vboot Keys"
diff --git a/src/security/vboot/Makefile.inc b/src/security/vboot/Makefile.inc
index 4cf809016a..1703748da7 100644
--- a/src/security/vboot/Makefile.inc
+++ b/src/security/vboot/Makefile.inc
@@ -226,6 +226,7 @@ GBB_FLAGS := $(call int-add, \
$(call bool-to-mask,$(CONFIG_GBB_FLAG_DISABLE_LID_SHUTDOWN),0x1000) \
$(call bool-to-mask,$(CONFIG_GBB_FLAG_FORCE_MANUAL_RECOVERY),0x4000) \
$(call bool-to-mask,$(CONFIG_GBB_FLAG_DISABLE_FWMP),0x8000) \
+ $(call bool-to-mask,$(CONFIG_GBB_FLAG_ENABLE_UDC),0x10000) \
)
ifneq ($(CONFIG_GBB_BMPFV_FILE),)