From: Denys Dmytriyenko <[email protected]>

u-boot doesn't really support building its tools for the target, as they are
built with HOSTCC compiler, which is also used to compile fixdep utility
that gets executed during the build. Since it might be beneficial to have a
target version of mkimage, let's hack it to build fixdep in a separate step.

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb 
b/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb
index 7c05215..eabf680 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb
@@ -20,6 +20,8 @@ do_compile () {
        # Make sure the recompile is OK
        rm -f ${B}/tools/.depend
 
+       make HOSTCC="${BUILD_CC}" HOSTLD="${BUILD_LD}" 
HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTSTRIP=true dot-config=0 scripts_basic
+       sed 's/^tools-only: scripts_basic /tools-only: /' -i Makefile
        oe_runmake tools-only
 }
 
-- 
2.1.2

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to