On Tue, 2021-06-15 at 16:50 +0300, Petr Nechaev wrote:
Hi All,
I've been using bitbake for >5 years now, however I do not understand
the nature of the problem at all. Could you clarify what the problem is
i.e. what's the difference between these lines:
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
VAR_A = "${VAR_B}"
Consider this example where the BSP sets:
IMAGE_FSTYPES = "tar"
IMAGE_FSTYPES_somemachine = "ext4"
INITRAMFS_FSTYPES = "cpio"
OVERRIDES = "${MACHINE}"
then the initramfs image recipe does:
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
Given that config, if you set MACHINE = "somemachine", which image
type would you expect the initramfs image to have?
The answer is that it will try and generate an ext4 initramfs.
What you'd expect/want is a cpio initramfs.
The reason is that the machine override, i.e.:
IMAGE_FSTYPES_somemachine = "ext4"
cannot be undone.
Cheers,
Richard