Commit 06e6b708df75d50e7c4ad1c1a74fdbfc98d4bcc1

Authored by Ji Luo
1 parent c21f676447

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 <ji.luo@nxp.com>

Showing 3 changed files with 6 additions and 0 deletions Side-by-side Diff

configs/imx8mq_evk_androidthings_defconfig
... ... @@ -53,6 +53,8 @@
53 53 CONFIG_FSL_FASTBOOT=y
54 54 CONFIG_BCB_SUPPORT=y
55 55 CONFIG_FASTBOOT_FLASH_MMC_DEV=0
  56 +CONFIG_SPL_ENV_SUPPORT=y
  57 +CONFIG_CMD_FASTBOOT=y
56 58 CONFIG_ANDROID_BOOT_IMAGE=y
57 59 CONFIG_EFI_PARTITION=y
58 60 CONFIG_SDP_LOADADDR=0x40400000
configs/imx8mq_phanbell_androidthings_defconfig
... ... @@ -42,6 +42,7 @@
42 42 CONFIG_FIT=y
43 43 CONFIG_SPL_FIT=y
44 44 CONFIG_SPL_LOAD_FIT=y
  45 +CONFIG_SPL_ENV_SUPPORT=y
45 46 CONFIG_SPL_MMC_SUPPORT=y
46 47 CONFIG_SPL_MMC_WRITE=y
47 48 CONFIG_USB=y
include/configs/imx8mq_evk_androidthings.h
... ... @@ -62,6 +62,9 @@
62 62 #ifdef CONFIG_SPL_BUILD
63 63  
64 64 #define CONFIG_SPL_SHA256
  65 +#undef CONFIG_ENV_IS_IN_MMC
  66 +#undef CONFIG_BLK
  67 +#define CONFIG_ENV_IS_NOWHERE
65 68  
66 69 #define AVB_RPMB
67 70 #ifdef AVB_RPMB