gdb: introduce BR2_PACKAGE_GDB_ARCH_SUPPORTS
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 3 Jun 2017 12:07:45 +0000 (14:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Jun 2017 16:00:48 +0000 (18:00 +0200)
Before adding more architecture dependencies to gdb, let's introduce a
BR2_PACKAGE_GDB_ARCH_SUPPORTS, to avoid duplicating this list of
dependencies between the Config.in comment and the main Config.in
option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Changes since v2:
 - None
Changes since v1:
 - None

package/gdb/Config.in

index 026cdeaa800fc15c49c75239ae498f85a920667c..3acc6ef99615d5f3cc6bebe67e34bc29f74a235d 100644 (file)
@@ -1,11 +1,17 @@
+config BR2_PACKAGE_GDB_ARCH_SUPPORTS
+       bool
+       default y
+       depends on !BR2_bfin
+       depends on !BR2_nios2
+
 comment "gdb/gdbserver needs a toolchain w/ threads, threads debug"
-       depends on !BR2_nios2 && !BR2_bfin
+       depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG
 
 config BR2_PACKAGE_GDB
        bool "gdb"
        depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG
-       depends on !BR2_nios2 && !BR2_bfin
+       depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS
        # When the external toolchain gdbserver is copied to the
        # target, we don't allow building a separate gdbserver. The
        # one from the external toolchain should be used.