package/libcamera: bump to v0.7.1
PATCH 1/2 package/libcamera: bump to v0.7.1
Changelog:
https://git.linuxtv.org/libcamera.git/tag/?h=v0.7.1
libcamera is now using C++20. This minimal gcc version is increased to gcc-10. This commit also removes the gcc >= 5 requirement for the lc-compliance sub-option and the CXXFLAGS condition in the .mk file. Those are no longer needed. The Config.in comments about the required gcc version are also updated.
---
Patch tested in:
https://gitlab.com/jolivain/buildroot/-/jobs/14285249668
--- package/libcamera/Config.in | 11 +++++------ package/libcamera/libcamera.hash | 2 +- package/libcamera/libcamera.mk | 6 ++---- 3 files changed, 8 insertions(+), 11 deletions(-)
package/libcamera/Config.in +5 -6
@@ -9,7 +9,7 @@ menuconfig BR2_PACKAGE_LIBCAMERA depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # C++20 depends on !BR2_STATIC_LIBS # gnutls depends on BR2_USE_WCHAR # gnutls depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3 # clone3()
@@ -97,22 +97,21 @@ config BR2_PACKAGE_LIBCAMERA_COMPLIANCE depends on BR2_USE_WCHAR # gtest depends on BR2_TOOLCHAIN_HAS_THREADS # gtest depends on BR2_INSTALL_LIBSTDCPP # gtest - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # gtest depends on BR2_USE_MMU # gtest select BR2_PACKAGE_GTEST select BR2_PACKAGE_LIBEVENT help lc-compliance test application -comment "lc-compliance test application needs a toolchain w/ C++, wchar, threads, gcc >= 5" +comment "lc-compliance test application needs a toolchain w/ C++, wchar, threads" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_5 + !BR2_INSTALL_LIBSTDCPP endif # BR2_PACKAGE_LIBCAMERA -comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8, headers >= 5.3" +comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 10, headers >= 5.3" depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_STATIC_LIBS || !BR2_USE_WCHAR || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_STATIC_LIBS || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
package/libcamera/libcamera.hash +1 -1
@@ -1,5 +1,5 @@ # Locally computed -sha256 9e684bfcb8679e5e7ec7fb0da9dec68e71f0b75a6b0c8edcd892b26a92726a92 libcamera-v0.7.0-git4.tar.gz +sha256 7c5728f6a51d717542cfdd2ff368ac78fa2e50e8a7360a38bb37952e9293e008 libcamera-v0.7.1-git4.tar.gz # license files sha256 fd38b2c053c0cce46d9c5ef3545a6e34d157a240ba99c9b8dca5d37a8147da6c LICENSES/BSD-2-Clause.txt
package/libcamera/libcamera.mk +2 -4
@@ -5,7 +5,7 @@ ################################################################################ LIBCAMERA_SITE = https://git.linuxtv.org/libcamera.git -LIBCAMERA_VERSION = v0.7.0 +LIBCAMERA_VERSION = v0.7.1 LIBCAMERA_SITE_METHOD = git LIBCAMERA_DEPENDENCIES = \ host-openssl \
@@ -41,9 +41,7 @@ LIBCAMERA_LICENSE_FILES = \ LICENSES/Linux-syscall-note.txt \ LICENSES/MIT.txt -ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),y) -LIBCAMERA_CXXFLAGS = -faligned-new -endif +LIBCAMERA_CXXFLAGS = $(TARGET_CXXFLAGS) -faligned-new ifeq ($(BR2_PACKAGE_LIBCAMERA_PYTHON),y) LIBCAMERA_DEPENDENCIES += python3 python-pybind
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 support/testing: test_libcamera.py: bump kernel to 6.18 LTS
The Linux Kernel vimc driver became stricter on pixel format, after upstream commit [1] (first included in Kernel v6.11). This commit changes the RGB format to BGR, to request a supported format.
--- support/testing/tests/package/test_libcamera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
support/testing/tests/package/test_libcamera.py +2 -2
@@ -18,7 +18,7 @@ class TestLibCamera(infra.basetest.BRTest): BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y - BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.76" + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.21" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{kernel_fragment}"
@@ -76,5 +76,5 @@ class TestLibCamera(infra.basetest.BRTest): # Capture few frames. cmd = f"cam --camera {cam_idx} --capture=5" - cmd += " --stream width=160,height=120,role=video,pixelformat=RGB888" + cmd += " --stream width=160,height=120,role=video,pixelformat=BGR888" self.assertRunOk(cmd)
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines · Julien Olivain via buildroot
Changelog:
https://git.linuxtv.org/libcamera.git/tag/?h=v0.7.1libcamera is now using C++20. This minimal gcc version is increased to gcc-10. This commit also removes the gcc >= 5 requirement for the lc-compliance sub-option and the CXXFLAGS condition in the .mk file. Those are no longer needed. The Config.in comments about the required gcc version are also updated.
Signed-off-by Julien Olivain <[email protected]>
Thanks, series applied to next!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot