How can I override KERNEL_IMAGETYPE variable in machine.conf from my meta layer?

Viewed 6

I would like to build a kernel zImage using orange-pi-zero.conf

In orange-pi-zero.conf the uImage is specified:

KERNEL_IMAGETYPE = "uImage"

How can I override this variable in my meta layer that certain image recipe would use orange-pi-zero.conf but would override KERNEL_IMAGETYPE variable with "zImage" value?

Something like this:

custome-image.bb


IMAGE_INSTALL += "..."

KERNEL_IMAGETYPE = "zImage"
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"

COMPATIBLE_MACHINE = "orange-pi-zero"

https://github.com/linux-sunxi/meta-sunxi

1 Answers

One way around this is to create an {MACHINE}-extra.conf and include it into local.conf

conf/machine/orange-pi-zero-extra.conf

KERNEL_IMAGETYPES = "zImage"

local.conf

include conf/machine/orange-pi-zero-extra.conf
Related