[SDK][CMAKE] config.cmake: Add ARM64 compiler options (#4050)

Add generic compiler options for ARM64.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
This commit is contained in:
Konrad Dybcio 2021-10-20 12:19:27 +02:00 committed by Stanislav Motylkov
parent 3eb4f4d450
commit b5e57a8523
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -10,6 +10,12 @@ elseif(ARCH STREQUAL "arm")
set(SARCH "omap3-zoom2" CACHE STRING set(SARCH "omap3-zoom2" CACHE STRING
"Sub-architecture (board) to build for. Specify one of: "Sub-architecture (board) to build for. Specify one of:
kurobox versatile omap3-zoom2 omap3-beagle") kurobox versatile omap3-zoom2 omap3-beagle")
elseif(ARCH STREQUAL "arm64")
# By design, arm64 kernels and OSes should be intercompatible, but
# due to SoC vendors seemingly not being able to follow ARM design guidelines
# properly, there might be a need for board-specific builds later on...
set(SARCH "" CACHE STRING
"Sub-architecture (board) to build for.")
endif() endif()
if(ARCH STREQUAL "i386") if(ARCH STREQUAL "i386")
@ -24,6 +30,12 @@ elseif(ARCH STREQUAL "arm")
set(OARCH "armv7-a" CACHE STRING set(OARCH "armv7-a" CACHE STRING
"Generate instructions for this CPU type. Specify one of: "Generate instructions for this CPU type. Specify one of:
armv5te armv7-a") armv5te armv7-a")
elseif(ARCH STREQUAL "arm64")
# This should not be bumped unless REALLY needed, because (as of 2021)
# there are still new designs using the original A53 cores w/ armv8.0.
set(OARCH "armv8-a" CACHE STRING
"Generate instructions for this CPU type. Specify one of:
armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a")
endif() endif()
if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64") if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
@ -32,6 +44,9 @@ if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
elseif(ARCH STREQUAL "arm") elseif(ARCH STREQUAL "arm")
set(TUNE "generic-armv7-a" CACHE STRING set(TUNE "generic-armv7-a" CACHE STRING
"Which CPU ReactOS should be optimized for.") "Which CPU ReactOS should be optimized for.")
elseif(ARCH STREQUAL "arm64")
set(TUNE "generic" CACHE STRING
"Which CPU ReactOS should be optimized for.")
endif() endif()
set(OPTIMIZE "4" CACHE STRING set(OPTIMIZE "4" CACHE STRING