crosstool-ng/config/libc/musl.in
Alexey Neyman 08d91d41f3 musl: config is broken for !EXPERIMENTAL
If EXPERIMENTAL is not set, the only choice for version is the set of
released versions - currently, 1.1.14. But this only option is disabled
because it is also marked EXPERIMENTAL; this leaves no available choices
in the configuration.

Marking MUSL as experimental: it seems to have header issues which
prevent, for example, gdbserver from building. musl copied chunks of
ptrace.h code from the kernel into its own headers, which now clash with
Linux kernel headers. Manifests at least on SH4 target.

Also, musl breaks in powerpc builds: GCC balks at it with "unsupported
DEFAULT_LIBC" message. Also, 64-bit powerpc and mips are not supported.
So, until someone figures out the dependencies for musl in config/, mark
it experimental.

Signed-off-by: Alexey Neyman <stilor@att.net>
2016-06-09 17:12:49 -07:00

70 lines
1.6 KiB
Plaintext

# musl options
## depends on ! WINDOWS && ! BARE_METAL
## depends on EXPERIMENTAL
##
## select LIBC_SUPPORT_THREADS_NATIVE
## select CC_CORE_PASSES_NEEDED
##
## help Musl is a new standard library to power a new generation of Linux-based
## help devices. musl is lightweight, fast, simple, free, and strives to be
## help correct in the sense of standards-conformance and safety.
config THREADS
default "musl"
config LIBC_MUSL_CUSTOM
bool
prompt "Custom musl"
depends on EXPERIMENTAL
help
The choosen musl-libc version shall be not downloaded. Instead use
a custom location to get the source.
if LIBC_MUSL_CUSTOM
config LIBC_MUSL_CUSTOM_LOCATION
string
prompt "Full path to custom musl-libc source"
help
Enter the path to the directory or tarball of your source for musl.
If the path is a tarball, it should extract to: <name>-<version>/
where the name is this component, musl, and the version is set
below in the custom version string.
config LIBC_MUSL_CUSTOM_VERSION
string
prompt "Custom MUSL version"
help
Enter the version number for your custom musl-libc.
config LIBC_VERSION
string
default LIBC_MUSL_CUSTOM_VERSION
endif # LIBC_MUSL_CUSTOM
if ! LIBC_MUSL_CUSTOM
choice
bool
prompt "musl version"
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config LIBC_MUSL_V_1_1
bool
prompt "1.1.14 (Mainline)"
depends on EXPERIMENTAL
endchoice
config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "1.1.14" if LIBC_MUSL_V_1_1
endif # ! LIBC_MUSL_CUSTOM