diff options
Diffstat (limited to 'recipes-multimedia/imx-vpuwrap')
-rw-r--r-- | recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_VCencoder-add-sys-time.h-for-gett.patch | 31 | ||||
-rw-r--r-- | recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch (renamed from recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch) | 19 | ||||
-rw-r--r-- | recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb | 15 |
3 files changed, 18 insertions, 47 deletions
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_VCencoder-add-sys-time.h-for-gett.patch b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_VCencoder-add-sys-time.h-for-gett.patch deleted file mode 100644 index ab8b50de4..000000000 --- a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_VCencoder-add-sys-time.h-for-gett.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From a57daf8f58cf69be06de8ebc9eab3a3077143760 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hiago De Franco <hiago.franco@toradex.com> | ||
3 | Date: Fri, 26 Jul 2024 14:43:55 -0300 | ||
4 | Subject: [PATCH] vpu_wrapper_hantro_VCencoder: add sys/time.h for gettimeofday | ||
5 | |||
6 | Fixes: | ||
7 | | ../git/vpu_wrapper_hantro_VCencoder.c:1965:5: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] | ||
8 | | 1965 | gettimeofday (&pObj->tvBegin, NULL); | ||
9 | | | ^~~~~~~~~~~~ | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/nxp-imx/imx-vpuwrap/pull/2] | ||
12 | Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> | ||
13 | --- | ||
14 | vpu_wrapper_hantro_VCencoder.c | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/vpu_wrapper_hantro_VCencoder.c b/vpu_wrapper_hantro_VCencoder.c | ||
18 | index efae31a77ca4..6185cfc067d1 100755 | ||
19 | --- a/vpu_wrapper_hantro_VCencoder.c | ||
20 | +++ b/vpu_wrapper_hantro_VCencoder.c | ||
21 | @@ -17,6 +17,7 @@ | ||
22 | #include <stdio.h> | ||
23 | #include <stdlib.h> | ||
24 | #include <string.h> | ||
25 | +#include <sys/time.h> | ||
26 | #include <time.h> | ||
27 | #include <math.h> | ||
28 | #include <fcntl.h> | ||
29 | -- | ||
30 | 2.39.2 | ||
31 | |||
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-fix-missing-include.patch index cbf37417e..74ea5206c 100644 --- 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-fix-missing-include.patch | |||
@@ -1,10 +1,13 @@ | |||
1 | From 482c639a0da4b093cfc029009604e9653ced33c4 Mon Sep 17 00:00:00 2001 | 1 | From a3c2f61649afd05e4bab457370f0b32d7644505c Mon Sep 17 00:00:00 2001 |
2 | From: Max Krummenacher <max.krummenacher@toradex.com> | 2 | From: Max Krummenacher <max.krummenacher@toradex.com> |
3 | Date: Thu, 13 Jun 2024 07:15:12 +0000 | 3 | Date: Mon, 3 Mar 2025 08:24:51 +0000 |
4 | Subject: [PATCH] vpu_wrapper_hantro_encoder: add sys/time.h for gettimeofday | 4 | Subject: [PATCH] vpu_wrapper_hantro_encoder: fix missing include |
5 | 5 | ||
6 | Fixes: | 6 | gettimeofday is declared in sys/time.h. Add the include. |
7 | |||
8 | Fixes the build error: | ||
7 | | ../git/vpu_wrapper_hantro_encoder.c:953:3: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] | 9 | | ../git/vpu_wrapper_hantro_encoder.c:953:3: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] |
10 | | 953 | gettimeofday (&pObj->tvEnd, NULL); | ||
8 | 11 | ||
9 | Upstream-Status: Pending | 12 | Upstream-Status: Pending |
10 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | 13 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> |
@@ -13,17 +16,17 @@ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | |||
13 | 1 file changed, 1 insertion(+) | 16 | 1 file changed, 1 insertion(+) |
14 | 17 | ||
15 | diff --git a/vpu_wrapper_hantro_encoder.c b/vpu_wrapper_hantro_encoder.c | 18 | diff --git a/vpu_wrapper_hantro_encoder.c b/vpu_wrapper_hantro_encoder.c |
16 | index 3819c389320c..635c98bf1f19 100755 | 19 | index 3819c389320c..a0bdb2f4f6c0 100755 |
17 | --- a/vpu_wrapper_hantro_encoder.c | 20 | --- a/vpu_wrapper_hantro_encoder.c |
18 | +++ b/vpu_wrapper_hantro_encoder.c | 21 | +++ b/vpu_wrapper_hantro_encoder.c |
19 | @@ -24,6 +24,7 @@ | 22 | @@ -25,6 +25,7 @@ |
20 | #include <stdlib.h> | ||
21 | #include <string.h> | 23 | #include <string.h> |
22 | #include <time.h> | 24 | #include <time.h> |
23 | +#include <sys/time.h> | ||
24 | #include <semaphore.h> | 25 | #include <semaphore.h> |
26 | +#include <sys/time.h> | ||
25 | 27 | ||
26 | #include "headers/OMX_Video.h" | 28 | #include "headers/OMX_Video.h" |
29 | #include "headers/OMX_VideoExt.h" | ||
27 | -- | 30 | -- |
28 | 2.42.0 | 31 | 2.42.0 |
29 | 32 | ||
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb index f7a8e3521..39729f712 100644 --- a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb +++ b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb | |||
@@ -1,27 +1,26 @@ | |||
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
2 | # Copyright 2017-2023 NXP | 2 | # Copyright (C) 2017-2023 NXP |
3 | # Released under the MIT license (see COPYING.MIT for the terms) | 3 | # Released under the MIT license (see COPYING.MIT for the terms) |
4 | 4 | ||
5 | DESCRIPTION = "Freescale Multimedia VPU wrapper" | 5 | DESCRIPTION = "Freescale Multimedia VPU wrapper" |
6 | LICENSE = "Proprietary" | 6 | LICENSE = "Proprietary" |
7 | SECTION = "multimedia" | 7 | SECTION = "multimedia" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=10c0fda810c63b052409b15a5445671a" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3" |
9 | 9 | ||
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 = " \ | 13 | SRC_URI = " \ |
14 | git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH} \ | 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 \ | 15 | file://0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch \ |
16 | file://0001-vpu_wrapper_hantro_VCencoder-add-sys-time.h-for-gett.patch \ | ||
17 | " | 16 | " |
18 | SRCBRANCH = "MM_04.09.00_2405_L6.6.y" | 17 | SRCBRANCH = "MM_04.09.03_2412_L6.12.y" |
19 | SRCREV = "73093da30dc4053c9f69813a6447091bfca5429b" | 18 | SRCREV = "d8703ee3245797111ad21c52982efa8b6db33241" |
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | 19 | ||
23 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |
24 | 21 | ||
22 | CFLAGS += " -Wno-error=implicit-function-declaration" | ||
23 | |||
25 | do_install:append() { | 24 | do_install:append() { |
26 | # FIXME: Drop examples for now | 25 | # FIXME: Drop examples for now |
27 | rm -r ${D}${datadir} | 26 | rm -r ${D}${datadir} |