diff mbox

[2/3] gdb: not available on ARM noMMU and OpenRISC

Message ID 1496523913-19323-2-git-send-email-thomas.petazzoni@free-electrons.com
State Superseded
Headers show

Commit Message

Thomas Petazzoni June 3, 2017, 9:05 p.m. UTC
Neither gdb nor gdbserver have support for ARM noMMU and OpenRISC, so
let's disable gdb on those architectures.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/gdb/Config.in      | 2 ++
 package/gdb/Config.in.host | 2 ++
 2 files changed, 4 insertions(+)
diff mbox

Patch

diff --git a/package/gdb/Config.in b/package/gdb/Config.in
index 3acc6ef..becef31 100644
--- a/package/gdb/Config.in
+++ b/package/gdb/Config.in
@@ -1,8 +1,10 @@ 
 config BR2_PACKAGE_GDB_ARCH_SUPPORTS
 	bool
 	default y
+	depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
 	depends on !BR2_bfin
 	depends on !BR2_nios2
+	depends on !BR2_openrisc
 
 comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
 	depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
index cd763aa..027300e 100644
--- a/package/gdb/Config.in.host
+++ b/package/gdb/Config.in.host
@@ -6,7 +6,9 @@  config BR2_PACKAGE_HOST_GDB
 	# allow to build a cross-gdb, as the one of the external
 	# toolchain should be used.
 	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
+	depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
 	depends on !BR2_nios2
+	depends on !BR2_openrisc
 	help
 	  Build a cross gdb that runs on the host machine and debugs
 	  programs running on the target. It requires 'gdbserver'