From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Quentin Schulz <foss+buildroot@0leil.net>
Cc: buildroot@buildroot.org,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Marcus Folkesson <marcus.folkesson@gmail.com>,
Eric Le Bihan <eric.le.bihan.dev@free.fr>,
Quentin Schulz <quentin.schulz@cherry.de>
Subject: Re: [Buildroot] [PATCH 8/9] package/libpisp: add new package
Date: Sat, 19 Apr 2025 22:32:01 +0200 [thread overview]
Message-ID: <20250419223201.20f794c1@windsurf> (raw)
In-Reply-To: <20250404-libcamera-0-5-0-v1-8-e2ca9d029aeb@cherry.de>
Hello Quentin,
Thanks for this new package! I have a number of comments/requests.
First, very minor, the commit title should be "package/libpisp: new
package", not "add new package".
On Fri, 04 Apr 2025 18:47:39 +0200
Quentin Schulz <foss+buildroot@0leil.net> wrote:
> package/Config.in | 1 +
> package/libpisp/Config.in | 22 ++++++++++++++++++++++
> package/libpisp/libpisp.hash | 11 +++++++++++
> package/libpisp/libpisp.mk | 33 +++++++++++++++++++++++++++++++++
> 4 files changed, 67 insertions(+)
Could you add an entry in the DEVELOPERS file for this new package?
> 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
This one should be a "select", not a depends on.
> + 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
This should be a select BR2_PACKAGE_BOOST + select
BR2_PACKAGE_BOOST_LOG + propagate the dependencies of boost.
> + help
> + Enable logging
> +endif
Here we need a Config.in comment like:
comment "libpisp needs a toolchain w/ C++, gcc >= 8, threads, headers >= 5.0"
depends on !BR2_INSTALL_LIBSTDCPP ||
!BR2_TOOLCHAIN_GCC_AT_LEAST_8 ||
!BR2_TOOLCHAIN_HAS_THREADS ||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
> 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
BSD-2-Clause, but there's the text of many other licenses? Could you
clarify the license terms? How can it be BSD-2c if it contains GPLv2,
GPLv2+ code?
> +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
Otherwise, looks good! Could you spin a v2? Thanks a lot!
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
next prev parent reply other threads:[~2025-04-19 20:32 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 16:47 [Buildroot] [PATCH 0/9] package/libcamera: bump v0.5.0, new pipelines, misc improvements and bug fixing Quentin Schulz
2025-04-04 16:47 ` [Buildroot] [PATCH 1/9] package/libcamera: remove dependency on boost for rpi/vc4 pipeline Quentin Schulz
2025-04-19 20:25 ` Thomas Petazzoni via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 2/9] package/libcamera: fix documentation being built even if disabled Quentin Schulz
2025-04-19 20:26 ` Thomas Petazzoni via buildroot
2025-04-22 9:12 ` Quentin Schulz via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 3/9] package/libcamera: fix crash on Rockchip with kernels before 6.4 Quentin Schulz
2025-04-19 20:26 ` Thomas Petazzoni via buildroot
2025-04-22 9:40 ` Quentin Schulz via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 4/9] package/libcamera: improve future reproducibility by forcing auto features to disabled Quentin Schulz
2025-04-19 20:27 ` Thomas Petazzoni via buildroot
2025-04-22 9:07 ` Quentin Schulz via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 5/9] package/libcamera: improve reproducibility for optional dependencies Quentin Schulz
2025-04-19 20:27 ` Thomas Petazzoni via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 6/9] package/libcamera: add support for Arm Mali-C55 ISP pipeline Quentin Schulz
2025-04-19 20:27 ` Thomas Petazzoni via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 7/9] package/libcamera: bump to 0.5.0 Quentin Schulz
2025-04-19 20:27 ` Thomas Petazzoni via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 8/9] package/libpisp: add new package Quentin Schulz
2025-04-19 20:32 ` Thomas Petazzoni via buildroot [this message]
2025-04-22 10:04 ` Quentin Schulz via buildroot
2025-04-04 16:47 ` [Buildroot] [PATCH 9/9] package/libcamera: add support for PiSP pipeline Quentin Schulz
2025-04-19 20:32 ` Thomas Petazzoni via buildroot
2025-05-02 10:44 ` [Buildroot] [PATCH 0/9] package/libcamera: bump v0.5.0, new pipelines, misc improvements and bug fixing Arnout Vandecappelle via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250419223201.20f794c1@windsurf \
--to=buildroot@buildroot.org \
--cc=eric.le.bihan.dev@free.fr \
--cc=foss+buildroot@0leil.net \
--cc=kieran.bingham@ideasonboard.com \
--cc=marcus.folkesson@gmail.com \
--cc=quentin.schulz@cherry.de \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox