From 683bfbfc19db8de034da2b652af14c8df72c912c Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 16 Aug 2023 21:03:07 +0200 Subject: [PATCH] vhost-device-gpio: only enable if meta-clang exists This disables the recipe - which depends on clang-native - if meta-clang is not active. Link: https://lore.kernel.org/yocto-meta-virtualization/ZNyErpfW8p2lX81Z@nuoska/ Reported-by: Richard Purdie Suggested-by: Bruce Ashfield Signed-off-by: Erik Schilling Signed-off-by: Bruce Ashfield --- recipes-extended/vhost-device/vhost-device-gpio_0.1.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-extended/vhost-device/vhost-device-gpio_0.1.0.bb b/recipes-extended/vhost-device/vhost-device-gpio_0.1.0.bb index 4ef9de47..79931163 100644 --- a/recipes-extended/vhost-device/vhost-device-gpio_0.1.0.bb +++ b/recipes-extended/vhost-device/vhost-device-gpio_0.1.0.bb @@ -10,6 +10,8 @@ DEPENDS += "libgpiod" # libgpiod-sys generates bindings using bindgen, which depends on clang DEPENDS += "clang-native" +SKIP_RECIPE[vhost-device-gpio] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'clang-layer', '', 'Depends on clang-native from meta-clang which is not included', d)}" + SRC_URI += "crate://crates.io/vhost-device-gpio/0.1.0" SRC_URI[vhost-device-gpio-0.1.0.sha256sum] = "f4789dd127ce746d4f702d50256ff09e47b19fdb2bfee88a254b7e48efbf1100"