From 70f8362b0e889ea1376341f87e21dd770e791d01 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 21 Nov 2022 13:37:00 +0100 Subject: imx-vpu-hantro: prevent warning from oe qa This passes among others -fdebug-prefix-map=... which prevents the following OE warning: | WARNING: imx-vpu-hantro-1.27.0-r0 do_package_qa: QA Issue: \ | File /usr/lib/.debug/libg1.so.1 in package imx-vpu-hantro-dbg contains reference to TMPDIR [buildpaths] Signed-off-by: Max Krummenacher (cherry picked from commit 0b45cf3f5bf95c583b189c2fb5eaa125bf686a7d) --- ...system-don-t-ignore-externally-set-cflags.patch | 49 ++++++++++++++++++++++ .../imx-vpu-hantro/imx-vpu-hantro_1.27.0.bb | 5 ++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 recipes-bsp/imx-vpu-hantro/imx-vpu-hantro/0001-buildsystem-don-t-ignore-externally-set-cflags.patch diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro/0001-buildsystem-don-t-ignore-externally-set-cflags.patch b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro/0001-buildsystem-don-t-ignore-externally-set-cflags.patch new file mode 100644 index 00000000..861230bb --- /dev/null +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro/0001-buildsystem-don-t-ignore-externally-set-cflags.patch @@ -0,0 +1,49 @@ +From aba22ec2e285cf7557a5049fa6181e82e7f1a489 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Mon, 21 Nov 2022 12:04:09 +0000 +Subject: [PATCH] buildsystem: don't ignore externally set cflags + +Upstream-Status: pending +Signed-off-by: Max Krummenacher +--- + decoder_sw/software/linux/h264high/Makefile | 4 ++-- + decoder_sw/software/linux/vp6/Makefile | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/decoder_sw/software/linux/h264high/Makefile b/decoder_sw/software/linux/h264high/Makefile +index 556ff71..7bdd99d 100755 +--- a/decoder_sw/software/linux/h264high/Makefile ++++ b/decoder_sw/software/linux/h264high/Makefile +@@ -50,10 +50,10 @@ CLEAR_HDRINFO_IN_SEEK = n + DEBUG = y + # Add your debugging flag (or not) to CFLAGS + ifeq ($(DEBUG),y) +- CFLAGS = $(M32) -g -O0 ++ CFLAGS += $(M32) -g -O0 + DEBFLAGS = -DDEBUG -D_ASSERT_USED -D_RANGE_CHECK -D_ERROR_PRINT + else +- CFLAGS = $(M32) -O3 ++ CFLAGS += $(M32) -O3 + DEBFLAGS = -DNDEBUG + endif + +diff --git a/decoder_sw/software/linux/vp6/Makefile b/decoder_sw/software/linux/vp6/Makefile +index b6e6914..b933d46 100755 +--- a/decoder_sw/software/linux/vp6/Makefile ++++ b/decoder_sw/software/linux/vp6/Makefile +@@ -50,10 +50,10 @@ DEBUG = y + + # Add your debugging flag (or not) to CFLAGS + ifeq ($(DEBUG),y) +- CFLAGS = -g -O0 ++ CFLAGS += -g -O0 + DEBFLAGS = -DDEBUG -D_ASSERT_USED -D_ERROR_PRINT + else +- CFLAGS = -O3 ++ CFLAGS += -O3 + DEBFLAGS = -DNDEBUG + endif + +-- +2.35.3 + diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.27.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.27.0.bb index 473d747c..35adecf8 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.27.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.27.0.bb @@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5a0bf11f745e68024f37b4724a5364fe" PROVIDES = "virtual/imxvpu" -SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" +SRC_URI = " \ + ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ + file://0001-buildsystem-don-t-ignore-externally-set-cflags.patch \ +" SRC_URI[md5sum] = "cfa0e92da0eca9cf622c4d7abc618cef" SRC_URI[sha256sum] = "7e9bcdbd067ce66a1247373cbf088945346feb0027deb61af541ebc1256277c3" -- cgit v1.2.3-54-g00ecf