]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: imx-hab: Select SPL_DRIVERS_MISC in the SPL case
authorFabio Estevam <festevam@denx.de>
Mon, 11 Dec 2023 13:46:17 +0000 (10:46 -0300)
committerFabio Estevam <festevam@gmail.com>
Wed, 13 Dec 2023 18:37:52 +0000 (15:37 -0300)
commit04bb59b4083147ad164594048258961c30089a64
tree0095935b20eb8ebf15f4ee5a0c91d5b927bde950
parent4ac5620270ddc5b31cf8600ffa5990be197597c9
imx: imx-hab: Select SPL_DRIVERS_MISC in the SPL case

Selecting CONFIG_IMX_HAB=y on a SPL target, such as apalis_imx6_defconfig,
for example, leads to the following build error:

/usr/bin/arm-linux-gnueabihf-ld.bfd: arch/arm/mach-imx/hab.o: in function `imx_hab_is_enabled':
arch/arm/mach-imx/hab.c:879: undefined reference to `fuse_read'

fuse_read() comes from SPL_MXC_OCOTP, which depends on SPL_DRIVERS_MISC,
since commit 251a3053b1e6 ("misc: imx: remove DM dependency for ocotp
driver in SPL").

Select SPL_DRIVERS_MISC in the SPL case to fix this build issue.

Reported-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Tested-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
arch/arm/mach-imx/Kconfig