diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-14 18:54:37 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-14 18:54:37 +0100 |
commit | bc94e564de09b519fcd843f0d8949159453b3eec (patch) | |
tree | 444d9c758824d20e2c58c89272ebcfcb3acef9d0 | |
parent | da09907c00979c8d7219eface847e8dfc24bdafc (diff) | |
download | crosstool-ng-bc94e564de09b519fcd843f0d8949159453b3eec.tar.gz crosstool-ng-bc94e564de09b519fcd843f0d8949159453b3eec.tar.bz2 crosstool-ng-bc94e564de09b519fcd843f0d8949159453b3eec.zip |
libc/uClibc: use the floating-point string option in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | config/libc/uClibc.in | 5 | ||||
-rw-r--r-- | scripts/build/libc/uClibc.sh | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index 5687eb83..8ba4a688 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -10,6 +10,11 @@ ## help Highly configurable, thus as feature-rich as you ## help need, without compromising for size. +if ARCH_FLOAT_SOFTFP +comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG" +comment "You may experience issues, although it should work just fine" +endif # ARCH_FLOAT_SOFTFP + choice bool prompt "uClibc version" diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh index 87de6201..795c04fc 100644 --- a/scripts/build/libc/uClibc.sh +++ b/scripts/build/libc/uClibc.sh @@ -352,13 +352,15 @@ mungeuClibcConfig() { # Accomodate for old and new uClibc version, where the # way to select between hard/soft float has changed - case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in - y,) cat <<-ENDSED + case "${CT_ARCH_FLOAT}" in + hard|softfp) + cat <<-ENDSED s/^[^_]*(HAS_FPU).*/\\1=y/ s/.*(UCLIBC_HAS_FPU).*/\\1=y/ ENDSED ;; - ,y) cat <<-ENDSED + soft) + cat <<-ENDSED s/^[^_]*(HAS_FPU).*/\\# \\1 is not set/ s/.*(UCLIBC_HAS_FPU).*/# \\1 is not set/ ENDSED |