From: Denys Dmytriyenko <denis@denix.org>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: Denys Dmytriyenko <denys@ti.com>,
Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [RFC][PATCH] u-boot-mkimage: allow building target version of the tool
Date: Sun, 09 Nov 2014 02:51:51 -0500 [thread overview]
Message-ID: <20141109075151.GH9512@denix.org> (raw)
In-Reply-To: <CAP9ODKoa60CMUEc1+w=4OqPZNQ7b9hFCBNzo8+fB=-kdK=VDZQ@mail.gmail.com>
On Sat, Nov 08, 2014 at 05:12:36PM -0200, Otavio Salvador wrote:
> On Fri, Nov 7, 2014 at 8:24 PM, Denys Dmytriyenko <denis@denix.org> wrote:
> > From: Denys Dmytriyenko <denys@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 <denys@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:
That still doesn't work when building tools for the target:
/bin/sh: scripts/basic/fixdep: cannot execute binary file: Exec format error
I guess you are missing the point of this patch, as sandbox_defconfig will
only eliminate dot-config=0 parameter, but not the need to build fixdep
separately with a different host compiler...
On the other hand - is it a real requirement to build mkimage for the target?
> 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
>
next prev parent reply other threads:[~2014-11-09 7:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 22:24 [RFC][PATCH] u-boot-mkimage: allow building target version of the tool Denys Dmytriyenko
2014-11-08 19:12 ` Otavio Salvador
2014-11-09 7:51 ` Denys Dmytriyenko [this message]
2014-11-09 13:11 ` Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141109075151.GH9512@denix.org \
--to=denis@denix.org \
--cc=denys@ti.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=otavio@ossystems.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.