mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-06-05 22:19:21 +02:00
Extend the whole TensorFlow-Lite runtime infrastructure
- TFlite-runtime GPU delegate support - TFlite-runtime external delegate support - ARM Compute Library and ARMnn Delegate - Whisper-TFlite updates.
This commit is contained in:
9
buildroot-external/package/compute-library/Config.in
Normal file
9
buildroot-external/package/compute-library/Config.in
Normal file
@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_COMPUTE_LIBRARY
|
||||
bool "compute-library"
|
||||
help
|
||||
The Compute Library is a set of computer vision and
|
||||
machine learning functions optimised for both Arm CPUs
|
||||
and GPUs using SIMD technologies.
|
||||
|
||||
https://github.com/ARM-software/ComputeLibrary
|
||||
|
@ -0,0 +1,65 @@
|
||||
################################################################################
|
||||
#
|
||||
# compute-library
|
||||
#
|
||||
################################################################################
|
||||
|
||||
COMPUTE_LIBRARY_VERSION = v22.11
|
||||
COMPUTE_LIBRARY_SITE = $(call github,ARM-software,ComputeLibrary,$(COMPUTE_LIBRARY_VERSION))
|
||||
COMPUTE_LIBRARY_LICENSE = MIT
|
||||
COMPUTE_LIBRARY_LICENSE_FILES = LICENSE
|
||||
COMPUTE_LIBRARY_INSTALL_STAGING = YES
|
||||
|
||||
COMPUTE_LIBRARY_DEPENDENCIES = \
|
||||
host-scons \
|
||||
host-pkgconf
|
||||
|
||||
COMPUTE_LIBRARY_LDFLAGS = "$(TARGET_LDFLAGS)"
|
||||
COMPUTE_LIBRARY_CFLAGS = " $(TARGET_CFLAGS)"
|
||||
COMPUTE_LIBRARY_CXXFLAGS = "$(TARGET_CXXFLAGS)"
|
||||
|
||||
COMPUTE_LIBRARY_SCONS_ENV = $(TARGET_CONFIGURE_OPTS)
|
||||
|
||||
COMPUTE_LIBRARY_SCONS_OPTS = \
|
||||
arch=arm64-v8a \
|
||||
Werror=0 \
|
||||
debug=0 \
|
||||
asserts=0 \
|
||||
neon=1 \
|
||||
os=linux \
|
||||
examples=0 \
|
||||
build=cross_compile \
|
||||
toolchain_prefix="" \
|
||||
embed_kernels=1 \
|
||||
extra_cxx_flags="-fPIC"
|
||||
|
||||
COMPUTE_LIBRARY_SCONS_ENV += \
|
||||
LDFLAGS=$(COMPUTE_LIBRARY_LDFLAGS) \
|
||||
CFLAGS=$(COMPUTE_LIBRARY_CFLAGS) \
|
||||
CCFLAGS=$(COMPUTE_LIBRARY_CFLAGS) \
|
||||
CXXFLAGS=$(COMPUTE_LIBRARY_CXXFLAGS)
|
||||
|
||||
define COMPUTE_LIBRARY_BUILD_CMDS
|
||||
(cd $(@D); \
|
||||
$(COMPUTE_LIBRARY_SCONS_ENV) \
|
||||
$(SCONS) \
|
||||
$(COMPUTE_LIBRARY_SCONS_OPTS))
|
||||
endef
|
||||
|
||||
define COMPUTE_LIBRARY_INSTALL_STAGING_CMDS
|
||||
(cd $(@D); \
|
||||
$(COMPUTE_LIBRARY_SCONS_ENV) \
|
||||
$(SCONS) \
|
||||
$(COMPUTE_LIBRARY_SCONS_OPTS) \
|
||||
install_dir="$(STAGING_DIR)/usr")
|
||||
endef
|
||||
|
||||
define COMPUTE_LIBRARY_INSTALL_TARGET_CMDS
|
||||
(cd $(@D); \
|
||||
$(COMPUTE_LIBRARY_SCONS_ENV) \
|
||||
$(SCONS) \
|
||||
$(COMPUTE_LIBRARY_SCONS_OPTS) \
|
||||
install_dir="$(TARGET_DIR)/usr")
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Reference in New Issue
Block a user