Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1
@ 2026-05-08 20:53 Julien Olivain via buildroot
  2026-05-08 20:53 ` [Buildroot] [PATCH 2/2] support/testing: test_libcamera.py: bump kernel to 6.18 LTS Julien Olivain via buildroot
  2026-05-30 21:28 ` [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1 Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Julien Olivain via buildroot @ 2026-05-08 20:53 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Kieran Bingham, Marcus Folkesson

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.

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
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(-)

diff --git a/package/libcamera/Config.in b/package/libcamera/Config.in
index 15812a0e2f..74b861b4c1 100644
--- a/package/libcamera/Config.in
+++ b/package/libcamera/Config.in
@@ -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
diff --git a/package/libcamera/libcamera.hash b/package/libcamera/libcamera.hash
index e00e1257ad..d1d7576533 100644
--- a/package/libcamera/libcamera.hash
+++ b/package/libcamera/libcamera.hash
@@ -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
diff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk
index e8f502b253..945207888b 100644
--- a/package/libcamera/libcamera.mk
+++ b/package/libcamera/libcamera.mk
@@ -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
-- 
2.54.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] support/testing: test_libcamera.py: bump kernel to 6.18 LTS
  2026-05-08 20:53 [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1 Julien Olivain via buildroot
@ 2026-05-08 20:53 ` Julien Olivain via buildroot
  2026-05-30 21:28 ` [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1 Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Olivain via buildroot @ 2026-05-08 20:53 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Kieran Bingham, Marcus Folkesson

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.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4c46cb2a7f1d63fa7b027af05e0393e4fe9ccb52

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 support/testing/tests/package/test_libcamera.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/testing/tests/package/test_libcamera.py b/support/testing/tests/package/test_libcamera.py
index c785e340d6..6d83b0c55d 100644
--- a/support/testing/tests/package/test_libcamera.py
+++ b/support/testing/tests/package/test_libcamera.py
@@ -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)
-- 
2.54.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1
  2026-05-08 20:53 [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1 Julien Olivain via buildroot
  2026-05-08 20:53 ` [Buildroot] [PATCH 2/2] support/testing: test_libcamera.py: bump kernel to 6.18 LTS Julien Olivain via buildroot
@ 2026-05-30 21:28 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-05-30 21:28 UTC (permalink / raw)
  To: Julien Olivain; +Cc: buildroot, Kieran Bingham, Marcus Folkesson

On Fri, May 08, 2026 at 10:53:02PM +0200, Julien Olivain via buildroot wrote:
> 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.
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>

Thanks, series applied to next!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-30 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 20:53 [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1 Julien Olivain via buildroot
2026-05-08 20:53 ` [Buildroot] [PATCH 2/2] support/testing: test_libcamera.py: bump kernel to 6.18 LTS Julien Olivain via buildroot
2026-05-30 21:28 ` [Buildroot] [PATCH 1/2] package/libcamera: bump to v0.7.1 Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox