This allow U-Boot to build the need native tools during the build
process.
Later this ought to be reworked to proper split this into a cross
recipe but it is too late in the Yocto 1.5 release for it.
Change-Id: I069313b991778ea1502995beb36224fe1ae8c996
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
LIC_FILES_CHKSUM = "file://Licenses/README;md5=6bc50ecab884fce80cd3ef3da8852b08"
COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6|vf60)"
-DEPENDS_mxs += "elftosb-native"
+DEPENDS_mxs += "elftosb-native openssl-native"
PROVIDES += "u-boot"
S = "${WORKDIR}/git"
+# FIXME: Allow linking of 'tools' binaries with native libraries
+# used for generating the boot logo and other tools used
+# during the build process.
+EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \
+ HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \
+ HOSTSTRIP=true'
+
PACKAGE_ARCH = "${MACHINE_ARCH}"