]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base.inc: Postpone the expanion of BSP choice
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 14 Apr 2020 21:50:32 +0000 (18:50 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 14 Apr 2020 21:52:32 +0000 (18:52 -0300)
We need to postpone the expanion so we avoid cycles.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/imx-base.inc

index feb243b9f966509cca51091aa5be22ac4e370422..eb886de6253007f5fe29c3ecd5f840eaa63b51f6 100644 (file)
@@ -15,12 +15,15 @@ IMX_DEFAULT_BOOTLOADER_mx8 = "u-boot-imx"
 #
 # Two values are considered valid: mainline, nxp
 IMX_DEFAULT_BSP ??= "mainline"
-MACHINEOVERRIDES .= ":use-${IMX_DEFAULT_BSP}-bsp"
 
 # Those are SoC families we'd like to force the use of mainline BSP.
 IMX_DEFAULT_BSP_mxs = "mainline"
 IMX_DEFAULT_BSP_mx5 = "mainline"
 
+# the MACHINEOVERRIDES. This is required so this is reworked late in the
+# expansion cycle.
+DISTROOVERRIDES_append = ":use-${IMX_DEFAULT_BSP}-bsp"
+
 PREFERRED_PROVIDER_u-boot ??= "${IMX_DEFAULT_BOOTLOADER}"
 PREFERRED_PROVIDER_u-boot-tools-native ??= "${IMX_DEFAULT_BOOTLOADER}-tools-native"
 PREFERRED_PROVIDER_nativesdk-u-boot-tools ??= "nativesdk-${IMX_DEFAULT_BOOTLOADER}-tools"