Browse Source

Kconfig: sandbox: enable cmd_avb and dependencies

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>
[trini: Disable for sandbox_noblk]
Signed-off-by: Tom Rini <trini@konsulko.com>
Jens Wiklander 3 years ago
parent
commit
0a60a81ba3
3 changed files with 7 additions and 1 deletions
  1. 4 0
      arch/Kconfig
  2. 1 1
      configs/sandbox_noblk_defconfig
  3. 2 0
      drivers/fastboot/Kconfig

+ 4 - 0
arch/Kconfig

@@ -106,6 +106,10 @@ config SANDBOX
106 106
 	imply LZMA
107 107
 	imply SCSI
108 108
 	imply TEE
109
+	imply AVB_VERIFY
110
+	imply LIBAVB
111
+	imply CMD_AVB
112
+	imply UDP_FUNCTION_FASTBOOT
109 113
 
110 114
 config SH
111 115
 	bool "SuperH architecture"

+ 1 - 1
configs/sandbox_noblk_defconfig

@@ -2,7 +2,6 @@ CONFIG_SYS_TEXT_BASE=0
2 2
 CONFIG_SYS_MALLOC_F_LEN=0x2000
3 3
 CONFIG_DISTRO_DEFAULTS=y
4 4
 CONFIG_NR_DRAM_BANKS=1
5
-CONFIG_ANDROID_BOOT_IMAGE=y
6 5
 CONFIG_FIT=y
7 6
 CONFIG_FIT_SIGNATURE=y
8 7
 CONFIG_FIT_VERBOSE=y
@@ -17,6 +16,7 @@ CONFIG_CONSOLE_RECORD=y
17 16
 CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
18 17
 CONFIG_SILENT_CONSOLE=y
19 18
 CONFIG_DISPLAY_BOARDINFO_LATE=y
19
+# CONFIG_AVB_VERIFY is not set
20 20
 CONFIG_CMD_CPU=y
21 21
 CONFIG_CMD_LICENSE=y
22 22
 CONFIG_CMD_BOOTZ=y

+ 2 - 0
drivers/fastboot/Kconfig

@@ -35,6 +35,7 @@ config FASTBOOT_BUF_ADDR
35 35
 				ROCKCHIP_RK3399
36 36
 	default 0x280000 if ROCKCHIP_RK3368
37 37
 	default 0x100000 if ARCH_ZYNQMP
38
+	default 0 if SANDBOX
38 39
 	help
39 40
 	  The fastboot protocol requires a large memory buffer for
40 41
 	  downloads. Define this to the starting RAM address to use for
@@ -45,6 +46,7 @@ config FASTBOOT_BUF_SIZE
45 46
 	default 0x8000000 if ARCH_ROCKCHIP
46 47
 	default 0x6000000 if ARCH_ZYNQMP
47 48
 	default 0x2000000 if ARCH_SUNXI
49
+	default 0x8192 if SANDBOX
48 50
 	default 0x7000000
49 51
 	help
50 52
 	  The fastboot protocol requires a large memory buffer for