OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 ## | 2 ## |
3 ## configure.sh | 3 ## configure.sh |
4 ## | 4 ## |
5 ## This script is sourced by the main configure script and contains | 5 ## This script is sourced by the main configure script and contains |
6 ## utility functions and other common bits that aren't strictly libvpx | 6 ## utility functions and other common bits that aren't strictly libvpx |
7 ## related. | 7 ## related. |
8 ## | 8 ## |
9 ## This build system is based in part on the FFmpeg configure script. | 9 ## This build system is based in part on the FFmpeg configure script. |
10 ## | 10 ## |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 --cpu) | 511 --cpu) |
512 ;; | 512 ;; |
513 --cpu=*) tune_cpu="$optval" | 513 --cpu=*) tune_cpu="$optval" |
514 ;; | 514 ;; |
515 --extra-cflags=*) | 515 --extra-cflags=*) |
516 extra_cflags="${optval}" | 516 extra_cflags="${optval}" |
517 ;; | 517 ;; |
518 --enable-?*|--disable-?*) | 518 --enable-?*|--disable-?*) |
519 eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'` | 519 eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'` |
520 if echo "${ARCH_EXT_LIST}" | grep "^ *$option\$" >/dev/null; then | 520 if echo "${ARCH_EXT_LIST}" | grep "^ *$option\$" >/dev/null; then |
521 [ $action = "disable" ] && RTCD_OPTIONS="${RTCD_OPTIONS}${opt} " | 521 [ $action = "disable" ] && RTCD_OPTIONS="${RTCD_OPTIONS}--disable-${
option} " |
522 elif [ $action = "disable" ] && ! disabled $option ; then | 522 elif [ $action = "disable" ] && ! disabled $option ; then |
523 echo "${CMDLINE_SELECT}" | grep "^ *$option\$" >/dev/null || | 523 echo "${CMDLINE_SELECT}" | grep "^ *$option\$" >/dev/null || |
524 die_unknown $opt | 524 die_unknown $opt |
525 elif [ $action = "enable" ] && ! enabled $option ; then | 525 elif [ $action = "enable" ] && ! enabled $option ; then |
526 echo "${CMDLINE_SELECT}" | grep "^ *$option\$" >/dev/null || | 526 echo "${CMDLINE_SELECT}" | grep "^ *$option\$" >/dev/null || |
527 die_unknown $opt | 527 die_unknown $opt |
528 fi | 528 fi |
529 ${action}_feature $option | 529 ${action}_feature $option |
530 ;; | 530 ;; |
531 --require-?*) | 531 --require-?*) |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 *-solaris-*) | 785 *-solaris-*) |
786 add_extralibs -lposix4 | 786 add_extralibs -lposix4 |
787 ;; | 787 ;; |
788 esac | 788 esac |
789 | 789 |
790 # Process ARM architecture variants | 790 # Process ARM architecture variants |
791 case ${toolchain} in | 791 case ${toolchain} in |
792 arm*) | 792 arm*) |
793 # on arm, isa versions are supersets | 793 # on arm, isa versions are supersets |
794 case ${tgt_isa} in | 794 case ${tgt_isa} in |
| 795 armv8) |
| 796 soft_enable neon |
| 797 ;; |
795 armv7) | 798 armv7) |
796 soft_enable neon | 799 soft_enable neon |
| 800 soft_enable neon_asm |
797 soft_enable media | 801 soft_enable media |
798 soft_enable edsp | 802 soft_enable edsp |
799 soft_enable fast_unaligned | 803 soft_enable fast_unaligned |
800 ;; | 804 ;; |
801 armv6) | 805 armv6) |
802 soft_enable media | 806 soft_enable media |
803 soft_enable edsp | 807 soft_enable edsp |
804 soft_enable fast_unaligned | 808 soft_enable fast_unaligned |
805 ;; | 809 ;; |
806 armv5te) | 810 armv5te) |
(...skipping 17 matching lines...) Expand all Loading... |
824 if [ -z "${float_abi}" ]; then | 828 if [ -z "${float_abi}" ]; then |
825 check_cpp <<EOF && float_abi=hard || float_abi=softfp | 829 check_cpp <<EOF && float_abi=hard || float_abi=softfp |
826 #ifndef __ARM_PCS_VFP | 830 #ifndef __ARM_PCS_VFP |
827 #error "not hardfp" | 831 #error "not hardfp" |
828 #endif | 832 #endif |
829 EOF | 833 EOF |
830 fi | 834 fi |
831 check_add_cflags -march=armv7-a -mfloat-abi=${float_abi} | 835 check_add_cflags -march=armv7-a -mfloat-abi=${float_abi} |
832 check_add_asflags -march=armv7-a -mfloat-abi=${float_abi} | 836 check_add_asflags -march=armv7-a -mfloat-abi=${float_abi} |
833 | 837 |
834 if enabled neon | 838 if enabled neon || enabled neon_asm |
835 then | 839 then |
836 check_add_cflags -mfpu=neon #-ftree-vectorize | 840 check_add_cflags -mfpu=neon #-ftree-vectorize |
837 check_add_asflags -mfpu=neon | 841 check_add_asflags -mfpu=neon |
838 fi | 842 fi |
839 | 843 |
840 if [ -z "${tune_cpu}" ]; then | 844 if [ -z "${tune_cpu}" ]; then |
841 tune_cpu=cortex-a8 | 845 tune_cpu=cortex-a8 |
842 fi | 846 fi |
843 else | 847 else |
844 check_add_cflags -march=${tgt_isa} | 848 check_add_cflags -march=${tgt_isa} |
(...skipping 26 matching lines...) Expand all Loading... |
871 CC=armcc | 875 CC=armcc |
872 AR=armar | 876 AR=armar |
873 AS=armasm | 877 AS=armasm |
874 LD="${source_path}/build/make/armlink_adapter.sh" | 878 LD="${source_path}/build/make/armlink_adapter.sh" |
875 STRIP=arm-none-linux-gnueabi-strip | 879 STRIP=arm-none-linux-gnueabi-strip |
876 NM=arm-none-linux-gnueabi-nm | 880 NM=arm-none-linux-gnueabi-nm |
877 tune_cflags="--cpu=" | 881 tune_cflags="--cpu=" |
878 tune_asflags="--cpu=" | 882 tune_asflags="--cpu=" |
879 if [ -z "${tune_cpu}" ]; then | 883 if [ -z "${tune_cpu}" ]; then |
880 if [ ${tgt_isa} = "armv7" ]; then | 884 if [ ${tgt_isa} = "armv7" ]; then |
881 if enabled neon | 885 if enabled neon || enabled neon_asm |
882 then | 886 then |
883 check_add_cflags --fpu=softvfp+vfpv3 | 887 check_add_cflags --fpu=softvfp+vfpv3 |
884 check_add_asflags --fpu=softvfp+vfpv3 | 888 check_add_asflags --fpu=softvfp+vfpv3 |
885 fi | 889 fi |
886 check_add_cflags --cpu=Cortex-A8 | 890 check_add_cflags --cpu=Cortex-A8 |
887 check_add_asflags --cpu=Cortex-A8 | 891 check_add_asflags --cpu=Cortex-A8 |
888 else | 892 else |
889 check_add_cflags --cpu=${tgt_isa##armv} | 893 check_add_cflags --cpu=${tgt_isa##armv} |
890 check_add_asflags --cpu=${tgt_isa##armv} | 894 check_add_asflags --cpu=${tgt_isa##armv} |
891 fi | 895 fi |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 # Prepare the PWD for building. | 1351 # Prepare the PWD for building. |
1348 for f in ${OOT_INSTALLS}; do | 1352 for f in ${OOT_INSTALLS}; do |
1349 install -D "${source_path}/$f" "$f" | 1353 install -D "${source_path}/$f" "$f" |
1350 done | 1354 done |
1351 fi | 1355 fi |
1352 cp "${source_path}/build/make/Makefile" . | 1356 cp "${source_path}/build/make/Makefile" . |
1353 | 1357 |
1354 clean_temp_files | 1358 clean_temp_files |
1355 true | 1359 true |
1356 } | 1360 } |
OLD | NEW |