From 0d9762442efe5b59c9ebdd3566dd6a3c62bf4a15 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Tue, 20 May 2025 12:53:30 +0200 Subject: [PATCH] dey-examples: set correct COMPATIBLE_MACHINE where applicable Some of our example recipes that are meant to be used on specific platform subsets are available to be built/installed for all platforms. Even though it's possible to build/install these recipes for platforms they aren't meant for, we should restrict them to their intended platforms: * dey-examples-btconfig: this is only meant for ccimx6 platforms that use the Atheros wifi/bt chip, so reflect this in the recipe and in the examples packagegroup. * dey-examples-tamper: this is only meant for platforms with MCA (ccimx6ul, ccimx8x and ccimx8m). This requirement was already set in the examples packagegroup, but the recipe was available to any platform. https://onedigi.atlassian.net/browse/DEL-9612 Signed-off-by: Gabriel Valcazar --- .../recipes-digi/dey-examples/dey-examples-btconfig.bb | 4 +++- .../recipes-digi/dey-examples/dey-examples-tamper.bb | 4 +++- .../recipes-digi/packagegroups/packagegroup-dey-examples.bb | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb index 16e4cd96b..518d06e19 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2022, Digi International Inc. +# Copyright (C) 2013-2025, Digi International Inc. SUMMARY = "DEY examples: application to perform low level bluetooth" SECTION = "examples" @@ -19,3 +19,5 @@ do_install() { install -d ${D}${bindir} install -m 0755 btconfig ${D}${bindir} } + +COMPATIBLE_MACHINE = "(ccimx6$)" diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-tamper.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-tamper.bb index 1e8ba262f..4bb1436da 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-tamper.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-tamper.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2022, Digi International Inc. +# Copyright (C) 2022-2025, Digi International Inc. SUMMARY = "DEY examples: Tamper test application" SECTION = "examples" @@ -13,3 +13,5 @@ do_install() { install -d ${D}${bindir} install -m 0755 tamper_sample ${D}${bindir} } + +COMPATIBLE_MACHINE = "(ccimx6ul|ccimx8m|ccimx8x)" diff --git a/meta-digi-dey/recipes-digi/packagegroups/packagegroup-dey-examples.bb b/meta-digi-dey/recipes-digi/packagegroups/packagegroup-dey-examples.bb index 30e8ee250..b0503067b 100644 --- a/meta-digi-dey/recipes-digi/packagegroups/packagegroup-dey-examples.bb +++ b/meta-digi-dey/recipes-digi/packagegroups/packagegroup-dey-examples.bb @@ -10,7 +10,6 @@ inherit packagegroup RDEPENDS:${PN} = "\ ${@bb.utils.contains("MACHINE_FEATURES", "alsa", "dey-examples-alsa", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "bluetooth", "dey-examples-bt", "", d)} \ - ${@bb.utils.contains("MACHINE_FEATURES", "bluetooth", "dey-examples-btconfig", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "bluetooth", "dey-examples-bt-gatt-server", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "bluetooth", "dey-examples-hdp", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "cryptochip", "dey-examples-cryptochip", "", d)} \ @@ -24,6 +23,7 @@ RDEPENDS:${PN} = "\ " RDEPENDS:${PN}:append:ccimx6 = "\ ${@bb.utils.contains("MACHINE_FEATURES", "accel-graphics", "dey-examples-opengles", "", d)} \ + ${@bb.utils.contains("MACHINE_FEATURES", "bluetooth", "dey-examples-btconfig", "", d)} \ " COMPATIBLE_MACHINE = "(ccimx6$|ccimx6ul|ccimx8m|ccimx8x|ccimx9)"