[x265] [PATCH] arm: added support for armv7l arch
dnyaneshwar at multicorewareinc.com
dnyaneshwar at multicorewareinc.com
Fri Feb 5 10:46:17 CET 2016
# HG changeset patch
# User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
# Date 1454665437 -19800
# Fri Feb 05 15:13:57 2016 +0530
# Node ID 023e6051c4c63ab1633b2de0e8f37e6158796288
# Parent a2ff6747eaf7b25102f27f808cf5526f441df488
arm: added support for armv7l arch
diff -r a2ff6747eaf7 -r 023e6051c4c6 source/CMakeLists.txt
--- a/source/CMakeLists.txt Tue Feb 02 16:29:04 2016 +0530
+++ b/source/CMakeLists.txt Fri Feb 05 15:13:57 2016 +0530
@@ -41,7 +41,9 @@
# System architecture detection
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
set(X86_ALIASES x86 i386 i686 x86_64 amd64)
+set(ARM_ALIASES armv6l armv7l)
list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
+list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH)
set(POWER_ALIASES ppc64 ppc64le)
list(FIND POWER_ALIASES "${SYSPROC}" POWERMATCH)
if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
@@ -58,7 +60,7 @@
message(STATUS "Detected POWER target processor")
set(POWER 1)
add_definitions(-DX265_ARCH_POWER=1)
-elseif(${SYSPROC} STREQUAL "armv6l")
+elseif(ARMMATCH GREATER "-1")
if(CROSS_COMPILE_ARM)
message(STATUS "Cross compiling for ARM arch")
else()
@@ -182,10 +184,10 @@
add_definitions(-march=i686)
endif()
if(ARM AND CROSS_COMPILE_ARM)
- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp)
+ set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm)
add_definitions(${ARM_ARGS})
elseif(ARM)
- set(ARM_ARGS -march=armv6 -mfloat-abi=hard -mfpu=vfp)
+ set(ARM_ARGS -march=armv6 -mfloat-abi=hard -mfpu=vfp -marm)
add_definitions(${ARM_ARGS})
endif()
if(FPROFILE_GENERATE)
More information about the x265-devel
mailing list