diff options
| author | Mzed3D <100519367+Mzed3D@users.noreply.github.com> | 2022-02-27 14:53:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-27 14:53:56 +0100 |
| commit | 84e0b2a42d522e355bc9a4b77ad14d0c6bc35ce0 (patch) | |
| tree | 886f9f395d69a551c09a2df4a72aa3df3820e0f4 | |
| parent | 4ee2888711bc1f9c41d580602dbb9ca07ac26284 (diff) | |
| download | box64-84e0b2a42d522e355bc9a4b77ad14d0c6bc35ce0.tar.gz box64-84e0b2a42d522e355bc9a4b77ad14d0c6bc35ce0.zip | |
Update CMakeLists.txt
Added Odroid-N2 specific profile
| -rwxr-xr-x | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d9825cb1..9c6b977b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") option(RPI4ARM64 "Set to ON if targeting an RaspberryPI4 device with multiarch arm64 and armhf" ${RPI4ARM64}) option(RK3326 "Set to ON if targeting an Rockchip RK3326 based device" ${RK3326}) option(RK3399 "Set to ON if targeting an Rockchip RK3399 based device" ${RK3399}) +option(ODROIDN2 "Set to ON if targeting an Odroid-N2 device" ${ODROIDN2}) option(TEGRAX1 "Set to ON if targeting an Tegra X1 based device" ${TEGRAX1}) option(PHYTIUM "Set to ON if targeting an Phytium (D2000 or FT2000/4) based device" ${PHYTIUM}) option(SD845 "Set to ON if targeting a Snapragon 845 based device" ${SD845}) @@ -34,7 +35,7 @@ if(PPC64LE) set(NOALIGN OFF CACHE BOOL "") set(ARM_DYNAREC OFF CACHE BOOL "") endif() -if(RK3399 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR LX2160A) +if(RK3399 OR ODROIDN2 RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR LX2160A) set(LD80BITS OFF CACHE BOOL "") set(NOALIGN OFF CACHE BOOL "") set(ARM_DYNAREC ON CACHE BOOL "") @@ -83,6 +84,10 @@ elseif(RK3399) add_definitions(-DRK3399) add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto) set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto") +elseif(ODROIDN2) + add_definitions(-DODROIDN2) + add_definitions(-march=armv8-a+crc+simd+crypto -mcpu=cortex-a73.cortex-a53+crypto) + set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a73.cortex-a53+crypto") elseif(TEGRAX1) add_definitions(-DTEGRAX1) add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto) |