1 # Extra tasks required when using Atmel's patches to binutils
2 # See http://avr32linux.org/twiki/bin/view/Main/BinutilsPatches for
5 DEPENDS += "autoconf-native automake-native"
7 do_configure_prepend () {
8 if test ${TARGET_ARCH} == avr32; then
9 (cd ${S} && autoconf) || die "Error running autoconf"
10 for dir in bfd opcodes binutils ld; do
15 autoheader) || die "Error reconfiguring $dir"
20 do_configure_append () {
21 if test ${TARGET_ARCH} == avr32; then
22 # fix Makefile brokenness due to unmatched single quotes
23 (cd ${B} && sed -i -e "s,'CC=ccache,'CC=${CC}'," Makefile)
24 # *_alias options are not supported in binutils 2.17 and need
26 (cd ${B} && sed -i -e "s,'host_alias=.*',," Makefile)
27 (cd ${B} && sed -i -e "s,'build_alias=.*',," Makefile)
28 (cd ${B} && sed -i -e "s,'target_alias=*.',," Makefile)
30 (cd ${B} && make configure-bfd) || die "Error running 'make configure-bfd'"
31 (cd ${B}/bfd && make headers) || die "Error running 'make headers'"