]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base.inc: Allow use of SPL_BINARY variable inside wic images topic/fix-bootloader-advanced-use 718/head
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 13 Apr 2021 01:13:13 +0000 (22:13 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 13 Apr 2021 02:52:57 +0000 (23:52 -0300)
Fixes: 776932e1 ("Rework the u-boot-fslc and u-boot-imx settings logic")
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/imx-base.inc

index f12cc27666a12d2a78ba6e6362f1cc9b1ed599b4..2b434133ba037477fb87e63f71d47519907841f8 100644 (file)
@@ -63,6 +63,10 @@ UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
 IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc"
 UBOOT_SUFFIX ?= "${UBOOT_SUFFIX_pn-${IMX_DEFAULT_BOOTLOADER}}"
 
+# We need to export the original variable to allow it to be used when generating
+# wic based images.
+SPL_BINARY ?= "${SPL_BINARY_pn-${IMX_DEFAULT_BOOTLOADER}}"
+
 IMX_DEFAULT_UBOOTTOOLS = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-tools', 'u-boot-tools', d)}"
 IMX_DEFAULT_MFGTOOL = "${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', 'u-boot-imx','u-boot-imx-mfgtool', 'u-boot-fslc', d)}"