summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2021-02-12 10:51:57 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-26 15:30:39 +0000
commitdfd91796bd255d80247863688558161d468c07c7 (patch)
tree45954f2064b42ed3c5dfce22d3a894cc440f2a55
parentf651389dfadb48f01e14f82efcbef93c4c489b6d (diff)
downloadpoky-dfd91796bd255d80247863688558161d468c07c7.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: 1582f67743d9017c2e1462581d61d6501a27c3cd) 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: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-multimedia/libomxil/libomxil_0.9.3.bb6
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 2061c280e4..82cdaf54c7 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 \
4HOMEPAGE = "http://omxil.sourceforge.net/" 4HOMEPAGE = "http://omxil.sourceforge.net/"
5 5
6LICENSE = "LGPLv2.1+" 6LICENSE = "LGPLv2.1+"
7LICENSE_FLAGS = "commercial" 7LICENSE_FLAGS = "${@bb.utils.contains('PACKAGECONFIG', 'amr', 'commercial', '', d)}"
8LIC_FILES_CHKSUM = "file://COPYING;md5=ae6f0f4dbc7ac193b50f323a6ae191cb \ 8LIC_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
@@ -28,6 +28,10 @@ PROVIDES += "virtual/libomxil"
28 28
29CFLAGS += "-fcommon" 29CFLAGS += "-fcommon"
30 30
31PACKAGECONFIG ??= ""
32
33PACKAGECONFIG[amr] = "--enable-amr,,"
34
31# 35#
32# The .so files under ${libdir}/bellagio are not intended to be versioned and symlinked. 36# The .so files under ${libdir}/bellagio are not intended to be versioned and symlinked.
33# Make sure they get packaged in the main package. 37# Make sure they get packaged in the main package.