[oe-commits] [openembedded-core] 01/01: u-boot-mkimage: fix nativesdk build

git at git.openembedded.org git at git.openembedded.org
Tue Jul 4 22:27:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch pyro-next
in repository openembedded-core.

commit aab5311f3ad9fb9f9e26b18b5fe5e54d8ec14798
Author: Max Krummenacher <max.oss.09 at gmail.com>
AuthorDate: Wed May 17 22:11:34 2017 +0200

    u-boot-mkimage: fix nativesdk build
    
    If building for nativesdk the wrong rss sysroot is used leading the
    following error message.
    
    | ERROR: oe_runmake failed
    | In file included from tools/imximage.c:13:0:
    | include/image.h:1024:27: fatal error: openssl/evp.h: No such file or directory
    |  # include  <openssl/evp.h>
    
    Tools needed on the build host (script/basic/fixdep) and code compiled
    for the SDK machine are both built with the build host's compiler,
    leading to additinal errors.
    
    Adding CROSS_COMPILE="${HOST_PREFIX}" and using the cross-compiler for
    the SDK_ARCH fixes the build error.
    The resulting binary in the SDK is working.
    
    Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb
index 1aa95e7..de999e7 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb
@@ -7,7 +7,7 @@ DEPENDS = "openssl"
 
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
 EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
-EXTRA_OEMAKE_class-nativesdk = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
+EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
 
 do_compile () {
 	oe_runmake sandbox_defconfig

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list