summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2023-02-04 10:13:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-08 10:29:00 +0000
commit2cc05cd5b35ea466043a256f407d70f0d8d2cfcd (patch)
treefab0f0e35cd2af28145d7cbc7d6e2bef20ff7646 /meta
parentc00e3de18fade40fc96fae4cd8aec7186bd87d8b (diff)
downloadpoky-2cc05cd5b35ea466043a256f407d70f0d8d2cfcd.tar.gz
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 (From OE-Core rev: 8a928ca5279b6836df9ae1cf9d878c3ee0fa63eb) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 0ec681cf20..cc4aa5eeab 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -86,6 +86,7 @@ PACKAGECONFIG = " \
86 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ 86 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \
87 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ 87 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \
88 ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ 88 ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \
89 ${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'video-codecs', '', d)} \
89" 90"
90 91
91# "gbm" requires "opengl" 92# "gbm" requires "opengl"
@@ -178,6 +179,9 @@ PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
178 179
179PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" 180PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors"
180 181
182VIDEO_CODECS = "vc1dec,h264dec,h264enc,h265dec,h265enc"
183PACKAGECONFIG[video-codecs] = "-Dvideo-codecs=${@strip_comma('${VIDEO_CODECS}')}, -Dvideo-codecs=''"
184
181# llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) 185# llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
182FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer" 186FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer"
183 187