mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
This commit fixes 3 issues in the Config.in comment: - It is displayed even on unsupported CPU architectures, so we add a "depends on BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS" - It doesn't mention the need for a glibc toolchain even though that's part of the dependencies - The requirement for dynamic lib support should be part of the same comment as the other dependencies Fixes:fd29fee3a3("package/tensorflow-lite: new package") Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commit101d543e38) [raphael: resolve conflicts] Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
config BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS
|
|
bool
|
|
default y if BR2_aarch64
|
|
default y if BR2_arm
|
|
default y if BR2_i386
|
|
default y if BR2_x86_64
|
|
depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS
|
|
depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS
|
|
|
|
config BR2_PACKAGE_TENSORFLOW_LITE
|
|
bool "tensorflow-lite"
|
|
depends on BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libabseil-cpp
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # cpuinfo
|
|
depends on BR2_TOOLCHAIN_USES_GLIBC
|
|
depends on BR2_SHARED_LIBS
|
|
select BR2_PACKAGE_CPUINFO
|
|
select BR2_PACKAGE_EIGEN
|
|
select BR2_PACKAGE_FARMHASH
|
|
select BR2_PACKAGE_FFT2D
|
|
select BR2_PACKAGE_FLATBUFFERS
|
|
select BR2_PACKAGE_GEMMLOWP
|
|
select BR2_PACKAGE_LIBABSEIL_CPP
|
|
select BR2_PACKAGE_NEON_2_SSE
|
|
select BR2_PACKAGE_RUY if BR2_PACKAGE_RUY_ARCH_SUPPORTS
|
|
select BR2_PACKAGE_XNNPACK if BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS
|
|
help
|
|
Tensorflow Lite dynamic library and headers: Inference engine
|
|
to run previously trained machine learning models.
|
|
|
|
https://www.tensorflow.org/
|
|
|
|
comment "tensorflow-lite needs a glibc toolchain w/ gcc >= 8, C++, threads, dynamic libraries"
|
|
depends on BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS
|
|
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_8 || !BR2_TOOLCHAIN_HAS_THREADS || \
|
|
BR2_STATIC_LIBS
|