Skip to contentSkip to conversation

imx: imx-hab: Select SPL_DRIVERS_MISC in the SPL case

PATCH In review Fabio Estevam 3 participants 5 messages Dec 11, 2023 – Dec 14, 2023

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 imx: imx-hab: Select SPL_DRIVERS_MISC in the SPL case

From: Fabio Estevam <[email protected]>

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.

---
 arch/arm/mach-imx/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/Kconfig +1 -0
index abd48d42583a..c34bc25c0bfb 100644
@@ -54,6 +54,7 @@ config IMX_HAB
 	bool "Support i.MX HAB features"
 	depends on ARCH_MX7 || ARCH_MX6 || ARCH_MX5 || ARCH_IMX8M || ARCH_MX7ULP
 	select FSL_CAAM if HAS_CAAM
+	select SPL_DRIVERS_MISC if SPL
 	imply CMD_DEKBLOB if HAS_CAAM
 	help
 	  This option enables the support for secure boot (HAB).
Signature · 1 line
2.34.1
#1 lore raw
Quoted 34 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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.

---
 arch/arm/mach-imx/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/Kconfig +1 -1
index abd48d42583a..c34bc25c0bfb 100644
@@ -54,6 +54,7 @@ config IMX_HAB
        bool "Support i.MX HAB features"
        depends on ARCH_MX7 || ARCH_MX6 || ARCH_MX5 || ARCH_IMX8M || ARCH_MX7ULP
        select FSL_CAAM if HAS_CAAM
+       select SPL_DRIVERS_MISC if SPL
        imply CMD_DEKBLOB if HAS_CAAM
        help
          This option enables the support for secure boot (HAB).
--
Quoted 1 line

2.34.1

I actually tested this, so, should I reply with Reviewed-By?

Signature · 2 lines
Lisandro Pérez Meyer
Embedded Platform Engineer
#2 lore raw

Hi Lisandro,

Quoted 1 line · Lisandro Pérez Meyer

I actually tested this, so, should I reply with Reviewed-By?

Feel free to reply with your Tested-by tag.

Thanks

Tested-by on v1 1/1
#3 lore raw
In reply to Fabio Estevam
Quoted 34 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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.

---
 arch/arm/mach-imx/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/Kconfig +1 -1
index abd48d42583a..c34bc25c0bfb 100644
@@ -54,6 +54,7 @@ config IMX_HAB
        bool "Support i.MX HAB features"
        depends on ARCH_MX7 || ARCH_MX6 || ARCH_MX5 || ARCH_IMX8M || ARCH_MX7ULP
        select FSL_CAAM if HAS_CAAM
+       select SPL_DRIVERS_MISC if SPL
        imply CMD_DEKBLOB if HAS_CAAM
        help
          This option enables the support for secure boot (HAB).
--
Quoted 2 lines

2.34.1

Signature · 2 lines
Lisandro Pérez Meyer
Embedded Platform Engineer
author reviewer
#4 lore raw
In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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'

Quoted 8 lines

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.

Applied to u-boot-imx next, thanks.