package/gdb: fix build of gdb on riscv
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 15 Aug 2021 16:21:06 +0000 (18:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 19 Aug 2021 20:53:22 +0000 (22:53 +0200)
commit709004563b200a6b9456143de9722d99f4c5054b
tree1df3405bad1cda69bb58995c95eaae859db5b5bd
parent2ee1063136edd030f1c4a8ca88d0a80d98ce8719
package/gdb: fix build of gdb on riscv

Build of gdb on riscv without host-gdb is broken since commit
4ecd247ead22a6cfb87a4ffafc4be05201328aef because BR2_GDB_VERSION_10 is
never defined if BR2_PACKAGE_HOST_GDB is not selected resulting in the
following build failure:

/bin/bash: line 0: cd: /tmp/instance-0/output-1/build/gdb-10.1/gdb/gdbserver: No such file or directory

So add a BR2_PACKAGE_GDB_TOPLEVEL hidden option as suggested by Thomas
Petazzoni.

Fixes:
 - http://autobuild.buildroot.org/results/ce47d616ee79d5f735779570ebc3b4a9c0f64c6a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gdb/Config.in.host
package/gdb/gdb.mk