summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-29 18:15:25 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-29 18:15:25 (GMT)
commit712f0c9919a43cac22ef0bfa8f0cb07f24e810db (patch)
tree2e0a9c17fed9391b240d369cef5f4817c356c6dd /config
parenteb765a2a46fea273e582cb26720344e8e3e617a9 (diff)
config: move backend-related options to their own file
Diffstat (limited to 'config')
-rw-r--r--config/backend.in33
-rw-r--r--config/config.in3
-rw-r--r--config/global/ct-behave.in25
3 files changed, 36 insertions, 25 deletions
diff --git a/config/backend.in b/config/backend.in
new file mode 100644
index 0000000..9151858
--- /dev/null
+++ b/config/backend.in
@@ -0,0 +1,33 @@
+# Options specific to crosstool-NG acting as a backend
+
+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 BACKEND_ERROR
+ bool
+
+config BACKEND_ARCH
+ string
+ option env="CT_BACKEND_ARCH"
+
+if BACKEND && BACKEND_ARCH = ""
+comment "ERROR !!! Backend architecture is NOT set !"
+config BACKEND_ERROR
+ default y
+endif
+
+config BACKEND_KERNEL
+ string
+ option env="CT_BACKEND_KERNEL"
+
+if BACKEND && BACKEND_KERNEL = ""
+comment "ERROR !!! Backend kernel is NOT set !"
+config BACKEND_ERROR
+ default y
+endif
diff --git a/config/config.in b/config/config.in
index d7f3bc7..a013f94 100644
--- a/config/config.in
+++ b/config/config.in
@@ -1,3 +1,5 @@
+source config/backend.in
+if ! BACKEND_ERROR
source config/global.in
source config/target.in
source config/toolchain.in
@@ -8,3 +10,4 @@ source config/libc.in
source config/debug.in
source config/companion_libs.in
source config/companion_tools.in
+endif # ! BACKEND_ERROR
diff --git a/config/global/ct-behave.in b/config/global/ct-behave.in
index 45da2b8..4c763c3 100644
--- a/config/global/ct-behave.in
+++ b/config/global/ct-behave.in
@@ -2,31 +2,6 @@
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 BACKEND_ARCH
- string
- option env="CT_BACKEND_ARCH"
-
-if BACKEND && BACKEND_ARCH = ""
-comment "ERROR !!! Backend architecture is NOT set !"
-endif
-
-config BACKEND_KERNEL
- string
- option env="CT_BACKEND_KERNEL"
-
-if BACKEND && BACKEND_KERNEL = ""
-comment "ERROR !!! Backend kernel is NOT set !"
-endif
-
config OBSOLETE
bool
prompt "Use obsolete features"