mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ab407efcb0
commit
ebee9854d7
@@ -122,14 +122,26 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0 LGPL-3.0"
|
||||
""")
|
||||
bitbake('core-image-minimal')
|
||||
|
||||
def test_core_image_full_cmdline(self):
|
||||
def test_core_image_full_cmdline_weston(self):
|
||||
self.write_config("""
|
||||
INHERIT += "testimage"\n
|
||||
INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0 LGPL-3.0"\n
|
||||
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
|
||||
RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch"\n
|
||||
RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip"\n
|
||||
INHERIT += "testimage"
|
||||
INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0 LGPL-3.0"
|
||||
INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0 LGPL-3.0"
|
||||
# Settings for full-cmdline
|
||||
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"
|
||||
RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch"
|
||||
RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip"
|
||||
# Settings for weston
|
||||
# direct gpl3 dependencies
|
||||
RRECOMMENDS:packagegroup-base-vfat:remove = "dosfstools"
|
||||
PACKAGECONFIG:remove:pn-bluez5 = "readline"
|
||||
# dnf pulls in gpg which is gpl3; it also pulls in python3-rpm which pulls in rpm-build which pulls in bash
|
||||
# so install rpm but not dnf
|
||||
IMAGE_FEATURES:remove:pn-core-image-weston = "package-management"
|
||||
CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm"
|
||||
# matchbox-terminal depends on vte, which is gpl3
|
||||
CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal"
|
||||
""")
|
||||
bitbake('core-image-full-cmdline')
|
||||
bitbake('-c testimage core-image-full-cmdline')
|
||||
bitbake('core-image-full-cmdline core-image-weston')
|
||||
bitbake('-c testimage core-image-full-cmdline core-image-weston')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user