base: switch to upstream INCOMPATIBLE_LICENSE#1618
base: switch to upstream INCOMPATIBLE_LICENSE#1618quaresmajose merged 5 commits intofoundriesio:mainfrom
Conversation
|
This PR requires additional changes on the ci-scripts to change the handling of the |
With the v95 we droped the image-license-checker and lmp-disable-gplv3 bbclass. foundriesio/meta-lmp#1618 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
ci-scripts adaptation foundriesio/ci-scripts#380 |
With the v95 we droped the image-license-checker and lmp-disable-gplv3 bbclass. foundriesio/meta-lmp#1618 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
With [1] we droped the bitbake image-license-checker and lmp-disable-gplv3 bbclass. So add support to the new lmp no-gplv3 config. [1] foundriesio/meta-lmp#1618 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
|
we need to first merge foundriesio/ci-scripts#380 |
This variable is not used anymore. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
- This naming alling better with the upstream implementation in oe-core - Also add the no-gplv3.inc upstream config as a new requirment Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
…iants The oe-core INCOMPATIBLE_LICENSE and the INCOMPATIBLE_LICENSE_EXCEPTIONS can be image specific using overrides but for this to happen we need to know the image name in advance. The syntax for that is for example the following: INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0-or-later" INCOMPATIBLE_LICENSE_EXCEPTIONS:pn-core-image-minimal = "bash:GPL-3.0-or-later" So for cases where we don't know the name of the image the above solution doesn't work. To get around this problem we introduce these two variables IMAGE_INCOMPATIBLE_LICENSE and IMAGE_INCOMPATIBLE_LICENSE_EXCEPTIONS that can be defined globally to mimic the image override. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
We can drop this bbclass since we can cover most of the existing cases with the existing upstream variables INCOMPATIBLE_LICENSE and INCOMPATIBLE_LICENSE_EXCEPTIONS plus our recently added IMAGE_INCOMPATIBLE_LICENSE and IMAGE_INCOMPATIBLE_LICENSE_EXCEPTIONS. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
With [1] we replace the bitbake bbclass image-license-checker and lmp-disable-gplv3 bbclass with the lmp-no-gplv3 bbclass which which also includes definitions implemented in oe-core. The IMAGE_LICENSE_CHECKER_* is not need anymore and the control is made now with the variable IMAGE_INCOMPATIBLE_LICENSE. [1] foundriesio/meta-lmp#1618 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
With [1] we replace the bitbake bbclass image-license-checker and lmp-disable-gplv3 bbclass with the lmp-no-gplv3 bbclass which also includes definitions implemented in oe-core. The IMAGE_LICENSE_CHECKER_* is not need anymore and the control is made now with the variable IMAGE_INCOMPATIBLE_LICENSE. [1] foundriesio/meta-lmp#1618 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
|
Can you compare the image manifest from before / after the change? Hopefully it should match. |
The image manifest is the same as expected. |
With [1] we replace the bitbake bbclass image-license-checker and lmp-disable-gplv3 bbclass with the lmp-no-gplv3 bbclass which also includes definitions implemented in oe-core. The IMAGE_LICENSE_CHECKER_* is not need anymore and the control is made now with the variable IMAGE_INCOMPATIBLE_LICENSE. [1] foundriesio/meta-lmp#1618 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Tested with the following snip in the conf/local.conf
- Recipe with exclusive LICENSE
The above config will result in the following error as expected:
- Recipe with or LICENSE
The above config will not generate any error