[OE-core] u-boot do_compile should be reentrant even with ld-is-gold

Martin Jansa martin.jansa at gmail.com
Thu Aug 2 11:50:12 UTC 2012


On Wed, Aug 01, 2012 at 04:02:24PM -0700, Khem Raj wrote:
> 
> On Jul 31, 2012, at 11:54 PM, Martin Jansa <martin.jansa at gmail.com> wrote:
> 
> > well not exactly like this one as this is causing
> > /bin/sh: 1: Syntax error: Bad fd number
> > probably from ">&" in dash
> 
> 
> yes. I swear I have since fixed this patch this seems to be an older version
> did you look into meta-ti/master ?

Yes, your patch is fixed in meta-ti, but cannot be used together with
Otavio's patch to u-boot.inc.

meta-ti is fine because it provides own u-boot.inc, but with your patch
and u-boot.inc from oe-core it ends like this

config.mk:
+LD     = $(call exists_bfd_ld, "$(CROSS_COMPILE)ld.bfd.bfd","$(CROSS_COMPILE)ld.bfd")

On Wed, Aug 01, 2012 at 09:32:03AM -0300, Otavio Salvador wrote:
> Wouldn't be better to grep for 'ld.bfd' and apply it *only* if not is not found?

no need for grep, something like
-               sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk
+               sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' config.mk
should be enough, I will test and send patch..

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120802/5382e8aa/attachment-0002.sig>


More information about the Openembedded-core mailing list