2023-01-25 14:22:22 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# armnn
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
ARMNN_VERSION = v22.11.01
|
|
|
|
ARMNN_SITE = $(call github,ARM-software,armnn,$(ARMNN_VERSION))
|
|
|
|
ARMNN_LICENSE = MIT
|
|
|
|
|
|
|
|
ARMNN_INSTALL_STAGING = YES
|
|
|
|
ARMNN_DEPENDENCIES = host-pkgconf compute-library tensorflow-lite
|
|
|
|
ARMNN_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
|
|
|
ARMNN_CONF_OPTS = \
|
|
|
|
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -fPIC -Wno-error=missing-field-initializers" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -fPIC -Wno-error=missing-field-initializers" \
|
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="$(TARGET_LDFLAGS) -fPIC -Wno-error=missing-field-initializers" \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
2023-01-27 22:03:27 +01:00
|
|
|
-DBUILD_TF_LITE_PARSER=0 \
|
2023-01-25 14:22:22 +01:00
|
|
|
-DBUILD_ARMNN_TFLITE_DELEGATE=ON \
|
|
|
|
-DARMCOMPUTENEON=ON \
|
2023-01-27 22:03:27 +01:00
|
|
|
-DARMCOMPUTECL=0 \
|
|
|
|
-DARMNNREF=0 \
|
2023-01-25 14:22:22 +01:00
|
|
|
-DARMCOMPUTE_ROOT="$(BUILD_DIR)/compute-library-$(COMPUTE_LIBRARY_VERSION)" \
|
|
|
|
-DARMCOMPUTE_BUILD_DIR="$(BUILD_DIR)/compute-library-$(COMPUTE_LIBRARY_VERSION)/buildroot-build" \
|
|
|
|
-DTENSORFLOW_ROOT="$(BUILD_DIR)/tensorflow-lite-$(TENSORFLOW_LITE_VERSION)" \
|
|
|
|
-DTF_LITE_SCHEMA_INCLUDE_PATH="$(BUILD_DIR)/tensorflow-lite-$(TENSORFLOW_LITE_VERSION)/tensorflow/lite/schema" \
|
|
|
|
-DTFLITE_LIB_ROOT="$(STAGING_DIR)/usr/lib" \
|
|
|
|
-DTfLite_Schema_INCLUDE_PATH="$(BUILD_DIR)/tensorflow-lite-$(TENSORFLOW_LITE_VERSION)/tensorflow/lite/schema" \
|
|
|
|
-DTfLite_LIB="$(STAGING_DIR)/usr/lib/libtensorflow-lite.so"
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|