diff mbox series

[1/1] configs/freescale_imx8m[mq]evk*: uboot needs openssl and gnutls

Message ID 20240804162057.1321387-1-ju.o@free.fr
State Accepted
Headers show
Series [1/1] configs/freescale_imx8m[mq]evk*: uboot needs openssl and gnutls | expand

Commit Message

Julien Olivain Aug. 4, 2024, 4:20 p.m. UTC
Those defconfigs were recently bumped to NXP BSP lf-6.6.23-2.0.0.

NXP BSP U-Boot version lf-6.6.23-2.0.0 is based on upstream
version 2024.04. This version now requires OpenSSL and GnuTLS for
that configuration.

Those defconfigs are failing in uboot build, with output:

    In file included from tools/imagetool.h:24,
                     from tools/imagetool.c:8:
    include/image.h:1471:12: fatal error: openssl/evp.h: No such file or directory
     1471 | #  include <openssl/evp.h>
          |            ^~~~~~~~~~~~~~~

and:

    tools/mkeficapsule.c:20:10: fatal error: gnutls/gnutls.h: No such file or directory
       20 | #include <gnutls/gnutls.h>
          |          ^~~~~~~~~~~~~~~~~

This commit fixes the issue by adding BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
and BR2_TARGET_UBOOT_NEEDS_OPENSSL=y in those defconfigs.

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Note: Patch tested in Gitlab CI pipeline:
https://gitlab.com/jolivain/buildroot/-/pipelines/1400170073
---
 configs/freescale_imx8mmevk_defconfig | 2 ++
 configs/freescale_imx8mqevk_defconfig | 2 ++
 2 files changed, 4 insertions(+)

Comments

Thomas Petazzoni Aug. 4, 2024, 9:06 p.m. UTC | #1
On Sun,  4 Aug 2024 18:20:57 +0200
Julien Olivain <ju.o@free.fr> wrote:

> Those defconfigs were recently bumped to NXP BSP lf-6.6.23-2.0.0.
> 
> NXP BSP U-Boot version lf-6.6.23-2.0.0 is based on upstream
> version 2024.04. This version now requires OpenSSL and GnuTLS for
> that configuration.
> 
> Those defconfigs are failing in uboot build, with output:
> 
>     In file included from tools/imagetool.h:24,
>                      from tools/imagetool.c:8:
>     include/image.h:1471:12: fatal error: openssl/evp.h: No such file or directory
>      1471 | #  include <openssl/evp.h>
>           |            ^~~~~~~~~~~~~~~
> 
> and:
> 
>     tools/mkeficapsule.c:20:10: fatal error: gnutls/gnutls.h: No such file or directory
>        20 | #include <gnutls/gnutls.h>
>           |          ^~~~~~~~~~~~~~~~~
> 
> This commit fixes the issue by adding BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
> and BR2_TARGET_UBOOT_NEEDS_OPENSSL=y in those defconfigs.
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Note: Patch tested in Gitlab CI pipeline:
> https://gitlab.com/jolivain/buildroot/-/pipelines/1400170073
> ---
>  configs/freescale_imx8mmevk_defconfig | 2 ++
>  configs/freescale_imx8mqevk_defconfig | 2 ++
>  2 files changed, 4 insertions(+)

Applied to master, thanks.

Thomas
diff mbox series

Patch

diff --git a/configs/freescale_imx8mmevk_defconfig b/configs/freescale_imx8mmevk_defconfig
index 2f57bfd2f0..335030fcd3 100644
--- a/configs/freescale_imx8mmevk_defconfig
+++ b/configs/freescale_imx8mmevk_defconfig
@@ -30,6 +30,8 @@  BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
 BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,nxp-imx,uboot-imx,lf-6.6.23-2.0.0)/uboot-imx-lf-6.6.23-2.0.0.tar.gz"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mm_evk"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin"
 BR2_TARGET_UBOOT_SPL=y
diff --git a/configs/freescale_imx8mqevk_defconfig b/configs/freescale_imx8mqevk_defconfig
index 05a78e5b6b..50fcaeff83 100644
--- a/configs/freescale_imx8mqevk_defconfig
+++ b/configs/freescale_imx8mqevk_defconfig
@@ -30,6 +30,8 @@  BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
 BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,nxp-imx,uboot-imx,lf-6.6.23-2.0.0)/uboot-imx-lf-6.6.23-2.0.0.tar.gz"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mq_evk"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin"
 BR2_TARGET_UBOOT_SPL=y