Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bundle.bbclass: fix parsing with empty IMAGE_FSTYPES
If IMAGE_FSTYPES is empty, split() will return an empty array, resulting in an `IndexError: list index out of range` error during parsing. The `or ""` appears to be a previous attempt to handle this, but it is ineffective, and not actually needed: OE-core's bitbake.conf contains a default assignment for `IMAGE_FSTYPES`, so d.getVar() should always return a (possibly empty) string. We have come across this issue in combination with meta-ti, which defines a multiconfig + additional machine for the Cortex-R5 core of TI SoCs. This machine is only used to build bootloader and firmware recipes, so IMAGE_FSTYPES is empty. As all recipes are parsed for all multiconfigs unless skipped explicitly, just the existence of the core-bundle-minimal recipe is enough to bring down the whole build in this configuration. Signed-off-by: Matthias Schiffer <[email protected]> (cherry picked from commit a04182b8bab888d4fb675de7a4a2c879f3f587d9) Signed-off-by: Matthias Schiffer <[email protected]>
- Loading branch information