# HG changeset patch # User "Yann E. MORIN" # Date 1269886525 -7200 # Node ID 619a87a015623b3e3c0ea414064ec37f5909d191 # Parent 89f16f038b9213a212a063880524d5ebcdf669f1 config: move backend-related options to their own file diff -r 89f16f038b92 -r 619a87a01562 config/backend.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/backend.in Mon Mar 29 20:15:25 2010 +0200 @@ -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 -r 89f16f038b92 -r 619a87a01562 config/config.in --- a/config/config.in Mon Mar 29 12:06:58 2010 +0200 +++ b/config/config.in Mon Mar 29 20:15:25 2010 +0200 @@ -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/debug.in source config/companion_libs.in source config/companion_tools.in +endif # ! BACKEND_ERROR diff -r 89f16f038b92 -r 619a87a01562 config/global/ct-behave.in --- a/config/global/ct-behave.in Mon Mar 29 12:06:58 2010 +0200 +++ b/config/global/ct-behave.in Mon Mar 29 20:15:25 2010 +0200 @@ -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"