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 <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2025-05-20 12:53:30 +02:00
parent 3eb66c25cb
commit 0d9762442e
3 changed files with 7 additions and 3 deletions

View File

@ -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$)"

View File

@ -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)"

View File

@ -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)"