ccimx8m: fix building sdcard image

The sdcard image generation code expects a boot artifact named after
machine's name. On the other hand, u-boot recipe creates symlinks with
the build config's name. So couple machine with build config label to
prevent a failure when building the SD card image.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-01-09 12:18:15 +01:00
parent c2da31e0b1
commit eb420a72f9
2 changed files with 10 additions and 6 deletions

View File

@ -12,9 +12,11 @@ BOOTLOADER_SEEK_USERDATA = "33"
BOOTLOADER_SEEK_BOOT = "0" BOOTLOADER_SEEK_BOOT = "0"
# U-Boot configurations # U-Boot configurations
# Last one is the default (the one the symlinks point at) #
UBOOT_CONFIG ??= "ccimx8mm_dvk" # At the moment config label should be "machine" because SDIMG_BOOTLOADER
UBOOT_CONFIG[ccimx8mm_dvk] = "ccimx8mm_dvk_defconfig,,u-boot-dtb.${UBOOT_SUFFIX}" # expects a boot artifact named after machine to create the sdcard image.
UBOOT_CONFIG ??= "ccimx8mm-dvk"
UBOOT_CONFIG[ccimx8mm-dvk] = "ccimx8mm_dvk_defconfig"
SPL_BINARY = "spl/u-boot-spl.bin" SPL_BINARY = "spl/u-boot-spl.bin"
# Set u-boot DTB # Set u-boot DTB

View File

@ -12,9 +12,11 @@ BOOTLOADER_SEEK_USERDATA = "32"
BOOTLOADER_SEEK_BOOT = "0" BOOTLOADER_SEEK_BOOT = "0"
# U-Boot configurations # U-Boot configurations
# Last one is the default (the one the symlinks point at) #
UBOOT_CONFIG ??= "ccimx8mn_dvk" # At the moment config label should be "machine" because SDIMG_BOOTLOADER
UBOOT_CONFIG[ccimx8mn_dvk] = "ccimx8mn_dvk_defconfig,,u-boot-dtb.${UBOOT_SUFFIX}" # expects a boot artifact named after machine to create the sdcard image.
UBOOT_CONFIG ??= "ccimx8mn-dvk"
UBOOT_CONFIG[ccimx8mn-dvk] = "ccimx8mn_dvk_defconfig"
SPL_BINARY = "spl/u-boot-spl.bin" SPL_BINARY = "spl/u-boot-spl.bin"
# Set u-boot DTB # Set u-boot DTB