diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-10-19 15:27:32 +1300 |
---|---|---|
committer | Michael Hope <michael.hope@linaro.org> | 2011-10-19 15:27:32 +1300 |
commit | 28e54116c34116cbecae0533366bce6b2b55f96e (patch) | |
tree | c0dd6c25133616596472f9becef23257aaf353a4 /scripts/build/libc | |
parent | acf31bf88597033760c26da58c328872f46d65cc (diff) | |
download | crosstool-ng-28e54116c34116cbecae0533366bce6b2b55f96e.tar.gz crosstool-ng-28e54116c34116cbecae0533366bce6b2b55f96e.tar.bz2 crosstool-ng-28e54116c34116cbecae0533366bce6b2b55f96e.zip |
scripts: introduce float type as a string
With the upcoming softfp support, the case..esac test would become
a bit convoluted if it were to test three different booleans.
Introduce a new blind string config option that defaults to the
selected floating point type used.
Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: split the original patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc-eglibc.sh-common | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index 2af3a9a7..d306fd06 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -132,9 +132,9 @@ do_libc_backend() { *) extra_config+=("--disable-shared");; esac - case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in - y,) extra_config+=("--with-fp");; - ,y) extra_config+=("--without-fp");; + case "${CT_ARCH_FLOAT}" in + hard) extra_config+=("--with-fp");; + soft) extra_config+=("--without-fp");; esac if [ "${CT_LIBC_DISABLE_VERSIONING}" = "y" ]; then |