aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2021-06-28 20:17:04 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-06-28 20:17:04 +0200
commit3b13732f7efe119dc3eaa9692e376e1bcff3559c (patch)
tree0d8f87a7779cec9aa9b5902f74a068d373e99293 /targets
parentec451550f961ee940e2d9393bd6a52f4d2c25685 (diff)
downloadethos-u-core-platform-3b13732f7efe119dc3eaa9692e376e1bcff3559c.tar.gz
Building without NPU
Support building applications for targets without a NPU. Change-Id: I04199b1c0444f23eadc6d4cf85195413dfd8bc97
Diffstat (limited to 'targets')
-rw-r--r--targets/corstone-300/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/targets/corstone-300/CMakeLists.txt b/targets/corstone-300/CMakeLists.txt
index 7ae4d04..9c527fc 100644
--- a/targets/corstone-300/CMakeLists.txt
+++ b/targets/corstone-300/CMakeLists.txt
@@ -76,8 +76,13 @@ target_sources(ethosu_target_startup INTERFACE
target.cpp
mpu.cpp)
-target_compile_definitions(ethosu_core_driver PUBLIC ETHOSU)
-target_link_libraries(ethosu_target_startup INTERFACE ethosu_core_driver timing_adapter)
+target_link_libraries(ethosu_target_startup INTERFACE
+ $<$<TARGET_EXISTS:ethosu_core_driver>:ethosu_core_driver;timing_adapter>)
+
+if (TARGET ethosu_core_driver)
+ target_compile_definitions(ethosu_core_driver PUBLIC
+ ETHOSU)
+endif()
###############################################################################
# Applications