From: Markus Volk Date: Sat, 4 Feb 2023 09:13:01 +0000 (+0100) Subject: mesa: add PACKAGECONFIG for video-codecs X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1792 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a928ca5279b6836df9ae1cf9d878c3ee0fa63eb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git mesa: add PACKAGECONFIG for video-codecs 'mesa' no longer provides support for it by default because these codecs are patent encumbered. Hide the build behind the commercial flag Signed-off-by: Markus Volk Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 0ec681cf208..cc4aa5eeaba 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -86,6 +86,7 @@ PACKAGECONFIG = " \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ + ${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'video-codecs', '', d)} \ " # "gbm" requires "opengl" @@ -178,6 +179,9 @@ PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" +VIDEO_CODECS = "vc1dec,h264dec,h264enc,h265dec,h265enc" +PACKAGECONFIG[video-codecs] = "-Dvideo-codecs=${@strip_comma('${VIDEO_CODECS}')}, -Dvideo-codecs=''" + # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer"