]> code.ossystems Code Review - meta-freescale.git/commitdiff
wic: Fix image generation for i.MX with SPL and U-Boot
authorJoris Offouga <offougajoris@gmail.com>
Thu, 11 Jul 2019 05:43:07 +0000 (07:43 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 11 Jul 2019 12:59:17 +0000 (09:59 -0300)
Some boards expects a specific binary name.
Example : Pico i.MX7D required the u-boot-dtb.img file (instead of u-boot.img).

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
wic/imx-uboot-spl-bootpart.wks.in [moved from wic/imx-uboot-spl-bootpart.wks with 89% similarity]
wic/imx-uboot-spl.wks.in [moved from wic/imx-uboot-spl.wks with 86% similarity]

similarity index 89%
rename from wic/imx-uboot-spl-bootpart.wks
rename to wic/imx-uboot-spl-bootpart.wks.in
index 4e16ec3569ef1574706d2a5824a35eb2bb1b38dd..8062c51e698af31783c9747cfdf4c3c3452025c3 100644 (file)
@@ -13,7 +13,7 @@
 # 0 1kiB  69kiB   4MiB          16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
 #
 part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
-part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 69
+part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 69
 part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
 
similarity index 86%
rename from wic/imx-uboot-spl.wks
rename to wic/imx-uboot-spl.wks.in
index e7b3beed6aa602aa54db8fc35105f8253e9d8f63..db2f89ddba7b7d89ebc509aebaa4f8dd15fe579e 100644 (file)
@@ -13,7 +13,7 @@
 # 0 1kiB  69kiB   4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
 #
 part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
-part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 69
+part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 69
 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
 
 bootloader --ptable msdos