Revision 6fec122a configure

View differences:

configure
1041 1041
vis_deps="sparc"
1042 1042

  
1043 1043
need_memalign="altivec neon sse"
1044
inline_asm_deps="!tms470"
1044 1045

  
1045 1046
# decoders / encoders / hardware accelerators
1046 1047
aac_decoder_select="fft mdct"
......
1505 1506
        die "Error creating armcc configuration file."
1506 1507
    cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc"
1507 1508
    as_default="${cross_prefix}gcc"
1509
elif $cc -version 2>/dev/null | grep -q TMS470; then
1510
    cc_type=tms470
1511
    cc="$cc --gcc --abi=eabi -eo=.o -mc -me"
1512
    CC_O='-fr=$(@D)'
1513
    as_default="${cross_prefix}gcc"
1514
    ld_default="${cross_prefix}gcc"
1515
    dep_cc_default="${cross_prefix}gcc"
1516
    TMPO=$(basename $TMPC .c).o
1517
    append TMPFILES $TMPO
1518
    add_cflags -D__gnuc_va_list=va_list -D__USER_LABEL_PREFIX__=
1519
    DEPFLAGS='$(CPPFLAGS) -MM'
1520
    filter_cflags=tms470_flags
1521
    tms470_flags(){
1522
        for flag; do
1523
            case $flag in
1524
                -march=*|-mcpu=*)
1525
                    case "${flag#*=}" in
1526
                        armv7-a|cortex-a*)      echo -mv=7a8 ;;
1527
                        armv7-r|cortex-r*)      echo -mv=7r4 ;;
1528
                        armv7-m|cortex-m*)      echo -mv=7m3 ;;
1529
                        armv6*|arm11*)          echo -mv=6   ;;
1530
                        armv5*e|arm[79]*e*|arm9[24]6*|arm96*|arm102[26])
1531
                                                echo -mv=5e  ;;
1532
                        armv4*|arm7*|arm9[24]*) echo -mv=4   ;;
1533
                    esac
1534
                    ;;
1535
                -mfpu=neon)     echo --float_support=vfpv3 --neon ;;
1536
                -mfpu=vfp)      echo --float_support=vfpv2        ;;
1537
                -mfpu=softvfp)  echo --float_support=vfplib       ;;
1538
                -Os)            echo -O3 -mf=2                    ;;
1539
                -O[0-3])        echo $flag -mf=5                  ;;
1540
                -g)             echo -g -mn                       ;;
1541
            esac
1542
        done
1543
    }
1508 1544
fi
1509 1545

  
1510 1546
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
......
1523 1559
            add_cppflags --sysroot="$sysroot"
1524 1560
            add_ldflags --sysroot="$sysroot"
1525 1561
        ;;
1562
        tms470)
1563
            add_cppflags -I"$sysinclude"
1564
            add_ldflags  --sysroot="$sysroot"
1565
        ;;
1526 1566
    esac
1527 1567
fi
1528 1568

  

Also available in: Unified diff