diff options
| author | Sophon <wuxilin123@gmail.com> | 2023-10-05 14:09:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-05 08:09:17 +0200 |
| commit | 072311b2565f44b402c7c8fe662000ee9cf34512 (patch) | |
| tree | 399fd43dd6c04a8dd32035bdfa7eb82f2077fa59 | |
| parent | c904a9af1ca653443988ee698dec4670d4b32f88 (diff) | |
| download | box64-072311b2565f44b402c7c8fe662000ee9cf34512.tar.gz box64-072311b2565f44b402c7c8fe662000ee9cf34512.zip | |
Added Snapdragon 8 Gen 2 profile (#1009)
Compilation works with GCC 12.1.0 Tested on AYN Odin 2 with mainline Linux 6.6.0-rc3-next-20230929 Signed-off-by: Xilin Wu <wuxilin123@gmail.com>
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fb0ddf8c..a0d7ed3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ 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}) option(SD888 "Set to ON if targeting a Snapragon 888 based device" ${SD888}) +option(SD8G2 "Set to ON if targeting a Snapragon 8 Gen 2 based device" ${SD8G2}) option(ADLINK "Set to ON if targeting an ADLink AmpereAltra based device" ${ADLINK}) option(M1 "Set to ON if targeting a AppleM1 running on Asahi computer" ${M1}) option(LARCH64 "Set to ON if targeting an Loongarch64 based device" ${LARCH64}) @@ -51,13 +52,13 @@ if(PPC64LE) set(RV64_DYNAREC OFF CACHE BOOL "") set(PAGE16K OFF CACHE BOOL "") endif() -if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR SD888 OR LX2160A OR M1 OR ARM64 OR ADLINK) +if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR SD888 OR SD8G2 OR LX2160A OR M1 OR ARM64 OR ADLINK) set(LD80BITS OFF CACHE BOOL "") set(NOALIGN OFF CACHE BOOL "") set(ARM_DYNAREC ON CACHE BOOL "") set(RV64_DYNAREC OFF CACHE BOOL "") endif() -if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR SD888 OR LX2160A OR ADLINK) +if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR SD888 OR SD8G2 OR LX2160A OR ADLINK) set(PAGE16K OFF CACHE BOOL "") endif() if(RK3399 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64) @@ -159,7 +160,11 @@ elseif(SD845) elseif(SD888) add_definitions(-DSD888) add_definitions(-pipe -march=armv8.4-a+simd+crypto) - set(CMAKE_ASM_FLAGS "-pipe -march=armv8.4-a++simd+crypto") + set(CMAKE_ASM_FLAGS "-pipe -march=armv8.4-a+simd+crypto") +elseif(SD8G2) + add_definitions(-DSD8G2) + add_definitions(-pipe -march=armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2) + set(CMAKE_ASM_FLAGS "-pipe -march=armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2") elseif(ADLINK) add_definitions(-DADLINK) add_definitions(-pipe -mcpu=neoverse-n1 -fuse-ld=gold -fuse-linker-plugin) |