]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oe/utils: filter license packages master
authorSamuli Piippo <samuli.piippo@gmail.com>
Wed, 4 Feb 2026 06:42:05 +0000 (06:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Feb 2026 10:15:52 +0000 (10:15 +0000)
The packages_filter_out_system() function is used in PACKAGESPLITFUNCS
to filter out "system" packages (-dbg, -dev). The filtered packages
should include license packages (-lic) as well, when they are generated
with LICENSE_CREATE_PACKAGE = "1", otherwise the license packages will
get pulled into images unintentionally.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py

index 0128ee411d0449fbf464f2b3515a6e7b4bc166af..2b39d4e0ddb1a88938e230789636cbedaa76ae1d 100644 (file)
@@ -236,7 +236,7 @@ def packages_filter_out_system(d):
     PN-dbg PN-doc PN-locale-eb-gb removed.
     """
     pn = d.getVar('PN')
-    pkgfilter = [pn + suffix for suffix in ('', '-dbg', '-dev', '-doc', '-locale', '-staticdev', '-src')]
+    pkgfilter = [pn + suffix for suffix in ('', '-dbg', '-dev', '-doc', '-locale', '-staticdev', '-src', '-lic')]
     localepkg = pn + "-locale-"
     pkgs = []