summaryrefslogtreecommitdiff
path: root/packages/binutils/binutils-avr32.inc
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-08-11 13:03:14 +0000
committerKoen Kooi <koen@openembedded.org>2008-08-11 13:03:14 +0000
commit69404b2791c64f0d72a1464f5dbe2b52472b466a (patch)
tree432b0a411310cd844da62e544f31270854405f11 /packages/binutils/binutils-avr32.inc
parent564fa88b93e739b86f1e4a8a3e7fecd01460bb9b (diff)
binutils: fix avr32 prefixing issue
Diffstat (limited to 'packages/binutils/binutils-avr32.inc')
-rw-r--r--packages/binutils/binutils-avr32.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/binutils/binutils-avr32.inc b/packages/binutils/binutils-avr32.inc
index 2767494940..bbae784011 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