|
@@ -73,3 +73,21 @@ INCOMPATIBLE_LICENSE_pn-core-image-minimal = "GPL-3.0 LGPL-3.0"
|
|
|
|
|
|
bitbake('core-image-minimal')
|
|
|
|
|
|
+class NoGPL3InImagesTests(OESelftestTestCase):
|
|
|
+ def test_core_image_minimal(self):
|
|
|
+ self.write_config("""
|
|
|
+INCOMPATIBLE_LICENSE_pn-core-image-minimal = "GPL-3.0 LGPL-3.0"
|
|
|
+""")
|
|
|
+ bitbake('core-image-minimal')
|
|
|
+
|
|
|
+ def test_core_image_full_cmdline(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
|
|
|
+""")
|
|
|
+ bitbake('core-image-full-cmdline')
|
|
|
+ bitbake('-c testimage core-image-full-cmdline')
|
|
|
+
|