File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -1826,6 +1826,16 @@ jobs:
18261826 export PATH=$PATH:$GITHUB_WORKSPACE/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin
18271827 cmake-options : -DWITH_AW=ON
18281828
1829+ - name : 2k0300-fengniao
1830+ single-core : true
1831+ cmake-toolchain : loongarch64-linux-gnu.toolchain.cmake
1832+ setup-toolchain-cmd : |
1833+ wget -q http://ftp.loongnix.cn/toolchain/gcc/release/loongarch/gcc8/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.5.tar.xz
1834+ tar -xf loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.5.tar.xz
1835+ setup-env-cmd : |
1836+ export LOONGARCH64_ROOT_PATH=$GITHUB_WORKSPACE/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.5
1837+ cmake-options : -DCPU_BASELINE='' -DCPU_DISPATCH=''
1838+
18291839 env :
18301840 COMMON_CMAKE_OPTIONS : |
18311841 -DCMAKE_TOOLCHAIN_FILE=../../toolchains/${{ matrix.cmake-toolchain }} \
Original file line number Diff line number Diff line change @@ -399,6 +399,14 @@ https://github.com/nihui/opencv-mobile/releases/latest
399399 </a >
400400</td >
401401<td >
402+ <a href =" https://www.loongson.cn/news/show?id=673 " >
403+ <img alt="2k0300-fengniao" src="https://github.com/user-attachments/assets/3ff9048d-a2b7-46a4-8534-e8bf5b85a2e1" width="auto" height="120">
404+ <br /><b>2k0300-fengniao</b>
405+ </a >
406+ <br />loongarch64-linux-gnu<br />
407+ <a href =" https://github.com/nihui/opencv-mobile/releases/latest/download/opencv-mobile-4.10.0-2k0300-fengniao.zip " >
408+ <img alt="opencv4-2k0300-fengniao" src="https://img.shields.io/badge/download-4.10.0-blue?style=for-the-badge">
409+ </a >
402410</td >
403411</tr >
404412
Original file line number Diff line number Diff line change 1+ set (CMAKE_SYSTEM_NAME Linux)
2+ set (CMAKE_SYSTEM_PROCESSOR loongarch64)
3+
4+ if (DEFINED ENV{LOONGARCH64_ROOT_PATH})
5+ file (TO_CMAKE_PATH $ENV{LOONGARCH64_ROOT_PATH} LOONGARCH64_ROOT_PATH)
6+ else ()
7+ message (FATAL_ERROR "LOONGARCH64_ROOT_PATH env must be defined" )
8+ endif ()
9+
10+ set (LOONGARCH64_ROOT_PATH ${LOONGARCH64_ROOT_PATH} CACHE STRING "root path to loongarch64 toolchain" )
11+
12+ set (CMAKE_C_COMPILER "${LOONGARCH64_ROOT_PATH} /bin/loongarch64-linux-gnu-gcc" )
13+ set (CMAKE_CXX_COMPILER "${LOONGARCH64_ROOT_PATH} /bin/loongarch64-linux-gnu-g++" )
14+
15+ set (CMAKE_FIND_ROOT_PATH "${LOONGARCH64_ROOT_PATH} /loongarch64-linux-gnu" )
16+
17+ set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
18+ set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
19+ set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
20+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
21+
22+ set (CMAKE_C_FLAGS "-march=loongarch64" )
23+ set (CMAKE_CXX_FLAGS "-march=loongarch64" )
24+
25+ # cache flags
26+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} " CACHE STRING "c flags" )
27+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " CACHE STRING "c++ flags" )
You can’t perform that action at this time.
0 commit comments