smolkit: Only provide polkit when selected

Universe builds every recipe, so the unconditional PROVIDES puts this
recipe and polkit in the same build, and bitbake -c fetch universe
reports that multiple .bb files provide polkit.

Claim the name only when PREFERRED_PROVIDER_polkit selects smolkit. With
the overlap gone, smolkit is no longer dropped from the world targets.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-11-01 16:27:04 -08:00
1 parent 981fbbed9c
commit 6f950c5c50
1 file changed
+3 -1
+3 -1
View File
@@ -14,7 +14,9 @@ DEPENDS = "\
sdbus-c++ \
"
PROVIDES += "polkit"
# Only claim polkit when selected, universe builds both recipes otherwise and
# bitbake reports that multiple .bb files provide polkit.
PROVIDES += "${@'polkit' if d.getVar('PREFERRED_PROVIDER_polkit') == 'smolkit' else ''}"
RPROVIDES:${PN} = "polkit"
VERSION = "0.3.0"