1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/config/backend.in Mon Mar 29 20:15:25 2010 +0200
1.3 @@ -0,0 +1,33 @@
1.4 +# Options specific to crosstool-NG acting as a backend
1.5 +
1.6 +config IS_A_BACKEND
1.7 + string
1.8 + option env="CT_IS_A_BACKEND"
1.9 +
1.10 +config BACKEND
1.11 + bool
1.12 + default y if IS_A_BACKEND = "y" || IS_A_BACKEND = "Y"
1.13 + default n if IS_A_BACKEND != "y" && IS_A_BACKEND != "Y"
1.14 +
1.15 +config BACKEND_ERROR
1.16 + bool
1.17 +
1.18 +config BACKEND_ARCH
1.19 + string
1.20 + option env="CT_BACKEND_ARCH"
1.21 +
1.22 +if BACKEND && BACKEND_ARCH = ""
1.23 +comment "ERROR !!! Backend architecture is NOT set !"
1.24 +config BACKEND_ERROR
1.25 + default y
1.26 +endif
1.27 +
1.28 +config BACKEND_KERNEL
1.29 + string
1.30 + option env="CT_BACKEND_KERNEL"
1.31 +
1.32 +if BACKEND && BACKEND_KERNEL = ""
1.33 +comment "ERROR !!! Backend kernel is NOT set !"
1.34 +config BACKEND_ERROR
1.35 + default y
1.36 +endif
2.1 --- a/config/config.in Mon Mar 29 12:06:58 2010 +0200
2.2 +++ b/config/config.in Mon Mar 29 20:15:25 2010 +0200
2.3 @@ -1,3 +1,5 @@
2.4 +source config/backend.in
2.5 +if ! BACKEND_ERROR
2.6 source config/global.in
2.7 source config/target.in
2.8 source config/toolchain.in
2.9 @@ -8,3 +10,4 @@
2.10 source config/debug.in
2.11 source config/companion_libs.in
2.12 source config/companion_tools.in
2.13 +endif # ! BACKEND_ERROR
3.1 --- a/config/global/ct-behave.in Mon Mar 29 12:06:58 2010 +0200
3.2 +++ b/config/global/ct-behave.in Mon Mar 29 20:15:25 2010 +0200
3.3 @@ -2,31 +2,6 @@
3.4
3.5 comment "crosstool-NG behavior"
3.6
3.7 -config IS_A_BACKEND
3.8 - string
3.9 - option env="CT_IS_A_BACKEND"
3.10 -
3.11 -config BACKEND
3.12 - bool
3.13 - default y if IS_A_BACKEND = "y" || IS_A_BACKEND = "Y"
3.14 - default n if IS_A_BACKEND != "y" && IS_A_BACKEND != "Y"
3.15 -
3.16 -config BACKEND_ARCH
3.17 - string
3.18 - option env="CT_BACKEND_ARCH"
3.19 -
3.20 -if BACKEND && BACKEND_ARCH = ""
3.21 -comment "ERROR !!! Backend architecture is NOT set !"
3.22 -endif
3.23 -
3.24 -config BACKEND_KERNEL
3.25 - string
3.26 - option env="CT_BACKEND_KERNEL"
3.27 -
3.28 -if BACKEND && BACKEND_KERNEL = ""
3.29 -comment "ERROR !!! Backend kernel is NOT set !"
3.30 -endif
3.31 -
3.32 config OBSOLETE
3.33 bool
3.34 prompt "Use obsolete features"