]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base.inc: Allow override of IMX_DEFAULT_BOOTLOADER
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 19 Mar 2021 17:58:41 +0000 (14:58 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 21 Mar 2021 22:20:24 +0000 (19:20 -0300)
We need to allow the override of the variable in 'local.conf' or other
places, so we cannot overwrite it inside imx-base.inc.

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

index 6c9f3aa612ecfacf72ea902c6ba155e3d86adbed..4790005b29ee276ca08f14522d5c637cfc0b1d66 100644 (file)
@@ -18,8 +18,8 @@ IMX_DEFAULT_BSP_mx5 ?= "mainline"
 
 MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:"
 
-IMX_DEFAULT_BOOTLOADER = "u-boot-fslc"
-IMX_DEFAULT_BOOTLOADER_mx8 = "u-boot-imx"
+IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc"
+
 IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}"
 
 PREFERRED_PROVIDER_u-boot ??= "${IMX_DEFAULT_BOOTLOADER}"