gdb: properly set the gdb site in all cases
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 13 Apr 2013 04:09:10 +0000 (04:09 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 13 Apr 2013 18:12:39 +0000 (20:12 +0200)
commiteb29c831179791ef79164d2108fca4d34a603915
tree15016fcc3ec879536ac1fa0096542603174f3043
parent5dbb4038153730810e28855ad8c8cb115e421454
gdb: properly set the gdb site in all cases

Until now, the gdb site for AVR32 was adjusted only when GDB_VERSION
was not set, i.e only when the cross-gdb is *not* built. We should in
fact also set the site when the cross-gdb is built, so when
GDB_VERSION is defined through package/gdb/Config.in.host.

So, instead, we now have something like:

ifeq ($(GDB_VERSION),)
 # we define here a default version that is used when the cross-gdb is
 # not built and only the target gdb is selected.
endif

ifeq ($(GDB_VERSION),something-special)
GDB_SITE = some-special-site-for-some-special-gdb-version
endif

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gdb/gdb.mk