From 06e6b708df75d50e7c4ad1c1a74fdbfc98d4bcc1 Mon Sep 17 00:00:00 2001 From: Ji Luo Date: Tue, 31 Jul 2018 16:50:05 +0800 Subject: [PATCH] MA-12250 [iot] Fix build error for imx8m Enable CONFIG_SPL_ENV_SUPPORT to fix build errors like below: common/built-in.o:(.data.env_htab+0xc): undefined reference to 'env_flags_validate' lib/built-in.o: In function `hsearch_r': lib/hashtable.c:380: undefined reference to 'env_callback_init' lib/hashtable.c:382: undefined reference to 'env_flags_init' Change-Id: Ife7dc129ac2a4dd0ee2f18ee41a5128d868ea031 Signed-off-by: Ji Luo --- configs/imx8mq_evk_androidthings_defconfig | 2 ++ configs/imx8mq_phanbell_androidthings_defconfig | 1 + include/configs/imx8mq_evk_androidthings.h | 3 +++ 3 files changed, 6 insertions(+) diff --git a/configs/imx8mq_evk_androidthings_defconfig b/configs/imx8mq_evk_androidthings_defconfig index 71c9f915ba..c7084e08b8 100644 --- a/configs/imx8mq_evk_androidthings_defconfig +++ b/configs/imx8mq_evk_androidthings_defconfig @@ -53,6 +53,8 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FSL_FASTBOOT=y CONFIG_BCB_SUPPORT=y CONFIG_FASTBOOT_FLASH_MMC_DEV=0 +CONFIG_SPL_ENV_SUPPORT=y +CONFIG_CMD_FASTBOOT=y CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_EFI_PARTITION=y CONFIG_SDP_LOADADDR=0x40400000 diff --git a/configs/imx8mq_phanbell_androidthings_defconfig b/configs/imx8mq_phanbell_androidthings_defconfig index a3fa0e1aa9..f3d02a0c8a 100644 --- a/configs/imx8mq_phanbell_androidthings_defconfig +++ b/configs/imx8mq_phanbell_androidthings_defconfig @@ -42,6 +42,7 @@ CONFIG_DM_THERMAL=y CONFIG_FIT=y CONFIG_SPL_FIT=y CONFIG_SPL_LOAD_FIT=y +CONFIG_SPL_ENV_SUPPORT=y CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_MMC_WRITE=y CONFIG_USB=y diff --git a/include/configs/imx8mq_evk_androidthings.h b/include/configs/imx8mq_evk_androidthings.h index d28755fa33..2c9036c2e5 100644 --- a/include/configs/imx8mq_evk_androidthings.h +++ b/include/configs/imx8mq_evk_androidthings.h @@ -62,6 +62,9 @@ #ifdef CONFIG_SPL_BUILD #define CONFIG_SPL_SHA256 +#undef CONFIG_ENV_IS_IN_MMC +#undef CONFIG_BLK +#define CONFIG_ENV_IS_NOWHERE #define AVB_RPMB #ifdef AVB_RPMB