scripts: use the hardfloat option to set configure and CFLAGS
authorMichael Hope <michael.hope@linaro.org>
Wed Oct 19 15:27:32 2011 +1300 (2011-10-19)
changeset 2738149c33923f47
parent 2737 b5179235b925
child 2739 f320e22f2cba
scripts: use the hardfloat option to set configure and CFLAGS

When hardfloat is selected, we need to pass that selection down to
./configure and in the CFLAGS.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: split the original patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/functions
     1.1 --- a/scripts/functions	Wed Oct 19 15:27:32 2011 +1300
     1.2 +++ b/scripts/functions	Wed Oct 19 15:27:32 2011 +1300
     1.3 @@ -985,6 +985,10 @@
     1.4      [ "${CT_ARCH_FPU}"      ] && { CT_ARCH_FPU_CFLAG="-mfpu=${CT_ARCH_FPU}";     CT_ARCH_WITH_FPU="--with-fpu=${CT_ARCH_FPU}";    }
     1.5  
     1.6      case "${CT_ARCH_FLOAT}" in
     1.7 +        hard)
     1.8 +            CT_ARCH_FLOAT_CFLAG="-mhard-float"
     1.9 +            CT_ARCH_WITH_FLOAT="--with-float=hard"
    1.10 +            ;;
    1.11          soft)
    1.12              CT_ARCH_FLOAT_CFLAG="-msoft-float"
    1.13              CT_ARCH_WITH_FLOAT="--with-float=soft"