Kconfig: sandbox: enable cmd_avb and dependencies
authorJens Wiklander <jens.wiklander@linaro.org>
Tue, 25 Sep 2018 14:40:23 +0000 (16:40 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 7 Oct 2018 17:34:19 +0000 (13:34 -0400)
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>
arch/Kconfig
configs/sandbox_noblk_defconfig
drivers/fastboot/Kconfig

index 074ede1..1f2f407 100644 (file)
@@ -106,6 +106,10 @@ config SANDBOX
        imply LZMA
        imply SCSI
        imply TEE
        imply LZMA
        imply SCSI
        imply TEE
+       imply AVB_VERIFY
+       imply LIBAVB
+       imply CMD_AVB
+       imply UDP_FUNCTION_FASTBOOT
 
 config SH
        bool "SuperH architecture"
 
 config SH
        bool "SuperH architecture"
index c8d33c7..93b2240 100644 (file)
@@ -2,7 +2,6 @@ CONFIG_SYS_TEXT_BASE=0
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_NR_DRAM_BANKS=1
-CONFIG_ANDROID_BOOT_IMAGE=y
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
@@ -17,6 +16,7 @@ CONFIG_CONSOLE_RECORD=y
 CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
 CONFIG_SILENT_CONSOLE=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
 CONFIG_SILENT_CONSOLE=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
+# CONFIG_AVB_VERIFY is not set
 CONFIG_CMD_CPU=y
 CONFIG_CMD_LICENSE=y
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_CPU=y
 CONFIG_CMD_LICENSE=y
 CONFIG_CMD_BOOTZ=y
index bc25ea1..d63ecdd 100644 (file)
@@ -35,6 +35,7 @@ config FASTBOOT_BUF_ADDR
                                ROCKCHIP_RK3399
        default 0x280000 if ROCKCHIP_RK3368
        default 0x100000 if ARCH_ZYNQMP
                                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
        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 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
        default 0x7000000
        help
          The fastboot protocol requires a large memory buffer for