package/tensorflow-lite: propagate libabseil-cpp dependency
PATCH 1/2 package/tensorflow-lite: propagate libabseil-cpp dependency
BR2_PACKAGE_TENSORFLOW_LITE selects BR2_PACKAGE_LIBABSEIL_CPP without propagating its depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS, which this commit fixes.
Note that this doesn't create any functional change: tensorflow-lite is anyway limited to ARM, ARM64, x86 32-bit and x86 64-bit, all of which are supported by libabseil-cpp.
--- package/tensorflow-lite/Config.in | 1 + 1 file changed, 1 insertion(+)
package/tensorflow-lite/Config.in +1 -0
@@ -5,6 +5,7 @@ config BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS 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"
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 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
--- package/tensorflow-lite/Config.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
package/tensorflow-lite/Config.in +4 -5
@@ -31,9 +31,8 @@ config BR2_PACKAGE_TENSORFLOW_LITE https://www.tensorflow.org/ -comment "tensorflow-lite needs a toolchain w/ gcc >= 10, C++, threads" +comment "tensorflow-lite needs a glibc toolchain w/ gcc >= 10, 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_10 || !BR2_TOOLCHAIN_HAS_THREADS - -comment "tensorflow-lite needs a toolchain w/ shared libraries" - depends on !BR2_SHARED_LIBS + !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedRe: [Buildroot] [PATCH 2/2] package/tensorflow-lite: fix Config.in comment
In reply of:
Quoted 5 lines
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"
Quoted 8 lines
- 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 fd29fee3a3ac0ce45404ed256d2059836c352728 ("package/tensorflow-lite: new package")Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 12 lines
--- package/tensorflow-lite/Config.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)package/tensorflow-lite/Config.in +0
-0@@ -31,9 +31,8 @@ config BR2_PACKAGE_TENSORFLOW_LITE https://www.tensorflow.org/
package/tensorflow-lite/Config.in config BR2_PACKAGE_TENSORFLOW_LITE · line 38
Quoted 10 lines
package/tensorflow-lite/Config.in +4
-5-comment "tensorflow-lite needs a toolchain w/ gcc >= 10, C++, threads" +comment "tensorflow-lite needs a glibc toolchain w/ gcc >= 10, 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_10 || !BR2_TOOLCHAIN_HAS_THREADS - -comment "tensorflow-lite needs a toolchain w/ shared libraries" - depends on !BR2_SHARED_LIBS + !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines · Thomas Petazzoni via buildroot
BR2_PACKAGE_TENSORFLOW_LITEselectsBR2_PACKAGE_LIBABSEIL_CPPwithout propagating its depends onBR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS, which this commit fixes.Note that this doesn't create any functional change: tensorflow-lite is anyway limited to ARM, ARM64, x86 32-bit and x86 64-bit, all of which are supported by libabseil-cpp.
Fixes fd29fee3a3ac0ce45404ed256d2059836c352728 ("package/tensorflow-lite: new package")Signed-off-by Thomas Petazzoni <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 10 lines
BR2_PACKAGE_TENSORFLOW_LITEselectsBR2_PACKAGE_LIBABSEIL_CPPwithout propagating its depends onBR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS, which this commit fixes.Note that this doesn't create any functional change: tensorflow-lite is anyway limited to ARM, ARM64, x86 32-bit and x86 64-bit, all of which are supported by libabseil-cpp.
Fixes fd29fee3a3ac0ce45404ed256d2059836c352728 ("package/tensorflow-lite: new package")Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 9 lines
--- package/tensorflow-lite/Config.in | 1 + 1 file changed, 1 insertion(+)package/tensorflow-lite/Config.in +0
-0
package/tensorflow-lite/Config.in config BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS · line 11
Quoted 7 lines
package/tensorflow-lite/Config.in +1
-0@@ -5,6 +5,7 @@ config BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS 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"
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot