summaryrefslogtreecommitdiff
path: root/classes/toradex-fitimage.bbclass
AgeCommit message (Collapse)Author
2023-07-27toradex-fitimage.bbclass: follow changed function definition in oeMax Krummenacher
openembedded-core commit e3eb79c0a1 ("kernel-fitimage: adding support for Initramfs bundle and u-boot script") is a backport to dunfell. A parameter was added in the middle of the parameter list of the shell function fitimage_emit_section_config(). Follow that and change the calls to it accordingly. Fixes colibri-imx6ull not booting from the fitimage for the lack of a default configuration setting. Related-to: TEI-1053 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-04-04toradex-fitimage.bbclass: add hook to set the kernel typeMax Krummenacher
Allow to change the Type for the kernel section to 'kernel_noload' rather than using the default 'kernel'. Set UBOOT_KERNEL_TYPE to 'kernel_noload'. This is e.g. used for apalis-tk1 for TEZI. Related-to: ELB-4417 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-04-01toradex-fitimage.bbclass: introduce FIT_SUPPORTED_INITRAMFS_FSTYPESMing Liu
It was found when a end user wants to build a squashfs type initramfs into fitimage, it just fails without printing out any error or warning messages, which is not right. Introduce a FIT_SUPPORTED_INITRAMFS_FSTYPES variable to avoid hard-coding the supported initramfs types, and it could be overridden in config files. Also break the build when none of a supported initramfs type is found. A similar change has been merged into OE, reference: https://lore.kernel.org/all/20220328141551.571676-1-liu.ming50@gmail.com Related-to: TEI-1005 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-26toradex-fitimage.bbclass: build configuration for image tree when dtb is not ↵Ming Liu
present Partly back-port commit 2d9f3c3d763e2bca704da4019add973b9a2c572f from OE upstream: [ kernel-fitimage: build configuration for image tree when dtb is not present This patch adds support for adding configuration node even when dtb is not part of the FIT image. The conf and default node number are therefore changed to point to kernel ID rather than dtb ID when dtb does not exist. ] to support fitImage for qemu machines which dont have a dtb node. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-03-04toradex-fitimage.bbclass: introduce bbclass fileMing Liu
To support devicetree overlays, we need let fitimage_assemble handle both ${KERNEL_DEVICETREE} and ${EXTERNAL_KERNEL_DEVICETREE} at meanwhile, but the fitimage_assemble can only deal with one. ( when ${EXTERNAL_KERNEL_DEVICETREE} is set, it will skip ${KERNEL_DEVICETREE} ) Let's override fitimage_assemble to be able to assemble all dtb/dtbo files in ${KERNEL_DEVICETREE} and ${EXTERNAL_KERNEL_DEVICETREE}. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com>