diff options
author | Richard Burton <richard.burton@arm.com> | 2021-11-26 12:17:19 +0000 |
---|---|---|
committer | Richard Burton <richard.burton@arm.com> | 2021-11-26 12:17:19 +0000 |
commit | 527b4745c9ec770eb53c3c13bd30f24d63b7cbff (patch) | |
tree | 08dd05241f9c84824359ff8506ac91e045d8bc47 /scripts | |
parent | 661959c6d2fabada5d465e9de8f84128e3f7b684 (diff) | |
download | ml-embedded-evaluation-kit-527b4745c9ec770eb53c3c13bd30f24d63b7cbff.tar.gz |
MLECO-2592: Moving to latest stack of dependencies
* Currently using 21.11 release candidates
Signed-off-by: Richard Burton <richard.burton@arm.com>
Change-Id: I696b48c3a4c87c5dca3bbee957049790d900b48e
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cmake/tensorflow.cmake | 5 | ||||
-rw-r--r-- | scripts/make/cortex_m_ethos_eval_makefile.inc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/cmake/tensorflow.cmake b/scripts/cmake/tensorflow.cmake index 8ebac28..665c73d 100644 --- a/scripts/cmake/tensorflow.cmake +++ b/scripts/cmake/tensorflow.cmake @@ -73,6 +73,10 @@ if (TENSORFLOW_LITE_MICRO_CLEAN_BUILD) list(APPEND MAKE_TARGETS_LIST "clean") endif() +if (ETHOS_U_NPU_ID) + string(TOLOWER ${ETHOS_U_NPU_ID} ETHOSU_ARCH) +endif() + # Primary target list(APPEND MAKE_TARGETS_LIST "microlite") message(STATUS "TensorFlow Lite Micro build to be called for these targets: ${MAKE_TARGETS_LIST}") @@ -90,6 +94,7 @@ add_custom_target(tensorflow_build ALL BUILD_TYPE=${TENSORFLOW_LITE_MICRO_BUILD_TYPE} ETHOSU_DRIVER_PATH=${ETHOS_U_NPU_DRIVER_SRC_PATH} CMSIS_PATH=${CMSIS_SRC_PATH} + ETHOSU_ARCH=${ETHOSU_ARCH} # Conditional arguments $<$<BOOL:${ARMCLANG_DEBUG_DWARF_LEVEL}>:ARMCLANG_DEBUG_DWARF_LEVEL=${ARMCLANG_DEBUG_DWARF_LEVEL}> diff --git a/scripts/make/cortex_m_ethos_eval_makefile.inc b/scripts/make/cortex_m_ethos_eval_makefile.inc index 27bb9d6..234534a 100644 --- a/scripts/make/cortex_m_ethos_eval_makefile.inc +++ b/scripts/make/cortex_m_ethos_eval_makefile.inc @@ -139,6 +139,7 @@ ifeq ($(TARGET),$(filter $(TARGET), cortex_m_ethos_eval)) -fomit-frame-pointer \ -MD \ -DCPU_CORTEX_$(CORE)=1 \ + -DETHOSU_ARCH=${ETHOSU_ARCH} \ $(TARGET_SPECIFIC_FLAGS) # Common + C/C++ flags |