Skip to contentSkip to conversation

freescale: add support for Image.gz to post-image

PATCH Applied Hanspeter Portner 2 participants 2 messages Sep 17, 2021 – Sep 18, 2021 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 freescale: add support for Image.gz to post-image

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.

---
 board/freescale/common/imx/post-image.sh | 2 ++
 1 file changed, 2 insertions(+)
board/freescale/common/imx/post-image.sh +2 -0
index 3bb482debd..d36f82917e 100755
@@ -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
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hanspeter, All,

On 2021-09-17 15:28 +0200, Hanspeter Portner spake thusly:

Quoted 5 lines

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.

I've changed the commit title to:

board/freescale: add support for Image.gz to post-image

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 24 lines
---
 board/freescale/common/imx/post-image.sh | 2 ++
 1 file changed, 2 insertions(+)
board/freescale/common/imx/post-image.sh +2 -0
index 3bb482debd..d36f82917e 100755
@@ -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
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot