From 923ac579c78ca42d425c303c34b65e199470ef67 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Tue, 11 Feb 2025 16:17:42 +0100 Subject: [PATCH] libcamera: fix c++ flags and failed buildpaths QA check Building libcamera from the latest version of meta-or fails the buildpaths qa check with a number of generated binaries. Looking into the logs, it seemed that the -f*-prefix-map flags were present to gcc invocations, but the used flags were quite off for g++ invocations. It seems that using the cpp_args meson option overwrites (at least most of) the CXXFLAGS set by Yocto, including the -f*-prefix-map flags. To avoid this, append the extra compile flag to the CXXFLAGS variable instead of using meson's cpp_args option. Signed-off-by: Gyorgy Sarvari --- .../recipes-multimedia/libcamera/libcamera_%.bbappend | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera/libcamera_%.bbappend b/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera/libcamera_%.bbappend index 541c49c..c152b78 100644 --- a/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera/libcamera_%.bbappend +++ b/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera/libcamera_%.bbappend @@ -1,2 +1,3 @@ -PACKAGECONFIG[raspberrypi] = "-Dpipelines=rpi/vc4 -Dipas=rpi/vc4 -Dcpp_args=-Wno-unaligned-access" +PACKAGECONFIG[raspberrypi] = "-Dpipelines=rpi/vc4 -Dipas=rpi/vc4" PACKAGECONFIG:append:rpi = " raspberrypi" +CXXFLAGS:append:rpi = " -Wno-unaligned-access "