diff mbox series

[v4,19/19] Kconfig: sandbox: enable cmd_avb and dependencies

Message ID 20180925144023.24555-20-jens.wiklander@linaro.org
State New
Headers show
Series AVB using OP-TEE | expand

Commit Message

Jens Wiklander Sept. 25, 2018, 2:40 p.m. UTC
Enables cmd_avb and its dependencies need to run the AVB tests.

Reviewed-by: Simon Glass <sjg@chromium.org>

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

---
 arch/Kconfig             | 4 ++++
 drivers/fastboot/Kconfig | 2 ++
 2 files changed, 6 insertions(+)

-- 
2.17.1

Comments

Tom Rini Oct. 8, 2018, 1:41 a.m. UTC | #1
On Tue, Sep 25, 2018 at 04:40:23PM +0200, Jens Wiklander wrote:

> Enables cmd_avb and its dependencies need to run the AVB tests.

> 

> Reviewed-by: Simon Glass <sjg@chromium.org>

> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>


Applied to u-boot/master.

But please note, some of the AVB Kconfig dependencies need to be
tightened up as this was attempting to build on sandbox_noblk and
failing on lack of MMC stuff (due to no CONFIG_BLK).  I worked around it
for the moment to move this forward by updating sandbox_noblk_defconfig
to disable AVB but we should correct this in Kconfig dependency
expressions, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/arch/Kconfig b/arch/Kconfig
index 8f10f3fc06e8..543362578f50 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -92,6 +92,10 @@  config SANDBOX
 	imply LZMA
 	imply SCSI
 	imply TEE
+	imply AVB_VERIFY
+	imply LIBAVB
+	imply CMD_AVB
+	imply UDP_FUNCTION_FASTBOOT
 
 config SH
 	bool "SuperH architecture"
diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig
index bc25ea1d9c7a..d63ecdd27e4b 100644
--- a/drivers/fastboot/Kconfig
+++ b/drivers/fastboot/Kconfig
@@ -35,6 +35,7 @@  config FASTBOOT_BUF_ADDR
 				ROCKCHIP_RK3399
 	default 0x280000 if ROCKCHIP_RK3368
 	default 0x100000 if ARCH_ZYNQMP
+	default 0 if SANDBOX
 	help
 	  The fastboot protocol requires a large memory buffer for
 	  downloads. Define this to the starting RAM address to use for
@@ -45,6 +46,7 @@  config FASTBOOT_BUF_SIZE
 	default 0x8000000 if ARCH_ROCKCHIP
 	default 0x6000000 if ARCH_ZYNQMP
 	default 0x2000000 if ARCH_SUNXI
+	default 0x8192 if SANDBOX
 	default 0x7000000
 	help
 	  The fastboot protocol requires a large memory buffer for