diff options
Diffstat (limited to 'scripts/build/arch/sh.sh')
-rw-r--r-- | scripts/build/arch/sh.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/build/arch/sh.sh b/scripts/build/arch/sh.sh index 3b651e2d..36779639 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 |