diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2021-07-26 11:25:57 -0500 |
---|---|---|
committer | Tom Hochstein <tom.hochstein@nxp.com> | 2021-07-26 16:49:06 -0500 |
commit | 0b77fc0694932dadcd3afda77e7109b6882fb5e9 (patch) | |
tree | d45fda45fd02114a162a226357d18189debae805 | |
parent | 33ce8fb2698d3d804176fde43f47f657269a6e1c (diff) | |
download | meta-freescale-0b77fc0694932dadcd3afda77e7109b6882fb5e9.tar.gz |
imx-vpu-hantro-daemon: Add Hantro V4L2 daemon
Add userspace daemon needed by Hantro VPU driver for V4L2.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
3 files changed, 67 insertions, 0 deletions
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon/0001-Makefile-Honor-LDFLAGS-from-toolchain.patch b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon/0001-Makefile-Honor-LDFLAGS-from-toolchain.patch new file mode 100644 index 00000000..dff2fb8f --- /dev/null +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon/0001-Makefile-Honor-LDFLAGS-from-toolchain.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 94ae72948f1ed1a8bad1c13b4edc4b9189207e35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Hochstein <tom.hochstein@nxp.com> | ||
3 | Date: Mon, 26 Jul 2021 09:06:26 -0500 | ||
4 | Subject: [PATCH] Makefile: Honor LDFLAGS from toolchain | ||
5 | |||
6 | The LDFLAGS variable is standard from the toolchain and should be | ||
7 | honored. Yocto detects the problem with a QA check: | ||
8 | |||
9 | ERROR: imx-vpu-hantro-daemon-1.1.0-r0 do_package_qa: QA Issue: File /usr/bin/vsidaemon in package imx-vpu-hantro-daemon doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | ||
14 | --- | ||
15 | Makefile | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/Makefile b/Makefile | ||
19 | index 9a775b0..e73ff47 100755 | ||
20 | --- a/Makefile | ||
21 | +++ b/Makefile | ||
22 | @@ -22,7 +22,7 @@ OUT_FILE = vsidaemon | ||
23 | DEC = nxp_enc_hw | ||
24 | ENC = nxp_dec_hw | ||
25 | LIBFILES = | ||
26 | -LD_FLAGS = -lpthread -lm | ||
27 | +LD_FLAGS = $(LDFLAGS) -lpthread -lm | ||
28 | |||
29 | PLATFORM ?= IMX8MP | ||
30 | |||
31 | -- | ||
32 | 2.17.1 | ||
33 | |||
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb new file mode 100644 index 00000000..88b9ee0e --- /dev/null +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | # Copyright 2021 NXP | ||
2 | DESCRIPTION = "i.MX Hantro V4L2 Daemon" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1" | ||
5 | |||
6 | DEPENDS = "imx-vpu-hantro" | ||
7 | DEPENDS_append_mx8mp = " imx-vpu-hantro-vc" | ||
8 | |||
9 | SRC_URI = " \ | ||
10 | ${FSL_MIRROR}/${BP}.tar.gz \ | ||
11 | file://0001-Makefile-Honor-LDFLAGS-from-toolchain.patch \ | ||
12 | " | ||
13 | SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2" | ||
14 | SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8" | ||
15 | |||
16 | PLATFORM_mx8mm = "IMX8MM" | ||
17 | PLATFORM_mx8mq = "IMX8MQ" | ||
18 | PLATFORM_mx8mp = "IMX8MP" | ||
19 | |||
20 | EXTRA_OEMAKE = " \ | ||
21 | CROSS_COMPILE="${HOST_PREFIX}" \ | ||
22 | SDKTARGETSYSROOT="${STAGING_DIR_TARGET}" \ | ||
23 | CTRLSW_HDRPATH="${STAGING_INCDIR}" \ | ||
24 | PLATFORM="${PLATFORM}" \ | ||
25 | " | ||
26 | |||
27 | do_install () { | ||
28 | oe_runmake install DEST_DIR="${D}" | ||
29 | } | ||
30 | |||
31 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
32 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" | ||
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb index 6bac0e46..20ac87c7 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb | |||
@@ -30,4 +30,6 @@ do_install () { | |||
30 | 30 | ||
31 | FILES_${PN} += "/unit_tests" | 31 | FILES_${PN} += "/unit_tests" |
32 | 32 | ||
33 | RDEPENDS_${PN} += "imx-vpu-hantro-daemon" | ||
34 | |||
33 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" | 35 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" |