]> code.ossystems Code Review - openembedded-core.git/commit
u-boot.inc: fix regexp used when ld-is-gold
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 2 Aug 2012 12:09:50 +0000 (14:09 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Aug 2012 13:58:51 +0000 (14:58 +0100)
commitf78044f85ab1a0acce852a7032fc0c81285cd4c1
treee7440b60be67916c8776985159ab6a7ccfa2fab9
parent404d2d490fc347203e89d274530c17fb5f0aa20f
u-boot.inc: fix regexp used when ld-is-gold

* with old regexp it wasn't reentrant, causing stuff like this:
  -LD     = $(CROSS_COMPILE)ld
  +LD     = $(CROSS_COMPILE)ld.bfd.bfd
  -LDR    = $(CROSS_COMPILE)ldr
  +LDR    = $(CROSS_COMPILE)ld.bfd.bfdr
  when do_compile was reexecuted, also breaking LDR variable and
  http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/tree/recipes-bsp/u-boot/u-boot/0001-config-Always-use-GNU-ld.patch
  when it was used together with u-boot.inc from oe-core (meta-ti is using own u-boot.inc)

* This patch is also better solution to ld-is-gold problem then regexp in metadata.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/u-boot/u-boot.inc