summaryrefslogtreecommitdiff
path: root/scripts/build/arch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-14 17:51:20 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-14 17:51:20 (GMT)
commitda09907c00979c8d7219eface847e8dfc24bdafc (patch)
tree13df7def772168eb0e195cf30b2adfa911a59940 /scripts/build/arch
parent76b0fcc433bc82a8a33e3d7acdb267a3094ee1d8 (diff)
arch/sh: use the floating-point string option in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/arch')
-rw-r--r--scripts/build/arch/sh.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/build/arch/sh.sh b/scripts/build/arch/sh.sh
index 3b651e2..3677963 100644
--- a/scripts/build/arch/sh.sh
+++ b/scripts/build/arch/sh.sh
@@ -22,9 +22,14 @@ CT_DoArchTupleValues () {
case "${CT_ARCH_SH_VARIANT}" in
sh3) CT_ARCH_ARCH_CFLAG=-m3;;
sh4*)
- case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
- y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
- ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;
+ # softfp is not possible for SuperH, no need to test for it.
+ case "${CT_ARCH_FLOAT}" in
+ hard)
+ CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}"
+ ;;
+ soft)
+ CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu"
+ ;;
esac
;;
esac