On Fri, Nov 7, 2014 at 8:24 PM, Denys Dmytriyenko <de...@denix.org> wrote: > From: Denys Dmytriyenko <de...@ti.com> > > 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 <de...@ti.com> ... > + make HOSTCC="${BUILD_CC}" HOSTLD="${BUILD_LD}" > HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTSTRIP=true dot-config=0 scripts_basic ...
We do it in meta-fsl-arm as below: ESCRIPTION = "U-boot bootloader mxsboot tool" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" DEPENDS = "openssl" PROVIDES = "u-boot-mxsboot" PV = "v2014.10+git${SRCPV}" SRCREV = "75ce95e627609c9b9e537e935e69c4ecef26c8f7" SRCBRANCH = "patches-2014.10" SRC_URI = "git://github.com/Freescale/u-boot-imx.git;branch=${SRCBRANCH}" S = "${WORKDIR}/git" inherit fsl-u-boot-localversion EXTRA_OEMAKE = 'HOSTCC="${CC} ${CPPFLAGS}" HOSTLDFLAGS="-L${libdir} -L${base_libdir}" HOSTSTRIP=true CONFIG_MX28=y' do_configure () { oe_runmake sandbox_defconfig } do_compile () { oe_runmake tools-only } do_install () { install -d ${D}${bindir} install -m 0755 tools/mxsboot ${D}${bindir}/uboot-mxsboot ln -sf uboot-mxsboot ${D}${bindir}/mxsboot } BBCLASSEXTEND = "native nativesdk" -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core