mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/xnnpack: new package
This package is required by tensorflow-lite. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
f110a78825
commit
1bfc85a688
@@ -3039,6 +3039,7 @@ F: package/gemmlowp/
|
||||
F: package/psimd/
|
||||
F: package/pthreadpool/
|
||||
F: package/ruy/
|
||||
F: package/xnnpack/
|
||||
|
||||
N: Stefan Nickl <Stefan.Nickl@gmail.com>
|
||||
F: board/freescale/imx8dxlevk/
|
||||
|
||||
@@ -2318,6 +2318,7 @@ endif
|
||||
source "package/uvw/Config.in"
|
||||
source "package/volk/Config.in"
|
||||
source "package/xapian/Config.in"
|
||||
source "package/xnnpack/Config.in"
|
||||
endmenu
|
||||
|
||||
menu "Security"
|
||||
|
||||
25
package/xnnpack/Config.in
Normal file
25
package/xnnpack/Config.in
Normal file
@@ -0,0 +1,25 @@
|
||||
config BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_i386
|
||||
default y if BR2_x86_64
|
||||
depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS
|
||||
|
||||
config BR2_PACKAGE_XNNPACK
|
||||
bool "xnnpack"
|
||||
depends on BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # cpuinfo
|
||||
select BR2_PACKAGE_CPUINFO
|
||||
select BR2_PACKAGE_FP16
|
||||
select BR2_PACKAGE_FXDIV
|
||||
select BR2_PACKAGE_PTHREADPOOL
|
||||
help
|
||||
XNNPACK is a highly optimized solution for neural network
|
||||
inference on ARM, x86, WebAssembly, and RISC-V platforms.
|
||||
|
||||
https://github.com/google/XNNPACK
|
||||
|
||||
comment "xnnpack needs a toolchain w/ C++14, threads"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
4
package/xnnpack/xnnpack.hash
Normal file
4
package/xnnpack/xnnpack.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 0ed35a104a697abbae72b02b967e057883ff57b388178649c453b68cffb81f72 xnnpack-d7f398ee5e135ef4f7045802eea973cc6cb26c6c.tar.gz
|
||||
# License files, locally calculated
|
||||
sha256 63f519e15726f4c4f830bd958f694c84fecb4e0a4cacc527d2696bb71ef95ada LICENSE
|
||||
21
package/xnnpack/xnnpack.mk
Normal file
21
package/xnnpack/xnnpack.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# xnnpack
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XNNPACK_VERSION = d7f398ee5e135ef4f7045802eea973cc6cb26c6c
|
||||
XNNPACK_SITE = $(call github,google,XNNPACK,$(XNNPACK_VERSION))
|
||||
XNNPACK_LICENSE = BSD-3-Clause
|
||||
XNNPACK_LICENSE_FILES = LICENSE
|
||||
XNNPACK_INSTALL_STAGING = YES
|
||||
XNNPACK_DEPENDENCIES = cpuinfo fp16 fxdiv pthreadpool
|
||||
XNNPACK_CONF_OPTS = \
|
||||
-DCPUINFO_SOURCE_DIR=$(STAGING_DIR)/usr \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||
-DXNNPACK_BUILD_TESTS=OFF \
|
||||
-DXNNPACK_BUILD_BENCHMARKS=OFF \
|
||||
-DXNNPACK_ENABLE_KLEIDIAI=OFF \
|
||||
-DXNNPACK_USE_SYSTEM_LIBS=ON
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user