Mod aaa-12 更新CMake交叉编译配置
RCA: SOL: 修改人:huangxin 检视人:huangxin
This commit is contained in:
parent
1d76282902
commit
efc55b6560
|
@ -17,15 +17,18 @@ if(PLAT_ARM64)
|
||||||
SET(CMAKE_SYSTEM_NAME Linux)
|
SET(CMAKE_SYSTEM_NAME Linux)
|
||||||
#this one not so much
|
#this one not so much
|
||||||
SET(CMAKE_SYSTEM_VERSION 1)
|
SET(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
# this is install root directory
|
||||||
|
SET(CMAKE_INSTALL_PREFIX /usr)
|
||||||
|
|
||||||
# specify the cross compiler
|
# specify the cross compiler
|
||||||
SET(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
|
SET(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
|
||||||
SET(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
|
SET(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
|
||||||
SET(CMAKE_STRIP aarch64-fsl-linux-strip)
|
SET(CMAKE_STRIP aarch64-linux-gnu-strip)
|
||||||
|
|
||||||
# specify the cross compile and link flags
|
# specify the cross compile and link flags
|
||||||
# set(CMAKE_C_FLAGS "--sysroot=$ENV{SDKTARGETSYSROOT}")
|
set(CMAKE_C_FLAGS "--sysroot=$ENV{SDKTARGETSYSROOT}")
|
||||||
# set(CMAKE_SHARED_LINKER_FLAGS "--sysroot=$ENV{SDKTARGETSYSROOT}")
|
set(CMAKE_SHARED_LINKER_FLAGS "--sysroot=$ENV{SDKTARGETSYSROOT}")
|
||||||
|
SET(CMAKE_LIBRARY_PATH $ENV{SDKTARGETSYSROOT}/usr/lib)
|
||||||
|
|
||||||
# where is the target environment
|
# where is the target environment
|
||||||
SET(CMAKE_FIND_ROOT_PATH ${SDKTARGETSYSROOT})
|
SET(CMAKE_FIND_ROOT_PATH ${SDKTARGETSYSROOT})
|
||||||
|
|
Loading…
Reference in New Issue