diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-10-17 22:21:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-17 22:21:33 +0200 |
| commit | 0e2c63d9fb1c1f1eafbf2bcc7119ff380653a353 (patch) | |
| tree | f1c072ce44be258a3dd66bae3225de8913830c5c | |
| parent | 82bd4431e6f0a43c28bf4d28d49eeee8b52df8c3 (diff) | |
| parent | 71b446774cec0d6f2f8031e3f000dcf829ecb50f (diff) | |
| download | box64-0e2c63d9fb1c1f1eafbf2bcc7119ff380653a353.tar.gz box64-0e2c63d9fb1c1f1eafbf2bcc7119ff380653a353.zip | |
Merge pull request #136 from Heasterian/patch-1
Add Snapdragon 845 compilation
| -rwxr-xr-x | CMakeLists.txt | 7 | ||||
| -rwxr-xr-x | docs/COMPILE.md | 17 |
2 files changed, 23 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 87fbecde..c6ec3c76 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ 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(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(LARCH64 "Set to ON if targeting an Loongarch64 based device" ${LARCH64}) option(USE_CCACHE "Set to ON to use ccache if present in the system" ${USE_CCACHE}) option(HAVE_TRACE "Set to ON to have Trace ability (needs ZydisInfo library)" ${HAVE_TRACE}) @@ -17,7 +18,7 @@ if(LARCH64) set(NOALIGN OFF CACHE BOOL "") set(ARM_DYNAREC OFF CACHE BOOL "") endif() -if(RK3399 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM) +if(RK3399 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845) set(LD80BITS OFF CACHE BOOL "") set(NOALIGN OFF CACHE BOOL "") set(ARM_DYNAREC ON CACHE BOOL "") @@ -74,6 +75,10 @@ elseif(PHYTIUM) add_definitions(-DPHYSIUM) add_definitions(-pipe -march=armv8.1-a+crc+simd+crypto) set(CMAKE_ASM_FLAGS "-pipe -march=armv8.1-a+crc+simd+crypto+aes") +if(SD845) + add_definitions(-DSD845) + add_definitions(-pipe -march=armv8.2-a+simd+crypto -mtune=cortex-a75.cortex-a55) + set(CMAKE_ASM_FLAGS "-pipe -march=armv8.2-a+simd+crypto -mtune=cortex-a75.cortex-a55") elseif(LARCH64) add_definitions(-DLARCH64) add_definitions(-pipe -march=loongarch64) diff --git a/docs/COMPILE.md b/docs/COMPILE.md index e15bebb2..17b3c2a2 100755 --- a/docs/COMPILE.md +++ b/docs/COMPILE.md @@ -47,6 +47,23 @@ If it's the first install, you also need: sudo systemctl restart systemd-binfmt ``` +#### for Snapdragon 845 + +Using a 64bits OS: + +``` +git clone https://github.com/ptitSeb/box64 +cd box64 +mkdir build; cd build; cmake .. -DSD845=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo +make -j4 +sudo make install +``` +If it's the first install, you also need: +``` +sudo systemctl restart systemd-binfmt +``` + + #### for LoongArch Using a 64bits OS: |