From 78f7f94d8f37aa88fc3c73c2e74fac903e5e89f9 Mon Sep 17 00:00:00 2001 From: Henrik Hoglind Date: Thu, 29 Oct 2020 10:12:15 +0100 Subject: 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 --- tensorflow.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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") -- cgit v1.2.1