summaryrefslogtreecommitdiff
path: root/config/libc/musl.in
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-11-26 13:07:37 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-12-08 18:55:16 (GMT)
commit514f1546d7fe83853c2c2020514e61a90cc26f95 (patch)
tree8d4392866f5c3571df307aaf907dd9da92b5ad07 /config/libc/musl.in
parent4e2227e8a5537a8553c503e55d2cb2190f2a0d2f (diff)
config: Update kconfig for new CT_GetCustom
This commit sort of unifies the kconfigs to handle custom files and directories. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'config/libc/musl.in')
-rw-r--r--config/libc/musl.in42
1 files changed, 36 insertions, 6 deletions
diff --git a/config/libc/musl.in b/config/libc/musl.in
index 8df09df..522478a 100644
--- a/config/libc/musl.in
+++ b/config/libc/musl.in
@@ -12,6 +12,40 @@
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"
@@ -27,11 +61,6 @@ config LIBC_MUSL_V_1_0
bool
prompt "1.0.5 (Stable)"
-config LIBC_MUSL_V_CUSTOM
- bool
- prompt "Custom musl"
- depends on EXPERIMENTAL
-
endchoice
config LIBC_VERSION
@@ -40,4 +69,5 @@ config LIBC_VERSION
# CT_INSERT_VERSION_STRING_BELOW
default "1.1.12" if LIBC_MUSL_V_1_1
default "1.0.5" if LIBC_MUSL_V_1_0
- default "custom" if LIBC_MUSL_V_CUSTOM
+
+endif # ! LIBC_MUSL_CUSTOM