From da09907c00979c8d7219eface847e8dfc24bdafc Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 14 Nov 2011 18:51:20 +0100 Subject: arch/sh: use the floating-point string option in tests Signed-off-by: "Yann E. MORIN" 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 -- cgit v0.10.2-6-g49f6