summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-05 08:19:56 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-05 08:19:56 (GMT)
commitdaca7d6672db1c4c03c00b916888eeb176422ede (patch)
treeafc799d974aa50ff44eecfc7030390abce1f0597 /config
parent6a151cfe7443cddfd7bf83d713ca712ff8b5d27a (diff)
config: prepare for build-system backend
When acting as a backend for a build-system, we should not build any application that runs on the target, that is: - no native gdb - no companion libraries - no binutils libraries - no debug tools (save for gdbserver) - ... Here, we simply prepare the (hidden) config option that will detect that we are acting as a back-end. Update doc accordingly.
Diffstat (limited to 'config')
-rw-r--r--config/global/ct-behave.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/global/ct-behave.in b/config/global/ct-behave.in
index 49f76ac..53f4adf 100644
--- a/config/global/ct-behave.in
+++ b/config/global/ct-behave.in
@@ -2,6 +2,15 @@
comment "crosstool-NG behavior"
+config IS_A_BACKEND
+ string
+ option env="CT_IS_A_BACKEND"
+
+config BACKEND
+ bool
+ default y if IS_A_BACKEND = "y" || IS_A_BACKEND = "Y"
+ default n if IS_A_BACKEND != "y" && IS_A_BACKEND != "Y"
+
config OBSOLETE
bool
prompt "Use obsolete features"