about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-09-25 19:33:33 +0800
committerptitSeb <sebastien.chev@gmail.com>2023-09-25 19:33:33 +0800
commitd95ef48d2281478e6d5e353a644b73f12812832c (patch)
treee5f9cc4659cdf8cee408adfb6b63dc4c52c64a8f
parentb59ce0b95b4b7a63c5ecd9577e0ac7f4e4cbdf6b (diff)
downloadbox64-d95ef48d2281478e6d5e353a644b73f12812832c.tar.gz
box64-d95ef48d2281478e6d5e353a644b73f12812832c.zip
Added ADLink AmpereAltra profile
-rw-r--r--.github/workflows/manual.yml2
-rw-r--r--.github/workflows/release.yml2
-rw-r--r--CMakeLists.txt9
-rw-r--r--README.md2
-rw-r--r--docs/COMPILE.md17
5 files changed, 27 insertions, 5 deletions
diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml
index 5009c0f6..00f9cef3 100644
--- a/.github/workflows/manual.yml
+++ b/.github/workflows/manual.yml
@@ -18,6 +18,8 @@ on:
         - RK3588
         - RPI4ARM64
         - SD845
+        - SD888
+        - ADLINK
         - TEGRAX1
         - ARM64
       build_type:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 016cb4f5..85175159 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -27,7 +27,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        platform: [X64, OTHER_ARM, RISCV, RPI4ARM64, RK3326, RK3399, RK3588, PHYTIUM, SD845, ARM64, ANDROID]
+        platform: [X64, OTHER_ARM, RISCV, RPI4ARM64, RK3326, RK3399, RK3588, PHYTIUM, SD845, SD888, ADLINK, ARM64, ANDROID]
         type: [Release, Trace]
         os: [ubuntu-latest]
         include:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c20eb14..aa280fc1 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(ADLINK "Set to ON if targeting a 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})
 option(RV64 "Set to ON if targeting an RISC-V RV64GC based device" ${RV64})
@@ -49,13 +50,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)
+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)
     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)
+if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RK3326 OR TEGRAX1 OR PHYTIUM OR SD845 OR SD888 OR LX2160A OR ADLINK)
     set(PAGE16K OFF CACHE BOOL "")
 endif()
 if(RK3588)
@@ -155,6 +156,10 @@ elseif(SD888)
     add_definitions(-DSD888)
     add_definitions(-pipe -march=armv8.4-a+crypto)
     set(CMAKE_ASM_FLAGS  "-pipe -march=armv8.4-a+crypto")
+elseif(ADLINK)
+    add_definitions(-DADLINK)
+    add_definitions(-pipe -mcpu=neoverse-n1)
+    set(CMAKE_ASM_FLAGS  "-pipe -mcpu=neoverse-n1")
 elseif(M1)
     add_definitions(-DM1)
     add_definitions(-pipe -march=armv8.5-a+simd+crypto)
diff --git a/README.md b/README.md
index 93a0a40b..69e50064 100644
--- a/README.md
+++ b/README.md
@@ -115,7 +115,7 @@ So, in no particular order, I want to thank:
  * For their major financial contribution: FlyingFathead, stormchaser3000, dennis1248, sll00, [libre-computer-project](https://libre.computer/)

  * For hardware contribution and LoongArch migration: [xiaoji](https://www.linuxgame.cn/), Deepin Beijing Develop Team

  * For their major code contribution on the RV64 Dynarec: ksco, xctan

- * For their hardware contribution: [Radxa](https://rockpi.org/), [Pine64](https://www.pine64.org/), [StarFive](https://rvspace.org/)

+ * For their hardware contribution: [ADLink](https://www.adlinktech.com/Products/Computer_on_Modules/COM-HPC-Server-Carrier-and-Starter-Kit/Ampere_Altra_Developer_Platform?lang=en), [Radxa](https://rockpi.org/), [StarFive](https://rvspace.org/), [Pine64](https://www.pine64.org/)

  * For their continous advertisement of box64 project: salva ([microLinux](https://www.youtube.com/channel/UCwFQAEj1lp3out4n7BeBatQ)), [PILab](https://www.youtube.com/channel/UCgfQjdc5RceRlTGfuthBs7g)/[TwisterOS](https://twisteros.com/) team, [The Byteman](https://www.youtube.com/channel/UCEr8lpIJ3B5Ctc5BvcOHSnA), [NicoD](https://www.youtube.com/channel/UCpv7NFr0-9AB5xoklh3Snhg), ekianjo ([Boilingsteam](https://boilingsteam.com/))

 

 And I also thank the many other people who participated even once in this project.

diff --git a/docs/COMPILE.md b/docs/COMPILE.md
index a14292c4..7a48006d 100644
--- a/docs/COMPILE.md
+++ b/docs/COMPILE.md
@@ -96,7 +96,7 @@ Using a 64bit OS:
 -D ODROIDN2=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo

 ```

 

-#### for Snapdragon 845

+#### for Snapdragon

 

 Using a 64bit OS:

 

@@ -104,6 +104,14 @@ Using a 64bit OS:
 -D SD845=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo

 ```

 

+or

+

+```

+-D SD888=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo

+```

+

+Depending how recent your Snapdragon is

+

 #### for Phytium

 

 Using a 64bit OS:

@@ -111,6 +119,13 @@ Using a 64bit OS:
 -D PHYTIUM=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo

 ```

 

+#### for ADLink machines

+

+Using a 64bit OS:

+```

+-D ADLINK=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo

+```

+

 #### for a generic ARM64 machine

 

 Using a 64bit OS: