|
|
@@ -29,6 +29,19 @@ inherit cargo cargo-update-recipe-crates pkgconfig update-rc.d systemd
|
|
|
# - LVGL >= 9.2 (provided by this layer)
|
|
|
# - clang-native from meta-clang
|
|
|
#
|
|
|
+# The recipe is skipped if one of these layers is missing: most builds do
|
|
|
+# not use the GUI and must not need meta-clang or the Rust mixin.
|
|
|
+python () {
|
|
|
+ collections = (d.getVar('BBFILE_COLLECTIONS') or '').split()
|
|
|
+ required = [
|
|
|
+ ('clang-layer', 'meta-clang'),
|
|
|
+ ('scarthgap-rust-mixin', 'meta-lts-mixins (branch scarthgap/rust)'),
|
|
|
+ ]
|
|
|
+ missing = [layer for (collection, layer) in required if collection not in collections]
|
|
|
+ if missing:
|
|
|
+ raise bb.parse.SkipRecipe('requires %s' % ' and '.join(missing))
|
|
|
+}
|
|
|
+
|
|
|
# Bindings for LVGL and libswupdate are generated by bindgen, which needs libclang.
|
|
|
# LVGL is found with pkg-config, libswupdate in the target sysroot.
|
|
|
DEPENDS += "clang-native lvgl swupdate"
|