* Variable expansion order: bootimg fails with MACHINE_FEATURES += "efi" in local.conf
@ 2012-01-13 5:32 Darren Hart
0 siblings, 0 replies; only message in thread
From: Darren Hart @ 2012-01-13 5:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Wold, Saul
I find that if I want to build a live efi image for testing on qemu, and I add the following to my local.conf:
MACHINE_FEATURES_append_qemux86 = " efi"
KERNEL_FEATURES_append_qemux86 = " cfg/efi-ext.scc"
IMAGE_TYPES += "live"
And then try to build core-image-minimal, I'll get an error like the following during do_bootimg:
| WARNING: Function build_grub_cfg doesn't exist
| ERROR: Function 'build_hddimg' failed (see /build/poky/qemux86/tmp/work/qemux86-poky-linux/core-image-minimal-1.0-r0/temp/log.do_bootimg.16296 for further information)
build_grub_cfg is defined in grub-efi.bbclass, which is inherited by bootimg.bbclass as follows:
EFI = ${@base_contains("MACHINE_FEATURES", "efi", "1", "0", d)}
EFI_CLASS = ${@base_contains("MACHINE_FEATURES", "efi", "grub-efi", "dummy", d)}
inherit ${EFI_CLASS}
Testing with -e reveals:
$ bitbake -e core-image-minimal | grep EFI_CLASS=
# EFI_CLASS=${@base_contains("MACHINE_FEATURES", "efi", "grub-efi", "dummy", d)}
EFI_CLASS="grub-efi"
However, if I add garbage to the grub-efi.bbclass file, the parser doesn't complain. Adding garbage to dummy does cause it to fail, but without pcbios in MACHINE_FEATURES, the PCBIOS_CLASS should cause dummy to be inherited, so this isn't definitive evidence that dummy is being inherited _instead_ of grub-efi.
So, is there a problem with the inline python call to base_contains to get the grub-efi variable if MACHINE_FEATURES is modified in local.conf? Can anyone suggest some rule that I might be missing that would cause this behavior?
Thanks,
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-13 5:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 5:32 Variable expansion order: bootimg fails with MACHINE_FEATURES += "efi" in local.conf Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox