]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base.inc: use new wks file for boot container
authorAndrey Zhizhikin <andrey.z@gmail.com>
Mon, 3 May 2021 09:47:38 +0000 (09:47 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 4 May 2021 17:07:09 +0000 (14:07 -0300)
Boot container provided by mainline U-Boot build can be used directly
in the result image file, as it requires two binary files to be
populated onto raw partition, hence it uses separate image generation
scheme from imx-boot provided by NXP.

Use new WKS file for mainline BSP built for aarch64 which picks up
and packs boot container binary files from U-Boot directly into result
image.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
conf/machine/include/imx-base.inc

index 17c7bc175b127bd4d3df81abfcbc76035569792c..65b1e6e03da0c203a99c365ec71cdfc5e7733238 100644 (file)
@@ -454,16 +454,15 @@ SOC_DEFAULT_WKS_FILE_mx8m ?= "imx-imx-boot-bootpart.wks.in"
 SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks.in"
 SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in"
 
-# Boot container built as a part of mainline U-Boot uses the same WKS
-# file as the entire mx8m series, as it renames flash.bin binary to
-# imx-boot before it is packed into the boot partition.
-# This operation is performed in imx-boot-container class as a part of
-# delopyment task.
-# flash.bin binary is produced by U-Boot build itself, and is serves as a
-# direct replacement of imx-boot from NXP.
-# Creation of the flash.bin is controlled by UBOOT_PROVIDES_BOOT_CONTAINER
-# variable defined above
-SOC_DEFAULT_WKS_FILE_imx-boot-container ?= "imx-imx-boot-bootpart.wks.in"
+# Boot container built as a part of mainline U-Boot uses different WKS
+# file as the entire mx8m series, as U-Boot versions later than 2021.04 are
+# providing two separate binaries, namely flash.bin and u-boot.itb. Those
+# files are packed into the boot partition.
+# Binaries produced by U-Boot build itself are serving as a direct
+# replacement of imx-boot from NXP.
+# Creation of those binary files is controlled by UBOOT_PROVIDES_BOOT_CONTAINER
+# variable defined above.
+SOC_DEFAULT_WKS_FILE_imx-boot-container ?= "imx-boot-container-bootpart.wks.in"
 
 WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}"