]> code.ossystems Code Review - openembedded-core.git/commit
u-boot-mkimage: fix nativesdk build
authorMax Krummenacher <max.oss.09@gmail.com>
Wed, 17 May 2017 20:11:34 +0000 (22:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Jul 2017 22:26:56 +0000 (23:26 +0100)
commitaab5311f3ad9fb9f9e26b18b5fe5e54d8ec14798
treef90e7e29c1a55a434e44d94791e31e100982c13c
parent26e25713852ed747a96ce55fe9dc7dd2a4fd250b
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@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-bsp/u-boot/u-boot-mkimage_2017.01.bb