board/freescale: add support for Image.gz to post-image
authorHanspeter Portner <dev@open-music-kontrollers.ch>
Fri, 17 Sep 2021 13:28:35 +0000 (15:28 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 18 Sep 2021 06:54:58 +0000 (08:54 +0200)
For the i.MX8 often an Image.gz is built. With these changes, if
BR2_LINUX_KERNEL_IMAGEGZ=y, the correct Image.gz file is now put into
the generated image instead of falling back to the non-existent zImage.

Signed-off-by: Hanspeter Portner <dev@open-music-kontrollers.ch>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
board/freescale/common/imx/post-image.sh

index 3bb482debda0fb599c0ad09859f3d4805d7fb729..d36f82917ecc63cfec1b5850b58db94ddcb253a0 100755 (executable)
@@ -25,6 +25,8 @@ linux_image()
                echo "\"uImage\""
        elif grep -Eq "^BR2_LINUX_KERNEL_IMAGE=y$" ${BR2_CONFIG}; then
                echo "\"Image\""
+       elif grep -Eq "^BR2_LINUX_KERNEL_IMAGEGZ=y$" ${BR2_CONFIG}; then
+               echo "\"Image.gz\""
        else
                echo "\"zImage\""
        fi