Add support for Linux aarch64 builds
This commit is contained in:
parent
cfd9fde44f
commit
f29d3b5662
35 changed files with 1133 additions and 7 deletions
16
images/base-linuxarm64/toolchain.cmake
Normal file
16
images/base-linuxarm64/toolchain.cmake
Normal file
|
@ -0,0 +1,16 @@
|
|||
set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
||||
|
||||
set(triple aarch64-ffbuild-linux-gnu)
|
||||
|
||||
set(CMAKE_C_COMPILER ${triple}-gcc)
|
||||
set(CMAKE_CXX_COMPILER ${triple}-g++)
|
||||
set(CMAKE_RANLIB ${triple}-ranlib)
|
||||
set(CMAKE_AR ${triple}-ar)
|
||||
|
||||
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
|
||||
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
Loading…
Add table
Add a link
Reference in a new issue