From: Otavio Salvador Date: Fri, 11 Dec 2020 22:28:05 +0000 (-0300) Subject: u-boot-imx-tools: Rework the COMPATIBLE_MACHINE strategy X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=720555512011bd000eae284b187108d11aad76ae;p=meta-freescale.git u-boot-imx-tools: Rework the COMPATIBLE_MACHINE strategy We need to avoid setting the COMPATIBLE_MACHINE when not using an i.MX based machine, otherwise we end with multiple provides and cause problems for outside machines. To support both use-cases, and allow the use of u-boot-imx-tools, we set the recipe as invalid for all use, except for 'use-mainline-bsp' and 'use-nxp-bsp' based machines. Refs: #573. Signed-off-by: Otavio Salvador Change-Id: I3b60828ce93c087a4774c71dbe62bab62bb6863d --- diff --git a/recipes-bsp/u-boot/u-boot-imx-tools_2020.04.bb b/recipes-bsp/u-boot/u-boot-imx-tools_2020.04.bb index 12ac72e2..d1e9512c 100644 --- a/recipes-bsp/u-boot/u-boot-imx-tools_2020.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx-tools_2020.04.bb @@ -6,5 +6,10 @@ PROVIDES_append_class-native = " u-boot-tools-native" PROVIDES_append_class-nativesdk = " nativesdk-u-boot-tools" PACKAGE_ARCH = "${MACHINE_ARCH}" -COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" -COMPATIBLE_MACHINE_class-target = "(mx6|mx7|mx8)" + +# Set recipe as incompatible by default +COMPATIBLE_MACHINE = "(^$)" + +# Whitelist its use for i.MX based machines +COMPATIBLE_MACHINE_use-mainline-bsp = "(.)" +COMPATIBLE_MACHINE_use-nxp-bsp = "(.)"