From c6c8c0d5824e8a6f99041803f840874854c79ad9 Mon Sep 17 00:00:00 2001 From: Balyshev Artem <43214667+BalyshevArtem@users.noreply.github.com> Date: Fri, 29 Nov 2024 07:55:01 +0300 Subject: [PATCH] [infra] Update cmsis-nn version (#13723) This pr updates cmsis-nn version. ONE-DCO-1.0-Signed-off-by: Artem Balyshev Co-authored-by: Artem Balyshev --- .../packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake | 14 ++++++++++++++ .../CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake create mode 100644 infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake diff --git a/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake new file mode 100644 index 00000000000..41b748d1ae0 --- /dev/null +++ b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfig.cmake @@ -0,0 +1,14 @@ +function(_CMSIS_NN_import) + nnas_include(ExternalSourceTools) + nnas_include(OptionTools) + + envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") + envoption(CMSIS_NN_6_0_0_URL ${EXTERNAL_DOWNLOAD_SERVER}/ARM-software/CMSIS-NN/archive/refs/tags/v6.0.0.tar.gz) + + ExternalSource_Download(CMSIS_NN DIRNAME CMSIS-NN-6.0.0 ${CMSIS_NN_6_0_0_URL}) + + set(CMSIS_NNSource_DIR ${CMSIS_NN_SOURCE_DIR} PARENT_SCOPE) + set(CMSIS_NNSource_FOUND TRUE PARENT_SCOPE) +endfunction(_CMSIS_NN_import) + +_CMSIS_NN_import() diff --git a/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake new file mode 100644 index 00000000000..7f85719f568 --- /dev/null +++ b/infra/cmake/packages/CMSIS-NN-6.0.0/CMSIS-NNConfigVersion.cmake @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION "6.0.0") +set(PACKAGE_VERSION_EXACT FALSE) +set(PACKAGE_VERSION_COMPATIBLE FALSE) +set(PACKAGE_VERSION_UNSUITABLE TRUE) + +if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + set(PACKAGE_VERSION_UNSUITABLE FALSE) +endif(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)