[oe-commits] org.oe.dev binutils: fix avr32 prefixing issue

theBohemian commit oe at amethyst.openembedded.net
Mon Sep 1 18:04:14 UTC 2008


binutils: fix avr32 prefixing issue

Author: theBohemian at gmx.net
Branch: org.openembedded.dev
Revision: c4a6ad877f58fc86c1ec4aa2a6229bff40f77b5c
ViewMTN: http://monotone.openembedded.org/revision/info/c4a6ad877f58fc86c1ec4aa2a6229bff40f77b5c
Files:
1
packages/binutils/binutils-avr32.inc
Diffs:

#
# mt diff -r0e1af3346eb840a7f638613f71703b8873552ee4 -rc4a6ad877f58fc86c1ec4aa2a6229bff40f77b5c
#
#
#
# patch "packages/binutils/binutils-avr32.inc"
#  from [7d4de5cdff8cbe23a79ceaf4ae9d202ba3b70583]
#    to [32742801acaf13d8d36e0bccb714fea20c6053da]
#
============================================================
--- packages/binutils/binutils-avr32.inc	7d4de5cdff8cbe23a79ceaf4ae9d202ba3b70583
+++ packages/binutils/binutils-avr32.inc	32742801acaf13d8d36e0bccb714fea20c6053da
@@ -18,6 +18,14 @@ do_avr32_configure_bfd () {
 
 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