diff options
Diffstat (limited to 'board/freescale/common/imx/post-image.sh')
-rwxr-xr-x | board/freescale/common/imx/post-image.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index 9e4da82dc7..b23974347b 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -28,6 +28,15 @@ linux_image() fi } +genimage_type() +{ + if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then + echo "genimage.cfg.template_spl" + else + echo "genimage.cfg.template" + fi +} + main() { local FILES="$(dtb_list) $(linux_image)" @@ -35,7 +44,7 @@ main() local GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" sed -e "s/%FILES%/${FILES}/" \ - board/freescale/common/imx/genimage.cfg.template > ${GENIMAGE_CFG} + board/freescale/common/imx/$(genimage_type) > ${GENIMAGE_CFG} rm -rf "${GENIMAGE_TMP}" |