merge of 'b84aeb3b3fcb9975cdaaafccc4ecbc7ca61c5312'
[vuplus_openembedded] / packages / gdb / gdb-avr32.inc
1 # Perform tasks required to use Atmel's AVR32 patches
2 # See http://avr32linux.org/twiki/bin/view/Main/GDBPatches for more info
3
4
5 do_avr32_reconf () {
6     if test ${TARGET_ARCH} == "avr32"; then
7         (cd ${S} && autoconf) || \
8             die "failure running autoconf in top-level gdb"
9
10         (cd ${S}/bfd && autoreconf) || \
11             die "failure running autoreconf in bfd/"
12
13         (cd ${S}/opcodes && autoreconf) || \
14             die "failure running autoreconf in opcodes/"
15     fi
16
17 }
18
19
20
21 do_avr32_configure_bfd () {
22     if test ${TARGET_ARCH} == "avr32"; then
23         (cd ${B} && make configure-bfd) || die "Error running configure-bfd"
24         (cd ${B}/bfd && make headers) || \
25                 die "error running 'make headers' in bfd"
26     fi
27 }
28
29
30 addtask avr32_reconf after do_patch before do_configure
31 addtask avr32_configure_bfd after do_configure before do_compile
32