Skip to content

Commit

Permalink
[infra] Add RISC-V tizen cmake build config and options (#12355)
Browse files Browse the repository at this point in the history
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
hseok-oh authored Dec 26, 2023
1 parent 08b7187 commit ef72693
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/nncc/cmake/options/options_riscv64-tizen.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#
# riscv64 tizen cmake options
#
17 changes: 17 additions & 0 deletions infra/nnfw/cmake/buildtool/config/config_riscv64-tizen.cmake
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}
)
20 changes: 20 additions & 0 deletions infra/nnfw/cmake/options/options_riscv64-tizen.cmake
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)

0 comments on commit ef72693

Please sign in to comment.