Skip to contentSkip to conversation

Building gdbserver only

DISCUSSION Geoffrey Wossum 2 participants 3 messages Apr 14, 2008 – Apr 15, 2008

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm working on getting OE to build gdb-6.7.1.atmel.1.0.3 for the AVR32. I have the gdb-cross working, but gdb is a little tricker. gdb has not been ported to be hosted on the AVR32, so do_compile() quits when running the gdb/configure script.

It does support building gdbserver for the AVR32, though. Trouble is, there doesn't seem to be an "easy" way to build just gdbserver. To build just gdbserver, you run the gdb-${PV}/gdb/gdbserver/configure instead of gdb-${PV}/configure. oe_runconf() substitutes the value of ${S} in. If you try to modify ${S} so that oe_runconf() executes the correct configure script, then ${S} is screwed up for do_patch() and the patches won't apply.

Any ideas on how to solve this dillemma?

---
Geoffrey

#1 lore raw
Quoted 7 lines · Geoffrey Wossum

Hi all,

I'm working on getting OE to build gdb-6.7.1.atmel.1.0.3 for the AVR32. I have the gdb-cross working, but gdb is a little tricker. gdb has not been ported to be hosted on the AVR32, so do_compile() quits when running the gdb/configure script.

Quoted 8 lines

It does support building gdbserver for the AVR32, though. Trouble is, there doesn't seem to be an "easy" way to build just gdbserver. To build just gdbserver, you run the gdb-${PV}/gdb/gdbserver/configure instead of gdb-${PV}/configure. oe_runconf() substitutes the value of ${S} in. If you try to modify ${S} so that oe_runconf() executes the correct configure script, then ${S} is screwed up for do_patch() and the patches won't apply.

Any ideas on how to solve this dillemma?

How about building gdb completely but package only gdbserver.

Thanks

-Khem

#2 lore raw
Quoted 9 lines · Khem Raj
Quoted 8 lines · Geoffrey Wossum

It does support building gdbserver for the AVR32, though. Trouble is, there doesn't seem to be an "easy" way to build just gdbserver. To build just gdbserver, you run the gdb-${PV}/gdb/gdbserver/configure instead of gdb-${PV}/configure. oe_runconf() substitutes the value of ${S} in. If you try to modify ${S} so that oe_runconf() executes the correct configure script, then ${S} is screwed up for do_patch() and the patches won't apply.

Quoted 3 lines
Quoted 1 line

Any ideas on how to solve this dillemma?

How about building gdb completely but package only gdbserver.

The problem is that gdb does not build, only gdbserver. I can't figure out a way to get OE to build just gdbserver for me. oe_doconf() always wants to run ${S}/configure, but I need it to run ${S}/gdb/gdbserver/configure. If I change S, then the patching fails.

What would be cool is if oe_doconf() took an optional parameter telling it where the configure script is, instead of always using ${S}/configure.

---
Geoffrey