[OE-core] [PATCH] u-boot-fw-utils: Fix cross and target builds

Tom Rini trini at konsulko.com
Tue Sep 19 12:39:20 UTC 2017


On Tue, Sep 19, 2017 at 08:53:38AM -0300, Otavio Salvador wrote:
> Em 19 de set de 2017 8:26 AM, "Tom Rini" <trini at konsulko.com> escreveu:
> 
> On Tue, Sep 19, 2017 at 02:40:58AM -0300, Otavio Salvador wrote:
> >  - The environment tools target has change to envtools;
> >  - The HOSTCC variable must be used to set CC for cross;
> >  - The ARCH variable must be set for cross;
> >
> > Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> > ---
> >
> >  meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
> b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
> > index c2e8f0fb84..21ab5b3e6d 100644
> > --- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
> > +++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb
> > @@ -5,13 +5,13 @@ DEPENDS = "mtd-utils"
> >
> >  INSANE_SKIP_${PN} = "already-stripped"
> >  EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}
> ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"
> V=1'
> > -EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS}
> ${LDFLAGS}" V=1'
> > +EXTRA_OEMAKE_class-cross = 'ARCH=${ARCH} HOSTCC="${CC} ${CFLAGS}
> ${LDFLAGS}" V=0'
> 
> Since we're messing with this, U-Boot's build system doesn't take ARCH.
> It's one of the variables that you pick in Kconfig, not set so that
> arch/$(ARCH)/Kconfig is sourced.  We should drop that.
> 
> 
> You can't. Try dropping it...

I've never ever built U-Boot with ARCH=, so, what's going on in OE land?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170919/8e21a511/attachment-0002.sig>


More information about the Openembedded-core mailing list