From b5dc9855d606ecfe85043a51aec777055d881edb Mon Sep 17 00:00:00 2001 From: Chris Dimich Date: Wed, 23 Nov 2022 11:52:57 -0800 Subject: [PATCH] package/freescale-imx/imx-vpu-hantro-daemon: new package - i.MX Hantro V4L2 Daemon. Provides the vsidaemon, which is needed for V4L2 nodes to work. - To match NXP 5.15.52-2.1.0 release. Signed-off-by: Chris Dimich Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 3 ++ package/freescale-imx/Config.in | 1 + .../imx-vpu-hantro-daemon/Config.in | 17 +++++++++ .../imx-vpu-hantro-daemon.hash | 3 ++ .../imx-vpu-hantro-daemon.mk | 35 +++++++++++++++++++ 5 files changed, 59 insertions(+) create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/Config.in create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash create mode 100644 package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3f1ed0ef12..a2c60f38fd 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -520,6 +520,9 @@ F: package/alsa-plugins/ N: Changming Huang F: package/qoriq-cadence-dp-firmware/ +N: Chris Dimich +F: package/freescale-imx/imx-vpu-hantro-daemon/ + N: Chris Packham F: package/coremark/ F: package/coremark-pro/ 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" if (BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 || BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53) source "package/freescale-imx/gpu-amd-bin-mx51/Config.in" 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..663ed4346b --- /dev/null +++ b/package/freescale-imx/imx-vpu-hantro-daemon/Config.in @@ -0,0 +1,17 @@ +comment "imx-vpu-hantro-daemon needs an i.MX-specific Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +comment "imx-vpu-hantro-daemon needs an i.MX platform with Hantro VPU" + depends on BR2_LINUX_KERNEL + depends on !BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO + +config BR2_PACKAGE_IMX_VPU_HANTRO_DAEMON + bool "imx-vpu-hantro-daemon" + 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. 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..e952491a60 --- /dev/null +++ b/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha256 83ba2798564702d74ab65f6238f95f59247d983b846de1de4c19bdfaf6dabeb8 imx-vpu-hantro-daemon-1.1.4.tar.gz +sha256 bb645f02b260955f333348100e40af76253e2cd8b116bac047230439dd53ec5a LICENSE.txt 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..bf9088b065 --- /dev/null +++ b/package/freescale-imx/imx-vpu-hantro-daemon/imx-vpu-hantro-daemon.mk @@ -0,0 +1,35 @@ +################################################################################ +# +# imx-vpu-hantro-daemon +# +################################################################################ + +IMX_VPU_HANTRO_DAEMON_VERSION = 1.1.4 +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_LICENSE = NXP Semiconductor Software License Agreement +IMX_VPU_HANTRO_DAEMON_LICENSE_FILES = LICENSE.txt +IMX_VPU_HANTRO_DAEMON_REDISTRIBUTE = NO +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 = \ + $(TARGET_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) + +define IMX_VPU_HANTRO_DAEMON_BUILD_CMDS + $(MAKE) -C $(@D) $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV) +endef + +define IMX_VPU_HANTRO_DAEMON_INSTALL_TARGET_CMDS + $(IMX_VPU_HANTRO_DAEMON_MAKE_ENV) $(MAKE) -C $(@D) \ + DEST_DIR=$(TARGET_DIR) libdir=/usr/lib install +endef + +$(eval $(generic-package))