mca: create 'mca' MACHINE_FEATURE and use it to append MCA-related recipes

This allows to generalize the code instead of needing to replicate
overrides for each platform that contains the MCA.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2020-05-05 17:46:28 +02:00
parent a46a7af18d
commit 5df22254a1
5 changed files with 10 additions and 15 deletions

View File

@ -26,7 +26,6 @@ MACHINE_FIRMWARE_append = " ${@oe.utils.conditional('HAVE_WIFI', '1', 'firmware-
MACHINE_EXTRA_RDEPENDS += " \
imx-kobs \
mca-tool \
mtd-utils-ubifs \
u-boot-fw-utils \
"
@ -40,7 +39,7 @@ MACHINE_EXTRA_RRECOMMENDS += " \
"
MACHINE_EXTRA_RRECOMMENDS_remove_use-mainline-bsp = "${@bb.utils.contains('COMBINED_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
MACHINE_FEATURES += "wifi bluetooth cryptochip"
MACHINE_FEATURES += "wifi bluetooth cryptochip mca"
MACHINE_FEATURES_remove_use-mainline-bsp = "wifi"
# mkfs.ubifs parameters for boot partition (the one holding kernel and device tree files)

View File

@ -41,7 +41,6 @@ MACHINE_FIRMWARE_append = " ${@oe.utils.conditional('HAVE_WIFI', '1', 'firmware-
MACHINE_EXTRA_RDEPENDS += " \
e2fsprogs-mke2fs \
e2fsprogs-resize2fs \
mca-tool \
parted \
u-boot-fw-utils \
xbee-init \
@ -54,7 +53,7 @@ MACHINE_EXTRA_RRECOMMENDS += " \
cryptoauthlib \
"
MACHINE_FEATURES += "accel-graphics accel-video wifi bluetooth cryptochip"
MACHINE_FEATURES += "accel-graphics accel-video wifi bluetooth cryptochip mca"
# AARCH64 doesn't support self-extracting zImage
KERNEL_IMAGETYPE = "Image.gz"

View File

@ -44,7 +44,6 @@ MACHINE_FIRMWARE_append = " ${@oe.utils.conditional('HAVE_WIFI', '1', 'firmware-
MACHINE_EXTRA_RDEPENDS += " \
e2fsprogs-mke2fs \
e2fsprogs-resize2fs \
mca-tool \
parted \
u-boot-fw-utils \
xbee-init \
@ -57,7 +56,7 @@ MACHINE_EXTRA_RRECOMMENDS += " \
cryptoauthlib \
"
MACHINE_FEATURES += "accel-graphics accel-video wifi bluetooth cryptochip pci"
MACHINE_FEATURES += "accel-graphics accel-video wifi bluetooth cryptochip pci mca"
# AARCH64 doesn't support self-extracting zImage
KERNEL_IMAGETYPE = "Image.gz"

View File

@ -61,3 +61,8 @@ MACHINEOVERRIDES .= "${@['', ':${MACHINE_VARIANT}']['${MACHINE_VARIANT}' != '']}
# U-Boot symlink
UBOOT_SYMLINK ?= "${UBOOT_PREFIX}-${MACHINE}.${UBOOT_SUFFIX}"
BOOTABLE_ARTIFACTS ?= ""
# Extra RDEPENDS
MACHINE_EXTRA_RDEPENDS += " \
${@bb.utils.contains("MACHINE_FEATURES", "mca", "mca-tool", "", d)} \
"

View File

@ -15,6 +15,8 @@ RDEPENDS_${PN} = "\
${@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)} \
${@bb.utils.contains("MACHINE_FEATURES", "mca", "dey-examples-adc-cmp \
dey-examples-tamper", "", d)} \
awsiotsdk-demo \
dey-examples-caamblob \
dey-examples-cloudconnector \
@ -27,20 +29,11 @@ RDEPENDS_${PN}_append_ccimx6 = "\
dey-examples-v4l2 \
"
RDEPENDS_${PN}_append_ccimx6ul = "\
dey-examples-adc-cmp \
dey-examples-tamper \
"
RDEPENDS_${PN}_append_ccimx8x = "\
dey-examples-adc-cmp \
dey-examples-tamper \
dey-examples-v4l2 \
"
RDEPENDS_${PN}_append_ccimx8m = "\
dey-examples-adc-cmp \
dey-examples-tamper \
dey-examples-v4l2 \
"