[oe-commits] : binutils: fix avr32 prefixing issue

OE GIT Trial gittrial at amethyst.openembedded.net
Tue Aug 12 14:26:43 UTC 2008


Module: OE.dev
Branch: master
Commit: 273cb190ca998b41e8fb75606a0826db6d2fb500
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=273cb190ca998b41e8fb75606a0826db6d2fb500

Author:  <theBohemian at gmx.net>
Date:   Mon Aug 11 13:03:14 2008 +0000

binutils: fix avr32 prefixing issue

---

 packages/binutils/binutils-avr32.inc |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/packages/binutils/binutils-avr32.inc b/packages/binutils/binutils-avr32.inc
index 2767494..bbae784 100644
--- a/packages/binutils/binutils-avr32.inc
+++ b/packages/binutils/binutils-avr32.inc
@@ -18,6 +18,14 @@ do_avr32_reconf () {
 
 do_avr32_configure_bfd () {
         if test ${TARGET_ARCH} == avr32; then
+						# fix Makefile brokenness due to unmatched single quotes 
+						(cd ${B} && sed -i -e "s,'CC=ccache,'CC=${CC}'," Makefile) 
+						# *_alias options are not supported in binutils 2.17 and need
+						# to be removed
+						(cd ${B} && sed -i -e "s,'host_alias=.*',," Makefile)
+						(cd ${B} && sed -i -e "s,'build_alias=.*',," Makefile)
+						(cd ${B} && sed -i -e "s,'target_alias=*.',," Makefile)
+
             (cd ${B} && make configure-bfd) || die "Error running 'make configure-bfd'"
             (cd ${B}/bfd && make headers) || die "Error running 'make headers'"
         fi





More information about the Openembedded-commits mailing list