Browse Source

gdb: disallow GDB_HOST on external toolchain builds

The cross-gdb is supposed to be part of the external toolchain, so
Buildroot does not need to build it. Moreover, GDB_HOST build
currently fail with:

ln -snf ../../bin/arm-unknown-linux-gnueabi-gdb \
                /home/test/outputs/test-48/staging/usr/arm-unknown-linux-gnueabi/bin/gdb
ln: creating symbolic link `/home/test/outputs/test-48/staging/usr/arm-unknown-linux-gnueabi/bin/gdb': No such file or directory

And even worse: they overwrite the cross-gdb of the external
toolchain!

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas Petazzoni 15 years ago
parent
commit
d328fef63c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      toolchain/gdb/Config.in

+ 3 - 0
toolchain/gdb/Config.in

@@ -18,6 +18,9 @@ config BR2_PACKAGE_GDB_SERVER
 
 
 config BR2_PACKAGE_GDB_HOST
 config BR2_PACKAGE_GDB_HOST
 	bool "Build gdb for the Host"
 	bool "Build gdb for the Host"
+	# cross-gdb is supposed to be part of the external
+	# toolchain. And the build currently fails.
+	depends on !BR2_TOOLCHAIN_EXTERNAL
 	help
 	help
 	    Build gdb to run on the host to debug programs run on the target.
 	    Build gdb to run on the host to debug programs run on the target.