diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-07-04 08:52:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-04 08:52:54 +0200 |
| commit | c218631c56871a2336f8f94f1c2e17de1053eeff (patch) | |
| tree | 1855dd323f72c3a044e9a1c5d980d1de1dfd9378 | |
| parent | bd600a6135d2ef031a1cc2eeae5e285d12dfcb9e (diff) | |
| parent | 67c80f683e335413efcb3ee4590f671ccdf5aae8 (diff) | |
| download | box64-c218631c56871a2336f8f94f1c2e17de1053eeff.tar.gz box64-c218631c56871a2336f8f94f1c2e17de1053eeff.zip | |
Merge pull request #16 from Heasterian/main
New Tegra X1 compilation target
| -rwxr-xr-x | CMakeLists.txt | 9 | ||||
| -rwxr-xr-x | COMPILE.md | 16 |
2 files changed, 24 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 891f8889..b3fd6952 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,11 +5,12 @@ cmake_policy(SET CMP0065 NEW) 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(TEGRAX1 "Set to ON if targeting an Tegra X1 based device" ${TEGRAX1}) 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}) option(NOLOADADDR "Set to ON to avoid fixing the load address of Box64" OFF) option(NOGIT "Set to ON if not building from a git clone repo (like when building from a zip download from github)" ${NOGIT}) -if(RK3399 OR RPI4ARM64 OR RK3326) +if(RK3399 OR RPI4ARM64 OR RK3326 OR TEGRAX1) set(LD80BITS OFF CACHE BOOL "") set(NOALIGN OFF CACHE BOOL "") set(ARM_DYNAREC ON CACHE BOOL "") @@ -64,6 +65,12 @@ if(RK3399) set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto") endif() +if(TEGRAX1) + add_definitions(-DTEGRAX1) + add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto) + set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto") +endif() + if(NOGIT) add_definitions(-DNOGIT) endif() diff --git a/COMPILE.md b/COMPILE.md index 37014651..1a01ed3b 100755 --- a/COMPILE.md +++ b/COMPILE.md @@ -31,6 +31,22 @@ If it's the first install, you also need: sudo systemctl restart systemd-binfmt ``` +#### for TEGRA X1 + +Using a 64bits OS: + +``` +git clone https://github.com/ptitSeb/box64 +cd box64 +mkdir build; cd build; cmake .. -DTEGRAX1=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 Other ARM64 Linux platforms `mkdir build; cd build; cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo; make -j$(nproc)` |