diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-26 05:07:37 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-12-08 10:55:16 -0800 |
commit | 514f1546d7fe83853c2c2020514e61a90cc26f95 (patch) | |
tree | 8d4392866f5c3571df307aaf907dd9da92b5ad07 /config/libc/musl.in | |
parent | 4e2227e8a5537a8553c503e55d2cb2190f2a0d2f (diff) | |
download | crosstool-ng-514f1546d7fe83853c2c2020514e61a90cc26f95.tar.gz crosstool-ng-514f1546d7fe83853c2c2020514e61a90cc26f95.tar.bz2 crosstool-ng-514f1546d7fe83853c2c2020514e61a90cc26f95.zip |
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.in | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/config/libc/musl.in b/config/libc/musl.in index 8df09df1..522478a8 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 |