From a649c82f7ad611ac81dc87c7d9ce5f0428b5f973 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 27 Mar 2025 22:50:10 +0530 Subject: [PATCH] security/vboot: Add option for enabling ADB via GBB flag This patch introduces a new Kconfig option, `CONFIG_GBB_FLAG_ENABLE_ADB`, to allow enabling ADB. This option, when enabled, sets the corresponding GBB flag (0x80000000). This flag can then be utilized by the operating system to enable the ADB. TEST=Able to connect the google/quenbih from host device using ADB cable. Change-Id: I680c1f47045255a5ed49b0bb6c6fb94bc054c278 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/91719 Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) --- src/security/vboot/Kconfig | 4 ++++ src/security/vboot/Makefile.mk | 1 + 2 files changed, 5 insertions(+) diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig index ef7c24d879..d8f6779cb0 100644 --- a/src/security/vboot/Kconfig +++ b/src/security/vboot/Kconfig @@ -463,6 +463,10 @@ config GBB_FLAG_FORCE_CSE_SYNC bool "Running tests; enforce CSE sync" default n +config GBB_FLAG_ENABLE_ADB + bool "Enable ADB" + default n + endmenu # GBB menu "Vboot Keys" diff --git a/src/security/vboot/Makefile.mk b/src/security/vboot/Makefile.mk index eb75975d04..465205af42 100644 --- a/src/security/vboot/Makefile.mk +++ b/src/security/vboot/Makefile.mk @@ -267,6 +267,7 @@ GBB_FLAGS := $(call int-add, \ $(call bool-to-mask,$(CONFIG_GBB_FLAG_DISABLE_FWMP),0x8000) \ $(call bool-to-mask,$(CONFIG_GBB_FLAG_ENABLE_UDC),0x10000) \ $(call bool-to-mask,$(CONFIG_GBB_FLAG_FORCE_CSE_SYNC),0x20000) \ + $(call bool-to-mask,$(CONFIG_GBB_FLAG_ENABLE_ADB),0x80000000) \ ) ifneq ($(CONFIG_GBB_BMPFV_FILE),)