summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/distro/include/no-gplv3.inc24
-rw-r--r--meta/lib/oeqa/selftest/cases/incompatible_lic.py16
2 files changed, 26 insertions, 14 deletions
diff --git a/meta/conf/distro/include/no-gplv3.inc b/meta/conf/distro/include/no-gplv3.inc
new file mode 100644
index 0000000000..48cff29ad4
--- /dev/null
+++ b/meta/conf/distro/include/no-gplv3.inc
@@ -0,0 +1,24 @@
1#
2# This include file is to document commonly used configuration options to minimise
3# GPLv3 content in images.
4#
5# The intent is to allow some images/configurations to build, not everything. There
6# will be a cost in reduced functionality.
7
8# Settings for full-cmdline
9RDEPENDS:packagegroup-core-full-cmdline-utils:remove = "bash bc coreutils cpio ed findutils gawk grep mc mc-fish mc-helpers mc-helpers-perl sed tar time"
10RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch"
11RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip"
12
13# Settings for weston
14# direct gpl3 dependencies
15RRECOMMENDS:packagegroup-base-vfat:remove = "dosfstools"
16PACKAGECONFIG:remove:pn-bluez5 = "readline"
17
18# dnf pulls in gpg which is gpl3; it also pulls in python3-rpm which pulls in rpm-build which pulls in bash
19# so install rpm but not dnf
20IMAGE_FEATURES:remove:pn-core-image-weston = "package-management"
21CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm"
22
23# matchbox-terminal depends on vte, which is gpl3
24CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal"
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
index 1597d30ab0..f4af67a239 100644
--- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py
+++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
@@ -144,20 +144,8 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*"
144IMAGE_CLASSES += "testimage" 144IMAGE_CLASSES += "testimage"
145INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0* LGPL-3.0*" 145INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0* LGPL-3.0*"
146INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0* LGPL-3.0*" 146INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0* LGPL-3.0*"
147# Settings for full-cmdline 147
148RDEPENDS:packagegroup-core-full-cmdline-utils:remove = "bash bc coreutils cpio ed findutils gawk grep mc mc-fish mc-helpers mc-helpers-perl sed tar time" 148require conf/distro/include/no-gplv3.inc
149RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch"
150RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip"
151# Settings for weston
152# direct gpl3 dependencies
153RRECOMMENDS:packagegroup-base-vfat:remove = "dosfstools"
154PACKAGECONFIG:remove:pn-bluez5 = "readline"
155# dnf pulls in gpg which is gpl3; it also pulls in python3-rpm which pulls in rpm-build which pulls in bash
156# so install rpm but not dnf
157IMAGE_FEATURES:remove:pn-core-image-weston = "package-management"
158CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm"
159# matchbox-terminal depends on vte, which is gpl3
160CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal"
161""") 149""")
162 bitbake('core-image-full-cmdline core-image-weston') 150 bitbake('core-image-full-cmdline core-image-weston')
163 bitbake('-c testimage core-image-full-cmdline core-image-weston') 151 bitbake('-c testimage core-image-full-cmdline core-image-weston')