imx/post-image.sh: support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL

Currently, only SPL is supported when BR2_LINUX_KERNEL_INSTALL_TARGET=y
is selected.

Support non-SPL case too.

This is needed for booting imx7d-sabresd, for example.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabio Estevam 2021-07-11 17:19:52 -03:00 committed by Thomas Petazzoni
parent 54371c745c
commit 63198aaa17
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,15 @@
image sdcard.img {
hdimage {
}
partition u-boot {
in-partition-table = "no"
image = "%UBOOTBIN%"
offset = 1024
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext2"
}
}

View File

@ -47,6 +47,8 @@ genimage_type()
elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then
if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
echo "genimage.cfg.template_no_boot_part_spl"
else
echo "genimage.cfg.template_no_boot_part"
fi
elif grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
echo "genimage.cfg.template_spl"