[Buildroot] [PATCH 8/9] package/libpisp: add new package

Quentin Schulz foss+buildroot at 0leil.net
Fri Apr 4 16:47:39 UTC 2025


From: Quentin Schulz <quentin.schulz at cherry.de>

A helper library to generate run-time configuration for the Raspberry Pi
ISP (PiSP), consisting of the Frontend and Backend hardware components.

This PiSP is found on the Raspberry Pi 5.

This will be a dependency of the PiSP pipeline in libcamera in a future
commit.

https://github.com/raspberrypi/libpisp

Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
 package/Config.in            |  1 +
 package/libpisp/Config.in    | 22 ++++++++++++++++++++++
 package/libpisp/libpisp.hash | 11 +++++++++++
 package/libpisp/libpisp.mk   | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+)

diff --git a/package/Config.in b/package/Config.in
index 291e784f269c90d4b88fdebeba8f4add101c113a..d704e9d6b099e1832fbe574c571be6106c93b700 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1987,6 +1987,7 @@ menu "Multimedia"
 	source "package/libopenaptx/Config.in"
 	source "package/libopenh264/Config.in"
 	source "package/libopusenc/Config.in"
+	source "package/libpisp/Config.in"
 	source "package/libtheora/Config.in"
 	source "package/libudfread/Config.in"
 	source "package/libvpx/Config.in"
diff --git a/package/libpisp/Config.in b/package/libpisp/Config.in
new file mode 100644
index 0000000000000000000000000000000000000000..8586c31f42914a219538e04fe93b62de38e0daab
--- /dev/null
+++ b/package/libpisp/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_LIBPISP
+	bool "libpisp"
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_PACKAGE_JSON_FOR_MODERN_CPP
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 # V4L2_BUF_TYPE_META_OUTPUT
+	help
+	  A helper library to generate run-time configuration for the
+	  Raspberry Pi ISP (PiSP), consisting of the Frontend and
+	  Backend hardware components.
+
+	  https://github.com/raspberrypi/libpisp
+
+if BR2_PACKAGE_LIBPISP
+
+config BR2_PACKAGE_LIBPISP_LOGGING
+	bool "enable logging"
+	depends on BR2_PACKAGE_BOOST_LOG
+	help
+	  Enable logging
+endif
diff --git a/package/libpisp/libpisp.hash b/package/libpisp/libpisp.hash
new file mode 100644
index 0000000000000000000000000000000000000000..3ec1628651cb17c96625b519901d4e156816e4dc
--- /dev/null
+++ b/package/libpisp/libpisp.hash
@@ -0,0 +1,11 @@
+# Locally computed
+sha256  13862de722511f202ea204644504ca5e6bd616b6a463932e7bc114767a68224d  libpisp-1.2.0.tar.xz
+
+# license files
+sha256  8e68f95d973a272ea3da17d6542ba3991cc012f55ff1263af1e5b24d849c11a2  LICENSE
+sha256  8e68f95d973a272ea3da17d6542ba3991cc012f55ff1263af1e5b24d849c11a2  LICENSES/BSD-2-Clause.txt
+sha256  6a573fb2f9082662978cf21fb153096df0a1981deaea7dbc10a11046fe005d9f  LICENSES/CC0-1.0.txt
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSES/GPL-2.0-only.txt
+sha256  606aa26338f69ce178f1cbc648b7574aec4b5bbaeb20f4df36ff49010cb8fbbd  LICENSES/GPL-2.0-or-later.txt
+sha256  e5bcf7b9fdd1313047e4edb2160d5bcb928e211b4ed311b8c543e70764739945  LICENSES/Linux-syscall-note.txt
+sha256  364ad36bdcd4c01dbd8c230a07ae6e8bdee7b4418a7d16c42205d3f2b6fceefd  LICENSES/MIT.txt
diff --git a/package/libpisp/libpisp.mk b/package/libpisp/libpisp.mk
new file mode 100644
index 0000000000000000000000000000000000000000..66a44c0d14c52bf64cecd8eea77b7c3237a815a4
--- /dev/null
+++ b/package/libpisp/libpisp.mk
@@ -0,0 +1,33 @@
+################################################################################
+#
+# libpisp
+#
+################################################################################
+
+LIBPISP_VERSION = 1.2.0
+# The manually generated tarball has version.gen in it which is required for
+# version detection outside of git repos
+LIBPISP_SITE = https://github.com/raspberrypi/libpisp/releases/download/v$(LIBPISP_VERSION)
+LIBPISP_SOURCE = libpisp-$(LIBPISP_VERSION).tar.xz
+LIBPISP_LICENSE = BSD-2-Clause
+LIBPISP_LICENSE_FILES = \
+	LICENSE \
+	LICENSES/BSD-2-Clause.txt \
+	LICENSES/CC0-1.0.txt \
+	LICENSES/GPL-2.0-only.txt \
+	LICENSES/GPL-2.0-or-later.txt \
+	LICENSES/Linux-syscall-note.txt \
+	LICENSES/MIT.txt
+LIBPISP_CONF_OPTS = \
+	-Dauto_features=disabled
+LIBPISP_INSTALL_STAGING = YES
+LIBPISP_DEPENDENCIES = \
+	host-pkgconf \
+	json-for-modern-cpp
+
+ifeq ($(BR2_PACKAGE_LIBPISP_LOGGING),y)
+LIBPISP_CONF_OPTS += -Dlogging=enabled
+LIBPISP_DEPENDENCIES += boost
+endif
+
+$(eval $(meson-package))

-- 
2.49.0



More information about the buildroot mailing list