From 3bcb1ac5512eb7af39054e8d8a84c3124abddcf5 Mon Sep 17 00:00:00 2001 From: Tillmann Severin Date: Mon, 14 Sep 2026 14:29:27 +0200 Subject: [PATCH] smolkit: Add low-footprint drop-in replacement for polkit smolkit is a drop-in replacement for a subset of polkit's interface, which is low-footprint in the sense of not needing to have a javascript engine available to do its job. polkit has this disadvantage and even with a small javascript engine like duktape, it is not worth to have turing-complete configuration where you could also use static JSON on some embedded devices. Signed-off-by: Tillmann Severin Signed-off-by: Khem Raj --- meta-oe/recipes-extended/smolkit/smolkit.bb | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-oe/recipes-extended/smolkit/smolkit.bb diff --git a/meta-oe/recipes-extended/smolkit/smolkit.bb b/meta-oe/recipes-extended/smolkit/smolkit.bb new file mode 100644 index 0000000000..4bd5f8d03f --- /dev/null +++ b/meta-oe/recipes-extended/smolkit/smolkit.bb @@ -0,0 +1,27 @@ +SUMMARY = "low-footprint drop-in polkit replacement" +HOMEPAGE = "https://github.com/bmwcarit/smolkit" +DESCRIPTION = "\ + Service that implements a subset of polkit's D-Bus interface with a static configuration language. \ +" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +inherit cmake features_check pkgconfig + +DEPENDS = "\ + rapidjson \ + sdbus-c++ \ +" + +CONFLICT_DISTRO_FEATURES = "polkit" +REQUIRED_DISTRO_FEATURES = "smolkit" + +PV = "0.2+git" + +SRC_URI = "\ + git://github.com/bmwcarit/${BPN}.git;protocol=https;branch=main \ +" +SRCREV = "46bbfd5c922a8d03a534398ee129ded822dfcafe" + +S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}"