-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infra] Add RISC-V tizen cmake build config and options (#12355)
This commit adds RISC-V tizen cmake build config and options. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# | ||
# riscv64 tizen cmake options | ||
# |
17 changes: 17 additions & 0 deletions
17
infra/nnfw/cmake/buildtool/config/config_riscv64-tizen.cmake
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,17 @@ | ||
# | ||
# riscv64 tizen compile options | ||
# | ||
|
||
message(STATUS "Building for RISC-V Tizen") | ||
|
||
# Build flag for tizen | ||
set(CMAKE_C_FLAGS_DEBUG "-O -g -DDEBUG") | ||
set(CMAKE_CXX_FLAGS_DEBUG "-O -g -DDEBUG") | ||
|
||
# TODO : add and use option_tizen if something uncommon comes up | ||
# include linux common | ||
include("cmake/buildtool/config/config_linux.cmake") | ||
|
||
# addition for riscv64-tizen | ||
set(FLAGS_COMMON ${FLAGS_COMMON} | ||
) |
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,20 @@ | ||
# | ||
# riscv64 tizen cmake options | ||
# | ||
option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" OFF) | ||
option(BUILD_TENSORFLOW_LITE "Build TensorFlow Lite from the downloaded source" OFF) | ||
option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" OFF) | ||
option(DOWNLOAD_GTEST "Download Google Test source and build Google Test" OFF) | ||
|
||
option(BUILD_LOGGING "Build logging runtime" OFF) | ||
option(GENERATE_RUNTIME_NNAPI_TESTS "Generate NNAPI operation gtest" OFF) | ||
option(ENVVAR_ONERT_CONFIG "Use environment variable for onert configuration" OFF) | ||
|
||
option(BUILD_XNNPACK "Build XNNPACK" OFF) | ||
option(DOWNLOAD_OPENCL_HEADERS "Download opencl headers" OFF) | ||
|
||
option(BUILD_NPUD "Build NPU daemon" OFF) | ||
# Do not allow to use CONFIG option on Tizen | ||
option(ENVVAR_NPUD_CONFIG "Use environment variable for npud configuration" OFF) | ||
|
||
option(BUILD_MINMAX_H5DUMPER "Build minmax h5dumper" OFF) |