[ELDK] [PATCH v1 1/1] META-ELDK: u-boot-mkimage: Unbreak build (missing SSL headers)

Marek Vasut marex at denx.de
Mon Apr 14 20:48:02 CEST 2014


On Monday, April 14, 2014 at 07:43:57 PM, Gerhard Sittig wrote:
> in the absence of OpenSSL headers in the host, builds for the
> u-boot-mkimage-native package fail with the following error
> 
>   mxsimage.c:18:25: fatal error: openssl/evp.h: No such file or directory
> 
> the error goes unnoticed when the host has libssl-dev installed, which
> could be considered another issue because one could argue the host's
> OpenSSL configuration should not influence the Yocto build
> 
> this change unbreaks compilation of the u-boot-mkimage-native package
> 
> Signed-off-by: Gerhard Sittig <gsi at denx.de>
> ---
>  meta-eldk/recipes-bsp/uboot/u-boot-mkimage_2014.01.bb |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-eldk/recipes-bsp/uboot/u-boot-mkimage_2014.01.bb
> b/meta-eldk/recipes-bsp/uboot/u-boot-mkimage_2014.01.bb index
> 85f6673e3c83..549a0ce2e942 100644
> --- a/meta-eldk/recipes-bsp/uboot/u-boot-mkimage_2014.01.bb
> +++ b/meta-eldk/recipes-bsp/uboot/u-boot-mkimage_2014.01.bb
> @@ -22,7 +22,7 @@ S = "${WORKDIR}/git"
> 
>  BBCLASSEXTEND = "native nativesdk"
> 
> -EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" HOSTCC="${CC}"
> HOSTLD="${LD}" HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true' +EXTRA_OEMAKE =
> 'CROSS_COMPILE="${TARGET_PREFIX}" HOSTCC="${CC} ${CFLAGS}" HOSTLD="${LD}"
> HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'

I'm glaring into this and ... hmmm ... I wonder if adding:

 HOSTCPPFLAGS="${CFLAGS}"

won't work as well. But I have to admit I am getting a bit lost in those 
overrides here :-(

btw. I cannot replicate this here on debian/testing even if I uninstall libssl-
dev :-(

Best regards,
Marek Vasut


More information about the eldk mailing list