[Buildroot] [PATCH v3 6/8] board/freescale/common/imx8: Use post build generated uboot image if present
Xavier Roumegue
xroumegue at gmail.com
Mon Nov 9 14:23:07 UTC 2020
Stick the uboot image filename to "imx8-boot-sd.bin" in case the
final uboot image, embedding fw files, is generated thanks to a post
build script.
This takes precedence over all uboot images generating during uboot
build.
This should help to remove the dedicated imx8 config template file
Signed-off-by: Xavier Roumegue <xroumegue at gmail.com>
---
board/freescale/common/imx/post-image.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh
index 1cca1849be..7916b8dae6 100755
--- a/board/freescale/common/imx/post-image.sh
+++ b/board/freescale/common/imx/post-image.sh
@@ -66,7 +66,9 @@ imx_offset()
uboot_image()
{
- if grep -Eq "^BR2_TARGET_UBOOT_FORMAT_DTB_IMX=y$" ${BR2_CONFIG}; then
+ if [ -e "${BINARIES_DIR}"/imx8-boot-sd.bin ]; then
+ echo "imx8-boot-sd.bin"
+ elif grep -Eq "^BR2_TARGET_UBOOT_FORMAT_DTB_IMX=y$" ${BR2_CONFIG}; then
echo "u-boot-dtb.imx"
elif grep -Eq "^BR2_TARGET_UBOOT_FORMAT_IMX=y$" ${BR2_CONFIG}; then
echo "u-boot.imx"
--
2.28.0
More information about the buildroot
mailing list