mbox series

[v2,0/3] license_image: don't apply INCOMPATIBLE_LICENSE to SDK host tools

Message ID 20261117120155.3986876-1-sean@geanix.com
Headers show
Series license_image: don't apply INCOMPATIBLE_LICENSE to SDK host tools | expand

Message

Sean Nyekjaer Nov. 17, 2026, 12:01 p.m. UTC
do_populate_sdk checks nativesdk and cross-canadian packages against the
image's INCOMPATIBLE_LICENSE, so e.g. INCOMPATIBLE_LICENSE = "GPL-3.0*"
fails on nativesdk-autoconf, even though these recipes are exempt from
INCOMPATIBLE_LICENSE at parse time. This series applies the same
exemption when writing the image/SDK license manifest.

Changes in v2:
- Split v1 patch 1 into a patch that factors out
  incompatible_license_check_needed() and a patch that uses it in
  write_license_files()
- Replace the new IncompatibleLicensePerImageSDKTests from v1 patch 2
  with running do_populate_sdk in NoGPL3InImagesTests.test_core_image_minimal

v1:
https://lore.kernel.org/openembedded-core/20261113101537.3586467-1-sean@geanix.com/
https://lore.kernel.org/openembedded-core/20261113101537.3586467-2-sean@geanix.com/

Sean Nyekjaer (3):
  lib/oe/license: factor out incompatible_license_check_needed()
  license_image: don't apply INCOMPATIBLE_LICENSE to SDK host tools
  oeqa/selftest/incompatible_lic: build the SDK in NoGPL3
    core-image-minimal test

 meta/classes-recipe/license_image.bbclass     | 13 +++++++---
 meta/lib/oe/license.py                        | 25 +++++++++++--------
 .../oeqa/selftest/cases/incompatible_lic.py   |  4 ++-
 3 files changed, 28 insertions(+), 14 deletions(-)