Files
buildroot/package/tensorflow-lite/Config.in
Thomas Petazzoni 8ad879736e package/tensorflow-lite: fix Config.in comment
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 commit 101d543e38)
[raphael: resolve conflicts]
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
2026-09-23 18:32:12 +02:00

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