]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-imx-tools: Rework the COMPATIBLE_MACHINE strategy
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 11 Dec 2020 22:28:05 +0000 (19:28 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 11 Dec 2020 22:37:54 +0000 (19:37 -0300)
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 <otavio@ossystems.com.br>
Change-Id: I3b60828ce93c087a4774c71dbe62bab62bb6863d

recipes-bsp/u-boot/u-boot-imx-tools_2020.04.bb

index 12ac72e22eaabe617cd432c32ac6d200495f330f..d1e9512cdd59eb17d7519ed252d4503268d69ac5 100644 (file)
@@ -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 = "(.)"