summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/backend.in15
-rw-r--r--config/config.in2
-rw-r--r--config/config.mk8
3 files changed, 7 insertions, 18 deletions
diff --git a/config/backend.in b/config/backend.in
index 9151858..7dcf4e3 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 ab71d1a..f4beffe 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 21cb779..f56ebde 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}"; \