diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2024-06-13 08:21:53 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 08:21:53 -0300 |
commit | 94cf1e5f109942f49712a8baf8c67d442f97c8bf (patch) | |
tree | 3b3d5bfd8d8fac36c43e39e96e2528efa979f883 | |
parent | 3f8b3bf98fa88fc1a0143cc72464b194fd1b9cde (diff) | |
parent | 1261040dba21994131ef519012ee4c35bf2cd9f9 (diff) | |
download | meta-freescale-94cf1e5f109942f49712a8baf8c67d442f97c8bf.tar.gz |
Merge pull request #1844 from MaxKrummenacher/master
Update imx-vpu-hantro and friends and fix compiler errors
-rw-r--r-- | recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.9.1.bb (renamed from recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.9.0.bb) | 5 | ||||
-rw-r--r-- | recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.1.9.bb (renamed from recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.1.6.bb) | 3 | ||||
-rw-r--r-- | recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.28.0.bb | 36 | ||||
-rw-r--r-- | recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb | 41 | ||||
-rw-r--r-- | recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch | 28 | ||||
-rw-r--r-- | recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb | 5 |
6 files changed, 76 insertions, 42 deletions
diff --git a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.9.0.bb b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.9.1.bb index 26ebf181..76dd55b8 100644 --- a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.9.0.bb +++ b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.9.1.bb | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | DESCRIPTION = "i.MX VC8000E Encoder library" | 3 | DESCRIPTION = "i.MX VC8000E Encoder library" |
4 | LICENSE = "Proprietary" | 4 | LICENSE = "Proprietary" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=5a0bf11f745e68024f37b4724a5364fe" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=db4762b09b6bda63da103963e6e081de" |
6 | 6 | ||
7 | inherit fsl-eula-unpack | 7 | inherit fsl-eula-unpack |
8 | 8 | ||
@@ -10,8 +10,7 @@ SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | |||
10 | 10 | ||
11 | S = "${WORKDIR}/${BPN}-${PV}" | 11 | S = "${WORKDIR}/${BPN}-${PV}" |
12 | 12 | ||
13 | SRC_URI[md5sum] = "192b354d1c21836dc7338606e60b45ae" | 13 | SRC_URI[sha256sum] = "84fcefa0619def2f009ca6651c5cffcda57fed29cd7060ef68be48c5d0d7814b" |
14 | SRC_URI[sha256sum] = "62b5ba3c4aab21d0d4be3eee9b204a9bb50b83b6140ee1a3b27c648809bdfbaa" | ||
15 | 14 | ||
16 | # SCR is the location and name of the Software Content Register file | 15 | # SCR is the location and name of the Software Content Register file |
17 | # relative to ${D}${D_SUBDIR}. | 16 | # relative to ${D}${D_SUBDIR}. |
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.1.6.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.1.9.bb index f603190b..ee10518c 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.1.6.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.1.9.bb | |||
@@ -7,8 +7,7 @@ DEPENDS = "imx-vpu-hantro" | |||
7 | DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc" | 7 | DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc" |
8 | 8 | ||
9 | SRC_URI = "${FSL_MIRROR}/${BP}.tar.gz" | 9 | SRC_URI = "${FSL_MIRROR}/${BP}.tar.gz" |
10 | SRC_URI[md5sum] = "23997361dab3054e5a3757a15d33db16" | 10 | SRC_URI[sha256sum] = "80d6620063fd5e5506b05c907677b579d471a9b6daa8b26ffb963110cc680bf9" |
11 | SRC_URI[sha256sum] = "ac2b60fb754792eedcfdfc8cf59663cfeaedc402857eff13ac97a911d2c65801" | ||
12 | 11 | ||
13 | PLATFORM:mx8mm-nxp-bsp = "IMX8MM" | 12 | PLATFORM:mx8mm-nxp-bsp = "IMX8MM" |
14 | PLATFORM:mx8mq-nxp-bsp = "IMX8MQ" | 13 | PLATFORM:mx8mq-nxp-bsp = "IMX8MQ" |
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.28.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.28.0.bb deleted file mode 100644 index 0757a7fb..00000000 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.28.0.bb +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | # Copyright (C) 2017-2020 NXP | ||
2 | |||
3 | DESCRIPTION = "i.MX Hantro VPU library" | ||
4 | LICENSE = "Proprietary" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea25d099982d035af85d193c88a1b479" | ||
6 | |||
7 | PROVIDES = "virtual/imxvpu" | ||
8 | |||
9 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | ||
10 | SRC_URI[md5sum] = "81b4eb801349a0c198b7cc43eb8b6097" | ||
11 | SRC_URI[sha256sum] = "e868e12945b4f217e2e0511fdc2587875d6c9124e8673b67f1e7de367ff5012f" | ||
12 | |||
13 | inherit fsl-eula-unpack use-imx-headers | ||
14 | |||
15 | PARALLEL_MAKE="-j 1" | ||
16 | |||
17 | PLATFORM:mx8mm-nxp-bsp = "IMX8MM" | ||
18 | PLATFORM:mx8mq-nxp-bsp = "IMX8MQ" | ||
19 | PLATFORM:mx8mp-nxp-bsp = "IMX8MP" | ||
20 | |||
21 | EXTRA_OEMAKE = " \ | ||
22 | CROSS_COMPILE="${HOST_PREFIX}" \ | ||
23 | SDKTARGETSYSROOT="${STAGING_DIR_TARGET}" \ | ||
24 | PLATFORM="${PLATFORM}" \ | ||
25 | " | ||
26 | |||
27 | do_install () { | ||
28 | oe_runmake install DEST_DIR="${D}" | ||
29 | } | ||
30 | |||
31 | FILES:${PN} += "/unit_tests" | ||
32 | |||
33 | RDEPENDS:${PN} += "imx-vpu-hantro-daemon" | ||
34 | |||
35 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
36 | COMPATIBLE_MACHINE = "(mx8mq-nxp-bsp|mx8mm-nxp-bsp|mx8mp-nxp-bsp)" | ||
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb new file mode 100644 index 00000000..2a35f9ac --- /dev/null +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | # Copyright (C) 2017-2020 NXP | ||
2 | |||
3 | DESCRIPTION = "i.MX Hantro VPU library" | ||
4 | LICENSE = "Proprietary" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=44a8052c384584ba09077e85a3d1654f" | ||
6 | |||
7 | PROVIDES = "virtual/imxvpu" | ||
8 | |||
9 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | ||
10 | SRC_URI[sha256sum] = "f751ab7369d48e610ea3b6b0dc5a885c70a510861d6b46296ffc063fed370003" | ||
11 | |||
12 | inherit fsl-eula-unpack use-imx-headers | ||
13 | |||
14 | PARALLEL_MAKE="-j 1" | ||
15 | |||
16 | PLATFORM:mx8mm-nxp-bsp = "IMX8MM" | ||
17 | PLATFORM:mx8mq-nxp-bsp = "IMX8MQ" | ||
18 | PLATFORM:mx8mp-nxp-bsp = "IMX8MP" | ||
19 | |||
20 | #| ../../source/h264high/h264decapi.c:1803:22: error: assignment to 'const u8 *' {aka 'const unsigned char *'} from incompatible pointer type 'u32 *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] | ||
21 | #| 1803 | ref_data = ref.virtual_address; | ||
22 | #| ../../source/h264high/h264decapi.c:2086:22: error: assignment to 'const u8 *' {aka 'const unsigned char *'} from incompatible pointer type 'u32 *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] | ||
23 | #| 2086 | ref_data = ref.virtual_address; | ||
24 | |||
25 | CFLAGS += " -Wno-error=incompatible-pointer-types" | ||
26 | EXTRA_OEMAKE = " \ | ||
27 | CROSS_COMPILE="${HOST_PREFIX}" \ | ||
28 | SDKTARGETSYSROOT="${STAGING_DIR_TARGET}" \ | ||
29 | PLATFORM="${PLATFORM}" \ | ||
30 | " | ||
31 | |||
32 | do_install () { | ||
33 | oe_runmake install DEST_DIR="${D}" | ||
34 | } | ||
35 | |||
36 | FILES:${PN} += "/unit_tests" | ||
37 | |||
38 | RDEPENDS:${PN} += "imx-vpu-hantro-daemon" | ||
39 | |||
40 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
41 | COMPATIBLE_MACHINE = "(mx8mq-nxp-bsp|mx8mm-nxp-bsp|mx8mp-nxp-bsp)" | ||
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch new file mode 100644 index 00000000..459d8626 --- /dev/null +++ b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 482c639a0da4b093cfc029009604e9653ced33c4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
3 | Date: Thu, 13 Jun 2024 07:15:12 +0000 | ||
4 | Subject: [PATCH] vpu_wrapper_hantro_encoder: add sys/time.h for gettimeofday | ||
5 | |||
6 | Fixes: | ||
7 | | ../git/vpu_wrapper_hantro_encoder.c:953:3: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] | ||
8 | |||
9 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
10 | --- | ||
11 | vpu_wrapper_hantro_encoder.c | 1 + | ||
12 | 1 file changed, 1 insertion(+) | ||
13 | |||
14 | diff --git a/vpu_wrapper_hantro_encoder.c b/vpu_wrapper_hantro_encoder.c | ||
15 | index 3819c389320c..635c98bf1f19 100755 | ||
16 | --- a/vpu_wrapper_hantro_encoder.c | ||
17 | +++ b/vpu_wrapper_hantro_encoder.c | ||
18 | @@ -24,6 +24,7 @@ | ||
19 | #include <stdlib.h> | ||
20 | #include <string.h> | ||
21 | #include <time.h> | ||
22 | +#include <sys/time.h> | ||
23 | #include <semaphore.h> | ||
24 | |||
25 | #include "headers/OMX_Video.h" | ||
26 | -- | ||
27 | 2.42.0 | ||
28 | |||
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb index af15e7b1..bae9c928 100644 --- a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb +++ b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb | |||
@@ -10,7 +10,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=2827219e81f28aba7c6a569f7c437fa7" | |||
10 | DEPENDS = "virtual/imxvpu" | 10 | DEPENDS = "virtual/imxvpu" |
11 | DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc" | 11 | DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc" |
12 | 12 | ||
13 | SRC_URI = "git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH}" | 13 | SRC_URI = " \ |
14 | git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH} \ | ||
15 | file://0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch \ | ||
16 | " | ||
14 | SRCBRANCH = "MM_04.08.03_2312_L6.6.y" | 17 | SRCBRANCH = "MM_04.08.03_2312_L6.6.y" |
15 | SRCREV = "f974cecdb00b4a214e4b5229f2279e772ee43306" | 18 | SRCREV = "f974cecdb00b4a214e4b5229f2279e772ee43306" |
16 | 19 | ||