diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-07-30 13:45:07 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:11 +0100 |
commit | ebee9854d735bf6321020e791ca84389dc91834b (patch) | |
tree | 348ec4fa290e054c7da31ec2fb1e0a4b62285a38 /meta | |
parent | ab407efcb0b590acb87177d7451b962f07c0ec15 (diff) | |
download | poky-ebee9854d735bf6321020e791ca84389dc91834b.tar.gz |
selftest: add core-image-weston to no-gpl3-no-meta-gpl2 image test
This demonstrates more of the tricks and techniques that can be used
to achieve gpl3-free images withough having to roll back to ancient
versions of various core items via meta-gpl2.
(From OE-Core rev: cb78db7aa14f147ce79c12539c9435cab06f92bf)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/incompatible_lic.py | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py index aa8e085754..fd3b3f409e 100644 --- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py +++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py | |||
@@ -122,14 +122,26 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0 LGPL-3.0" | |||
122 | """) | 122 | """) |
123 | bitbake('core-image-minimal') | 123 | bitbake('core-image-minimal') |
124 | 124 | ||
125 | def test_core_image_full_cmdline(self): | 125 | def test_core_image_full_cmdline_weston(self): |
126 | self.write_config(""" | 126 | self.write_config(""" |
127 | INHERIT += "testimage"\n | 127 | INHERIT += "testimage" |
128 | INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0 LGPL-3.0"\n | 128 | INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0 LGPL-3.0" |
129 | RDEPENDS: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"\n | 129 | INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0 LGPL-3.0" |
130 | RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch"\n | 130 | # Settings for full-cmdline |
131 | RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip"\n | 131 | RDEPENDS: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" |
132 | RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch" | ||
133 | RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip" | ||
134 | # Settings for weston | ||
135 | # direct gpl3 dependencies | ||
136 | RRECOMMENDS:packagegroup-base-vfat:remove = "dosfstools" | ||
137 | PACKAGECONFIG:remove:pn-bluez5 = "readline" | ||
138 | # dnf pulls in gpg which is gpl3; it also pulls in python3-rpm which pulls in rpm-build which pulls in bash | ||
139 | # so install rpm but not dnf | ||
140 | IMAGE_FEATURES:remove:pn-core-image-weston = "package-management" | ||
141 | CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm" | ||
142 | # matchbox-terminal depends on vte, which is gpl3 | ||
143 | CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal" | ||
132 | """) | 144 | """) |
133 | bitbake('core-image-full-cmdline') | 145 | bitbake('core-image-full-cmdline core-image-weston') |
134 | bitbake('-c testimage core-image-full-cmdline') | 146 | bitbake('-c testimage core-image-full-cmdline core-image-weston') |
135 | 147 | ||