arch/sh: use the floating-point string option in tests
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Nov 14 18:51:20 2011 +0100 (2011-11-14)
changeset 2760b402a49734a3
parent 2759 d063b1ae8c1b
child 2761 19760eb7a090
arch/sh: use the floating-point string option in tests

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/arch/sh.sh
     1.1 --- a/scripts/build/arch/sh.sh	Thu Nov 17 14:18:44 2011 +0100
     1.2 +++ b/scripts/build/arch/sh.sh	Mon Nov 14 18:51:20 2011 +0100
     1.3 @@ -22,9 +22,14 @@
     1.4      case "${CT_ARCH_SH_VARIANT}" in
     1.5          sh3)    CT_ARCH_ARCH_CFLAG=-m3;;
     1.6          sh4*)
     1.7 -            case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
     1.8 -                y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
     1.9 -                ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;
    1.10 +            # softfp is not possible for SuperH, no need to test for it.
    1.11 +            case "${CT_ARCH_FLOAT}" in
    1.12 +                hard)
    1.13 +                    CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}"
    1.14 +                    ;;
    1.15 +                soft)
    1.16 +                    CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu"
    1.17 +                    ;;
    1.18              esac
    1.19              ;;
    1.20      esac