diff options
| -rw-r--r-- | meta/conf/distro/include/no-gplv3.inc | 24 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/incompatible_lic.py | 16 |
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 | ||
| 9 | 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" | ||
| 10 | RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch" | ||
| 11 | RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip" | ||
| 12 | |||
| 13 | # Settings for weston | ||
| 14 | # direct gpl3 dependencies | ||
| 15 | RRECOMMENDS:packagegroup-base-vfat:remove = "dosfstools" | ||
| 16 | PACKAGECONFIG: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 | ||
| 20 | IMAGE_FEATURES:remove:pn-core-image-weston = "package-management" | ||
| 21 | CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm" | ||
| 22 | |||
| 23 | # matchbox-terminal depends on vte, which is gpl3 | ||
| 24 | CORE_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*" | |||
| 144 | IMAGE_CLASSES += "testimage" | 144 | IMAGE_CLASSES += "testimage" |
| 145 | INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0* LGPL-3.0*" | 145 | INCOMPATIBLE_LICENSE:pn-core-image-full-cmdline = "GPL-3.0* LGPL-3.0*" |
| 146 | INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0* LGPL-3.0*" | 146 | INCOMPATIBLE_LICENSE:pn-core-image-weston = "GPL-3.0* LGPL-3.0*" |
| 147 | # Settings for full-cmdline | 147 | |
| 148 | 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" | 148 | require conf/distro/include/no-gplv3.inc |
| 149 | RDEPENDS:packagegroup-core-full-cmdline-dev-utils:remove = "diffutils m4 make patch" | ||
| 150 | RDEPENDS:packagegroup-core-full-cmdline-multiuser:remove = "gzip" | ||
| 151 | # Settings for weston | ||
| 152 | # direct gpl3 dependencies | ||
| 153 | RRECOMMENDS:packagegroup-base-vfat:remove = "dosfstools" | ||
| 154 | PACKAGECONFIG: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 | ||
| 157 | IMAGE_FEATURES:remove:pn-core-image-weston = "package-management" | ||
| 158 | CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm" | ||
| 159 | # matchbox-terminal depends on vte, which is gpl3 | ||
| 160 | CORE_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') |
