From d9f1cf6e50381439485c69b0c4cb4f7e5b1bef0a Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Sat, 12 Apr 2014 13:10:10 -0400 Subject: [PATCH] gdb: Disable gdbserver conditionally. Make the disabling of gdbserver conditional on the value of TCMODE. Signed-off-by: Drew Moseley --- core/recipes-devtools/gdb/gdb_7.6.2.bbappend | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/recipes-devtools/gdb/gdb_7.6.2.bbappend b/core/recipes-devtools/gdb/gdb_7.6.2.bbappend index e2b4ee7..32da30b 100644 --- a/core/recipes-devtools/gdb/gdb_7.6.2.bbappend +++ b/core/recipes-devtools/gdb/gdb_7.6.2.bbappend @@ -1,4 +1,5 @@ # Disable build of gdbserver because it is # provided by external-sourcery-toolchain -PACKAGES := "${@oe_filter_out('gdbserver', '${PACKAGES}', d)}" -EXTRA_OECONF += "--disable-gdbserver" +PACKAGES := "${@oe_filter_out('gdbserver' if '${TCMODE}'.startswith('external-sourcery') else '$', '${PACKAGES}', d)}" +DISABLE_GDBSERVER := "${@'--disable-gdbserver' if '${TCMODE}'.startswith('external-sourcery') else ''}" +EXTRA_OECONF += "${DISABLE_GDBSERVER}"