mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-16 15:28:55 +00:00
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.
This commit is contained in:
parent
e5a007415a
commit
5a6f29c1d1
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}"; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user