diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2021-02-12 10:51:57 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-04 17:39:10 +0000 |
commit | 0c0005cd5102af2092d3339cac85105f52ef628c (patch) | |
tree | 8bb9806d829689f25df033580879140068ef79c8 /meta/recipes-multimedia/libomxil | |
parent | c138bf05609c3e4fb39ce9791c8b40676eab8f3b (diff) | |
download | poky-0c0005cd5102af2092d3339cac85105f52ef628c.tar.gz |
libomxil: Fix up commercial license flag
The commercial license flag on libomxil is set because it may include
the Adaptive Multi-Rate audio codec (AMR) using FFmepg, which is patent
encumbered.
It turns out this component is disabled by default in the recipe; add a
PACKAGECONFIG to enable it and trigger the "commercial" LICENSE_FLAGS on
it. This make the default build configuration clean unless a user
specifically asks for AMR support, and prevents them from marking the
recipe with the "commerical" flag unnecessarily which could hide
potential problems later on.
(From OE-Core rev: 42f742452df1258bd0679c115ed90c45a8a893d9)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5f61e20002c2af93e2d6810574e23606925526ee)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/libomxil')
-rw-r--r-- | meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb b/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb index 271c2a30a3..8f3b76a920 100644 --- a/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb +++ b/meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb | |||
@@ -4,7 +4,7 @@ DESCRIPTION = "Bellagio is an opensource implementation of the Khronos OpenMAX \ | |||
4 | HOMEPAGE = "http://omxil.sourceforge.net/" | 4 | HOMEPAGE = "http://omxil.sourceforge.net/" |
5 | 5 | ||
6 | LICENSE = "LGPLv2.1+" | 6 | LICENSE = "LGPLv2.1+" |
7 | LICENSE_FLAGS = "commercial" | 7 | LICENSE_FLAGS = "${@bb.utils.contains('PACKAGECONFIG', 'amr', 'commercial', '', d)}" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=ae6f0f4dbc7ac193b50f323a6ae191cb \ | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=ae6f0f4dbc7ac193b50f323a6ae191cb \ |
9 | file://src/omxcore.h;beginline=1;endline=27;md5=806b1e5566c06486fe8e42b461e03a90" | 9 | file://src/omxcore.h;beginline=1;endline=27;md5=806b1e5566c06486fe8e42b461e03a90" |
10 | 10 | ||
@@ -26,6 +26,10 @@ EXTRA_OECONF += "--disable-doc --disable-Werror" | |||
26 | 26 | ||
27 | PROVIDES += "virtual/libomxil" | 27 | PROVIDES += "virtual/libomxil" |
28 | 28 | ||
29 | PACKAGECONFIG ??= "" | ||
30 | |||
31 | PACKAGECONFIG[amr] = "--enable-amr,," | ||
32 | |||
29 | # | 33 | # |
30 | # The .so files under ${libdir}/bellagio are not intended to be versioned and symlinked. | 34 | # The .so files under ${libdir}/bellagio are not intended to be versioned and symlinked. |
31 | # Make sure they get packaged in the main package. | 35 | # Make sure they get packaged in the main package. |