summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/imx-vpuwrap
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/imx-vpuwrap')
-rw-r--r--recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch32
-rw-r--r--recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb17
2 files changed, 42 insertions, 7 deletions
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch
new file mode 100644
index 000000000..74ea5206c
--- /dev/null
+++ b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch
@@ -0,0 +1,32 @@
1From a3c2f61649afd05e4bab457370f0b32d7644505c Mon Sep 17 00:00:00 2001
2From: Max Krummenacher <max.krummenacher@toradex.com>
3Date: Mon, 3 Mar 2025 08:24:51 +0000
4Subject: [PATCH] vpu_wrapper_hantro_encoder: fix missing include
5
6gettimeofday is declared in sys/time.h. Add the include.
7
8Fixes the build error:
9| ../git/vpu_wrapper_hantro_encoder.c:953:3: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
10| 953 | gettimeofday (&pObj->tvEnd, NULL);
11
12Upstream-Status: Pending
13Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
14---
15 vpu_wrapper_hantro_encoder.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/vpu_wrapper_hantro_encoder.c b/vpu_wrapper_hantro_encoder.c
19index 3819c389320c..a0bdb2f4f6c0 100755
20--- a/vpu_wrapper_hantro_encoder.c
21+++ b/vpu_wrapper_hantro_encoder.c
22@@ -25,6 +25,7 @@
23 #include <string.h>
24 #include <time.h>
25 #include <semaphore.h>
26+#include <sys/time.h>
27
28 #include "headers/OMX_Video.h"
29 #include "headers/OMX_VideoExt.h"
30--
312.42.0
32
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb
index af15e7b1b..39729f712 100644
--- a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb
+++ b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb
@@ -1,23 +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
5DESCRIPTION = "Freescale Multimedia VPU wrapper" 5DESCRIPTION = "Freescale Multimedia VPU wrapper"
6LICENSE = "Proprietary" 6LICENSE = "Proprietary"
7SECTION = "multimedia" 7SECTION = "multimedia"
8LIC_FILES_CHKSUM = "file://COPYING;md5=2827219e81f28aba7c6a569f7c437fa7" 8LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3"
9 9
10DEPENDS = "virtual/imxvpu" 10DEPENDS = "virtual/imxvpu"
11DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc" 11DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc"
12 12
13SRC_URI = "git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH}" 13SRC_URI = " \
14SRCBRANCH = "MM_04.08.03_2312_L6.6.y" 14 git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH} \
15SRCREV = "f974cecdb00b4a214e4b5229f2279e772ee43306" 15 file://0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch \
16 16"
17S = "${WORKDIR}/git" 17SRCBRANCH = "MM_04.09.03_2412_L6.12.y"
18SRCREV = "d8703ee3245797111ad21c52982efa8b6db33241"
18 19
19inherit autotools pkgconfig 20inherit autotools pkgconfig
20 21
22CFLAGS += " -Wno-error=implicit-function-declaration"
23
21do_install:append() { 24do_install:append() {
22 # FIXME: Drop examples for now 25 # FIXME: Drop examples for now
23 rm -r ${D}${datadir} 26 rm -r ${D}${datadir}