aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Hoglind <henrik.hoglind@arm.com>2020-10-29 10:12:15 +0100
committerHenrik Hoglind <henrik.hoglind@arm.com>2020-11-02 14:24:24 +0100
commit78f7f94d8f37aa88fc3c73c2e74fac903e5e89f9 (patch)
tree3edbf7c545a07ed1cd770897d54956f98a959215
parent68c1f1b463691fadbccef22e22d59f5e61546ca2 (diff)
downloadethos-u-core-software-78f7f94d8f37aa88fc3c73c2e74fac903e5e89f9.tar.gz
Add ethosu_core_driver as tflu link library
The ethosu_core_driver is added as target link library to get the correct order of libraries when linking to avoid missing symbols. Change-Id: I39c5fdb9f94a4a8af080e37a39c7cb41d13d664a
-rw-r--r--tensorflow.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow.cmake b/tensorflow.cmake
index 6275f3d..66fb97c 100644
--- a/tensorflow.cmake
+++ b/tensorflow.cmake
@@ -75,6 +75,10 @@ add_dependencies(tflu tflu_gen)
target_include_directories(tflu INTERFACE ${TENSORFLOW_PATH})
target_compile_definitions(tflu INTERFACE TF_LITE_STATIC_MEMORY)
+if(CORE_SOFTWARE_ACCELERATOR STREQUAL NPU)
+ target_link_libraries(tflu INTERFACE ethosu_core_driver)
+endif()
+
# Install libraries and header files
get_target_property(TFLU_IMPORTED_LOCATION tflu IMPORTED_LOCATION)
install(FILES ${TFLU_IMPORTED_LOCATION} DESTINATION "lib")