[ELDK] [PATCH v2 1/2] META-ELDK: u-boot-mkimage: unbreak U-Boot tools build
Gerhard Sittig
gsi at denx.de
Tue Apr 22 16:06:26 CEST 2014
building the u-boot-mkimage-native package breaks with the error message
mxsimage.c:18:25: fatal error: openssl/evp.h: No such file or directory
OpenSSL related header files are not found despite their being present
in the native sysroot
the error can be hidden by libssl-dev packages in the build machine, in
this case the host's header files are used instead (which would result
in building applications against headers that don't match the library
which gets used at runtime, and is as bad)
this change unbreaks compilation of the u-boot-mkimage-native package;
passing both the CC as well as the CFLAGS values within one HOSTCC spec
is done because passing individual HOSTCFLAGS does not work for v2014.01
and results in the error message
gcc -isystem.../tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -o default_image.o default_image.c -c
In file included from imagetool.h:12:0,
from aisimage.c:8:
os_support.h:10:22: fatal error: compiler.h: No such file or directory
compilation terminated.
Signed-off-by: Gerhard Sittig <gsi at denx.de>
---
changes in v2:
- reword and expand the commit message for improved clarity,
state why passing individual CFLAGS doesn't work
- break the long EXTRA_OEMAKE recipe text line
I'm happy to capitalize sentences in the commit message (assuming that
there is so strong a policy for non-documentation parts), after the
actual change has been verified. My tests included generic-armv7a-hf,
socfpga and m28evk.
meta-eldk/recipes-bsp/uboot/u-boot-mkimage_2014.01.bb | 5 ++++-
1 file changed, 4 insertions(+), 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..5c9bd83c33a8 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,10 @@ 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'
# Make sure the MXS-specific tools will build. This encomprises both
# tools/mxsboot as well as tools/mkimage with MXS image support.
--
1.7.10.4
More information about the eldk
mailing list