-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added AGL CMake toolchain file and modified 3rd party cmake files for…
… cross compiling
- Loading branch information
1 parent
a02ec78
commit ccd14f0
Showing
8 changed files
with
150 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Setup Crosscompiling for AGL(Poky toolchain) on Renesas Rcar M2 | ||
SET(CMAKE_SYSTEM_NAME Linux) | ||
SET(CMAKE SYSTEM_VERSION 1) | ||
|
||
# Setup the cross compiler | ||
SET(CMAKE_C_COMPILER ${CC}) | ||
SET(CMAKE_CXX_COMPILER ${CXX}) | ||
|
||
ADD_DEFINITIONS(-DBLUEZ5) | ||
|
||
SET(CROSS_HOST "arm-agl-linux-gnueabi") | ||
SET(CROSS_APR_VARS | ||
"ac_cv_file__dev_zero=yes" | ||
"ac_cv_func_setpgrp_void=yes" | ||
"apr_cv_tcp_nodelay_with_cork=yes" | ||
"apr_cv_process_shared_works=yes" | ||
"apr_cv_mutex_robust_shared=no" | ||
"ac_cv_sizeof_struct_iovec=8" | ||
"ac_cv_sizeof_long=4" | ||
"apr_cv_mutex_recursive=yes") | ||
|
||
# Setup SysRoot | ||
SET(CMAKE_SYSROOT $ENV{SDKTARGETSYSROOT}) | ||
SET(CMAKE_FIND_ROOT_PATH $ENV{SDKTARGETSYSROOT}) | ||
|
||
#Set searching directories | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters