From ef72693917f4501dbf61e8c0a382d29df1ccbd35 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Tue, 26 Dec 2023 17:44:04 +0900 Subject: [PATCH] [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 --- .../cmake/options/options_riscv64-tizen.cmake | 3 +++ .../config/config_riscv64-tizen.cmake | 17 ++++++++++++++++ .../cmake/options/options_riscv64-tizen.cmake | 20 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 infra/nncc/cmake/options/options_riscv64-tizen.cmake create mode 100644 infra/nnfw/cmake/buildtool/config/config_riscv64-tizen.cmake create mode 100644 infra/nnfw/cmake/options/options_riscv64-tizen.cmake diff --git a/infra/nncc/cmake/options/options_riscv64-tizen.cmake b/infra/nncc/cmake/options/options_riscv64-tizen.cmake new file mode 100644 index 00000000000..d26d03473be --- /dev/null +++ b/infra/nncc/cmake/options/options_riscv64-tizen.cmake @@ -0,0 +1,3 @@ +# +# riscv64 tizen cmake options +# diff --git a/infra/nnfw/cmake/buildtool/config/config_riscv64-tizen.cmake b/infra/nnfw/cmake/buildtool/config/config_riscv64-tizen.cmake new file mode 100644 index 00000000000..d45510e1efc --- /dev/null +++ b/infra/nnfw/cmake/buildtool/config/config_riscv64-tizen.cmake @@ -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} + ) diff --git a/infra/nnfw/cmake/options/options_riscv64-tizen.cmake b/infra/nnfw/cmake/options/options_riscv64-tizen.cmake new file mode 100644 index 00000000000..c2f8c79f163 --- /dev/null +++ b/infra/nnfw/cmake/options/options_riscv64-tizen.cmake @@ -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)