From 1261040dba21994131ef519012ee4c35bf2cd9f9 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Thu, 13 Jun 2024 10:07:02 +0200 Subject: imx-vpuwrap: fix compile time error GCC-14 set more warnings to errors, patch the code so it compiles. Signed-off-by: Max Krummenacher --- ..._hantro_encoder-add-sys-time.h-for-gettim.patch | 28 ++++++++++++++++++++++ recipes-multimedia/imx-vpuwrap/imx-vpuwrap_git.bb | 5 +++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 recipes-multimedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch 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 @@ +From 482c639a0da4b093cfc029009604e9653ced33c4 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Thu, 13 Jun 2024 07:15:12 +0000 +Subject: [PATCH] vpu_wrapper_hantro_encoder: add sys/time.h for gettimeofday + +Fixes: +| ../git/vpu_wrapper_hantro_encoder.c:953:3: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] + +Signed-off-by: Max Krummenacher +--- + vpu_wrapper_hantro_encoder.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/vpu_wrapper_hantro_encoder.c b/vpu_wrapper_hantro_encoder.c +index 3819c389320c..635c98bf1f19 100755 +--- a/vpu_wrapper_hantro_encoder.c ++++ b/vpu_wrapper_hantro_encoder.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + + #include "headers/OMX_Video.h" +-- +2.42.0 + 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" DEPENDS = "virtual/imxvpu" DEPENDS:append:mx8mp-nxp-bsp = " imx-vpu-hantro-vc" -SRC_URI = "git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH}" +SRC_URI = " \ + git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH} \ + file://0001-vpu_wrapper_hantro_encoder-add-sys-time.h-for-gettim.patch \ +" SRCBRANCH = "MM_04.08.03_2312_L6.6.y" SRCREV = "f974cecdb00b4a214e4b5229f2279e772ee43306" -- cgit v1.2.3-54-g00ecf