mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 02:39:46 +00:00
config: move backend-related options to their own file
This commit is contained in:
parent
eb765a2a46
commit
712f0c9919
33
config/backend.in
Normal file
33
config/backend.in
Normal file
@ -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
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user