diff options
Diffstat (limited to 'config/config.mk')
-rw-r--r-- | config/config.mk | 8 |
1 files changed, 7 insertions, 1 deletions
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}"; \ |