[OE-core] RFC: grub-efi native tools
Darren Hart
dvhart at linux.intel.com
Wed Nov 23 07:44:06 UTC 2011
On 11/22/2011 11:01 PM, Darren Hart wrote:
> 2) Only build grub-efi-native.
> - The above grub-mkimage command fails with some incorrect elf format
> error messages on the grub kernel.img file. A similar error was
> reported on the grub mailing list when compiling with cygwin.
> Some work may be required to fix GRUB here.
This turned out to be the result of TARGET_ARCH changing from the real
target arch to the BUILD_ARCH via the native.bbclass. I can force a
correct build by hard coding my target. So GRUB is off the hook.
If I cannot access the real TARGET_ARCH when building natively, then
perhaps I should not be trying to assemble a target image during this
step. I could install the native binaries and all the supporting files
in the native sysroot and assemble the target bootia32.efi binary either
as part of the bootimg functions (via a grub-efi.bbclass which depends
on the grub-efi-native do_sysroot)...
This seems pretty round about, and I would prefer for a grub-efi recipe
to deploy (to tmp/deploy/images) a bootia32.efi file. This means that
the grub utilities need to be built native, but grub needs to be
configured with --target=i586 (even when my BUILD_ARCH is x86_64). This
seems to not fit well with how the tooling is setup.
Is there perhaps a better approach?
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
More information about the Openembedded-core
mailing list