diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-01 17:45:28 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-01 17:45:28 (GMT) |
commit | 5a6f29c1d12064eba221809c13175ebf3d327321 (patch) | |
tree | 67de8fc0d2b2cacfa8799a94d83b0725ef314d35 /config/config.mk | |
parent | e5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74 (diff) |
config: do not force setting kernel and arch
In backend mode, only enforce the arch and/or kernel selection if the
upper-layer build system effectively forces the selection.
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}"; \ |