From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Chris Dimich <chris.dimich@boundarydevices.com>
Cc: Gary Bisson <bisson.gary@gmail.com>,
"Yann E . MORIN" <yann.morin.1998@free.fr>,
Refik Tuzakli <tuzakli.refik@gmail.com>,
buildroot@buildroot.org,
Giulio Benetti <giulio.benetti@benettiengineering.com>,
Romain Naour <romain.naour@gmail.com>,
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Subject: Re: [Buildroot] [PATCH 7/7] package/freescale-imx/imx-vpu-hantro-daemon: add package
Date: Sat, 17 Sep 2022 22:26:25 +0200 [thread overview]
Message-ID: <20220917222625.5ae2244f@windsurf> (raw)
In-Reply-To: <20220824192604.2549356-14-chris.dimich@boundarydevices.com>
Hello Chris,
The commit title should be:
package/freescale-imx/imx-vpu-hantro-daemon: new package
On Wed, 24 Aug 2022 12:26:04 -0700
Chris Dimich <chris.dimich@boundarydevices.com> wrote:
> package/freescale-imx/Config.in | 1 +
> .../imx-vpu-hantro-daemon/Config.in | 20 +++++++++++
> .../imx-vpu-hantro-daemon.hash | 4 +++
> .../imx-vpu-hantro-daemon.mk | 36 +++++++++++++++++++
> 4 files changed, 61 insertions(+)
You also need to change the DEVELOPERS file, to add an entry for this
new package.
> diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in
> index 4a4237fb42..13d611b696 100644
> --- a/package/freescale-imx/Config.in
> +++ b/package/freescale-imx/Config.in
> @@ -115,6 +115,7 @@ source "package/freescale-imx/imx-vpuwrap/Config.in"
> source "package/freescale-imx/firmware-imx/Config.in"
> source "package/freescale-imx/imx-sc-firmware/Config.in"
> source "package/freescale-imx/imx-seco/Config.in"
> +source "package/freescale-imx/imx-vpu-hantro-daemon/Config.in"
> source "package/freescale-imx/imx-vpu-hantro-vc/Config.in"
Hm, the alphabetic ordering in this file is not great, but oh well, not
your fault.
> diff --git a/package/freescale-imx/imx-vpu-hantro-daemon/Config.in b/package/freescale-imx/imx-vpu-hantro-daemon/Config.in
> new file mode 100644
> index 0000000000..2ab9f97081
> --- /dev/null
> +++ b/package/freescale-imx/imx-vpu-hantro-daemon/Config.in
> @@ -0,0 +1,20 @@
> +comment "imx-vpu-hantro-daemon needs an i.MX-specific Linux kernel to be built"
> + depends on !BR2_LINUX_KERNEL
I think this would need a:
depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
> +comment "imx-vpu-hantro needs an i.MX platform with Hantro VPU"
> + depends on BR2_LINUX_KERNEL
> + depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
I know some other packages have that, but does that really make sense?
> +config BR2_PACKAGE_IMX_VPU_HANTRO_DAEMON
> + bool "imx-vpu-hantro"
> + depends on BR2_LINUX_KERNEL
> + depends on BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO
> + select BR2_PACKAGE_IMX_VPU_HANTRO
> + select BR2_PACKAGE_IMX_VPU_HANTRO_VC if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
> + help
> + i.MX Hantro V4L2 Daemon specific for the NXP i.MX SoC
> + integrating a Hantro Video Processing Unit (VPU) such as the
> + i.MX8MQ/i.MX8MM/i.MX8MP.
> +
> + This library is provided by NXP as-is and doesn't have an
This package does not provide a library.
> + upstream.
> diff --git a/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash b/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash
> new file mode 100644
> index 0000000000..811f8b21a3
> --- /dev/null
> +++ b/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash
> @@ -0,0 +1,4 @@
> +# Locally computed:
> +sha256 77e25ad1e1860f0a3983f07d6beb9a04ff32763bacf26db9aefd16559e6eea9b imx-vpu-hantro-daemon-1.1.2.tar.gz
> +sha256 35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31 COPYING
> +sha256 35188e65dbb9c7da4bbcb77c7726e835607f9f41b8b44149806ea51429ca9a31 EULA
I'm pretty sure the hash of the EULA file is going to be wrong (though
I haven't tested it), because it's exactly the same as the COPYING
file, which looks suspicious.
> diff --git a/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk b/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk
> new file mode 100644
> index 0000000000..e9d628bef4
> --- /dev/null
> +++ b/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk
> @@ -0,0 +1,36 @@
> +################################################################################
> +#
> +# imx-vpu-hantro-daemon
> +#
> +################################################################################
> +
> +IMX_VPU_HANTRO_DAEMON_VERSION = 1.1.2
> +IMX_VPU_HANTRO_DAEMON_SITE = $(FREESCALE_IMX_SITE)
> +IMX_VPU_HANTRO_DAEMON_SOURCE = imx-vpu-hantro-daemon-$(IMX_VPU_HANTRO_DAEMON_VERSION).tar.gz
> +IMX_VPU_HANTRO_DAEMON_DEPENDENCIES = linux
> +IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro
Just one line:
IMX_VPU_HANTRO_DAEMON_DEPENDENCIES = imx-vpu-hantro linux
> +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y)
> +IMX_VPU_HANTRO_DAEMON_DEPENDENCIES += imx-vpu-hantro-vc
> +endif
> +
> +IMX_VPU_HANTRO_DAEMON_MAKE_ENV = \
> + CROSS_COMPILE="$(TARGET_CROSS)" \
> + SDKTARGETSYSROOT=$(STAGING_DIR) \
> + LINUX_KERNEL_ROOT=$(LINUX_DIR) \
> + CTRLSW_HDRPATH="$(STAGING_DIR)/usr/include" \
> + PLATFORM=$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM)
> +
> +IMX_VPU_HANTRO_DAEMON_LICENSE = NXP Semiconductor Software License Agreement
> +IMX_VPU_HANTRO_DAEMON_LICENSE_FILES = EULA COPYING
> +IMX_VPU_HANTRO_DAEMON_REDISTRIBUTE = NO
These 3 lignes should go earlier, probably before the _DEPENDENCIES
variable.
> +define IMX_VPU_HANTRO_DAEMON_BUILD_CMDS
> + $(MAKE1) -C $(@D) $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV)
> +endef
> +
> +define IMX_VPU_HANTRO_DAEMON_INSTALL_TARGET_CMDS
> + $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV) $(MAKE1) -C $(@D) \
> + DEST_DIR=$(TARGET_DIR) libdir=/usr/lib install
> +endef
Use $(TARGET_MAKE_ENV). Also, do you use $(MAKE1) because you
identified a parallel build issue?
Thanks!
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:[~2022-09-17 20:26 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 19:25 [Buildroot] [PATCH 1/7] toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02 Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 2/7] package/weston: add BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL config Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 3/7] package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2 Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 4/7] package/freescale-imx/imx-gpu-viv: " Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 5/7] package/freescale-imx/imx-gpu-g2d: bump version to 6.4.3.p4.2 Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 6/7] package/freescale-imx/imx-vpu-hantro-vc: bump version to 1.7.0 Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 7/7] package/freescale-imx/imx-vpu-hantro-daemon: add package Chris Dimich
2022-08-24 19:25 ` [Buildroot] [PATCH 1/7] toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02 Chris Dimich
2022-08-28 15:29 ` Yann E. MORIN
2022-08-24 19:25 ` [Buildroot] [PATCH 2/7] package/weston: add BR2_PACKAGE_WESTON_DEPRECATED_WL_SHELL config Chris Dimich
2022-08-28 15:15 ` Yann E. MORIN
2022-09-02 18:22 ` Chris Dimich
2022-08-24 19:26 ` [Buildroot] [PATCH 3/7] package/freescale-imx/kernel-module-imx-gpu-viv: bump to version 6.4.3.p4.2 Chris Dimich
2022-08-28 15:44 ` Yann E. MORIN
2022-08-29 12:51 ` Gary Bisson
2022-09-02 18:43 ` Yann E. MORIN
2022-08-24 19:26 ` [Buildroot] [PATCH 4/7] package/freescale-imx/imx-gpu-viv: " Chris Dimich
2022-08-24 19:26 ` [Buildroot] [PATCH 5/7] package/freescale-imx/imx-gpu-g2d: bump version to 6.4.3.p4.2 Chris Dimich
2022-09-17 20:15 ` Thomas Petazzoni
2022-08-24 19:26 ` [Buildroot] [PATCH 6/7] package/freescale-imx/imx-vpu-hantro-vc: bump version to 1.7.0 Chris Dimich
2022-09-17 20:21 ` Thomas Petazzoni
2022-08-24 19:26 ` [Buildroot] [PATCH 7/7] package/freescale-imx/imx-vpu-hantro-daemon: add package Chris Dimich
2022-09-17 20:26 ` Thomas Petazzoni [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-24 2:48 [Buildroot] [PATCH 1/7] toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02 Chris Dimich
2022-08-24 2:48 ` [Buildroot] [PATCH 7/7] package/freescale-imx/imx-vpu-hantro-daemon: add package Chris Dimich
2022-08-24 7:51 ` Arnout Vandecappelle
2022-08-24 19:08 ` Chris Dimich
2022-08-24 19:16 ` Chris Dimich
2022-08-24 2:49 ` Chris Dimich
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=20220917222625.5ae2244f@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=bisson.gary@gmail.com \
--cc=buildroot@buildroot.org \
--cc=chris.dimich@boundarydevices.com \
--cc=giulio.benetti@benettiengineering.com \
--cc=romain.naour@gmail.com \
--cc=thomas.de_schampheleire@nokia.com \
--cc=tuzakli.refik@gmail.com \
--cc=yann.morin.1998@free.fr \
/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