]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
mesa: add PACKAGECONFIG for video-codecs
authorMarkus Volk <f_l_k@t-online.de>
Sat, 4 Feb 2023 09:13:01 +0000 (10:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Feb 2023 21:54:22 +0000 (21:54 +0000)
'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 <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/mesa.inc

index 0ec681cf208d2da90f1e32fce02cc5ff5d822c6f..cc4aa5eeabaef7091511971e0bbbf4999a248a50 100644 (file)
@@ -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"