From 1cf2427d1d32b1055592213154eea9c31c287c2e Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Fri, 29 Jan 2021 16:14:37 +0800 Subject: 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 Change-Id: I6b397713d643cf9461294e6928596dc847ace6bd Reviewed-on: https://review.coreboot.org/c/coreboot/+/50110 Reviewed-by: Tim Wawrzynczak Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/security/vboot/Kconfig | 4 ++++ src/security/vboot/Makefile.inc | 1 + 2 files changed, 5 insertions(+) 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),) -- cgit v1.2.3