diff mbox series

[v2,3/3] oeqa/selftest/incompatible_lic: build the SDK in NoGPL3 core-image-minimal test

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

Commit Message

Sean Nyekjaer Nov. 17, 2026, 12:01 p.m. UTC
Also run do_populate_sdk in test_core_image_minimal, to check that SDK
host tools (e.g. nativesdk-autoconf) are not checked against the image's
INCOMPATIBLE_LICENSE.

GCC-exception-3.1 and Autoconf-exception-macro are added to the
exceptions, as the SDK target sysroot includes libgcc and xz-src.

AI-Generated: Claude Opus 5.5 (Claude Code)
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
---
 meta/lib/oeqa/selftest/cases/incompatible_lic.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
index 406f92e37b..eafe63ab77 100644
--- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py
+++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
@@ -159,10 +159,12 @@  class NoGPL3InImagesTests(OESelftestTestCase):
     def test_core_image_minimal(self):
         self.write_config("""
 INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*"
+INCOMPATIBLE_LICENSE_EXCEPTIONS:pn-core-image-minimal = "GCC-exception-3.1 Autoconf-exception-macro"
+ERROR_QA:remove:pn-core-image-minimal = "license-exception"
 
 require conf/distro/include/no-gplv3.inc
 """)
-        bitbake('core-image-minimal')
+        bitbake('core-image-minimal core-image-minimal:do_populate_sdk')
 
     @skipIfNotFeature('wayland', 'Test requires wayland to be in DISTRO_FEATURES')
     def test_core_image_full_cmdline_weston(self):