diff options
-rw-r--r-- | config/backend.in | 15 | ||||
-rw-r--r-- | config/config.in | 2 | ||||
-rw-r--r-- | config/config.mk | 8 |
3 files changed, 7 insertions, 18 deletions
diff --git a/config/backend.in b/config/backend.in index 9151858c..7dcf4e32 100644 --- a/config/backend.in +++ b/config/backend.in @@ -9,25 +9,10 @@ config BACKEND 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 ab71d1a6..f4beffec 100644 --- a/config/config.in +++ b/config/config.in @@ -1,5 +1,4 @@ source "config/backend.in" -if ! BACKEND_ERROR source "config/global.in" source "config/target.in" source "config/toolchain.in" @@ -10,4 +9,3 @@ 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/config.mk b/config/config.mk index 21cb779a..f56ebde6 100644 --- a/config/config.mk +++ b/config/config.mk @@ -91,7 +91,7 @@ define build_gen_choice_in echo " $${dep_val#\# }"; \ fi; \ if [ "$(5)" = "Y" ]; then \ - echo " depends on BACKEND_$(3) = \"$${_entry}\" || ! BACKEND"; \ + echo " depends on $(3)_$${_entry}_AVAILABLE"; \ fi; \ echo ""; \ done; \ @@ -100,6 +100,12 @@ define build_gen_choice_in file="$(4)/$${entry}.in"; \ _entry=$$(echo "$${entry}" |$(sed) -r -s -e 's/[-.+]/_/g;'); \ echo ""; \ + if [ "$(5)" = "Y" ]; then \ + echo "config $(3)_$${_entry}_AVAILABLE"; \ + echo " bool"; \ + echo " default n if ! ( BACKEND_$(3) = \"$${entry}\" || BACKEND_$(3) = \"\" || ! BACKEND )"; \ + echo " default y if BACKEND_$(3) = \"$${entry}\" || BACKEND_$(3) = \"\" || ! BACKEND"; \ + fi; \ echo "if $(3)_$${_entry}"; \ echo "config $(3)"; \ echo " default \"$${entry}\" if $(3)_$${_entry}"; \ |