0003-configure-armv8.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Fix aarch64 compile by adding HAVE_ARMV8 define
  2. Fixes build errors seen on the buildroot autobuilders:
  3. http://autobuild.buildroot.net/results/5f8/5f85c32eb89aac48ae8da892d9800bd13274cd3e/build-end.log
  4. libavutil/aarch64/cpu.c: In function 'ff_get_cpu_flags_aarch64':
  5. libavutil/aarch64/cpu.c:25:32: error: 'HAVE_ARMV8' undeclared (first use in this function)
  6. return AV_CPU_FLAG_ARMV8 * HAVE_ARMV8 |
  7. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  8. (patch sent upstream:
  9. http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2016-May/073496.html)
  10. Index: configure
  11. ===================================================================
  12. --- a/configure (revision 37871)
  13. +++ b/configure (working copy)
  14. @@ -1445,6 +1445,8 @@
  15. --disable-armv6) _armv6=no ;;
  16. --enable-armv6t2) _armv6t2=yes ;;
  17. --disable-armv6t2) _armv6t2=no ;;
  18. + --enable-armv8) _armv8=yes ;;
  19. + --disable-armv8) _armv8=no ;;
  20. --enable-armvfp) _armvfp=yes ;;
  21. --disable-armvfp) _armvfp=no ;;
  22. --enable-vfpv3) vfpv3=yes ;;
  23. @@ -3261,7 +3263,7 @@
  24. echores "$_iwmmxt"
  25. fi
  26. -cpuexts_all='ALTIVEC XOP AVX AVX2 FMA3 FMA4 MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 SETEND NEON IWMMXT MMI VIS MVI'
  27. +cpuexts_all='ALTIVEC XOP AVX AVX2 FMA3 FMA4 MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 ARMV8 VFP VFPV3 SETEND NEON IWMMXT MMI VIS MVI'
  28. test "$_altivec" = yes && cpuexts="ALTIVEC $cpuexts"
  29. test "$_mmx" = yes && cpuexts="MMX $cpuexts"
  30. test "$_mmxext" = yes && cpuexts="MMX2 $cpuexts"
  31. @@ -3285,6 +3287,7 @@
  32. test "$_armv5te" = yes && cpuexts="ARMV5TE $cpuexts"
  33. test "$_armv6" = yes && cpuexts="ARMV6 $cpuexts"
  34. test "$_armv6t2" = yes && cpuexts="ARMV6T2 $cpuexts"
  35. +test "$_armv8" = yes && cpuexts="ARMV8 $cpuexts"
  36. test "$_armvfp" = yes && cpuexts="VFP $cpuexts"
  37. test "$vfpv3" = yes && cpuexts="VFPV3 $cpuexts"
  38. test "$setend" = yes && cpuexts="SETEND $cpuexts"