grub-efi: change to generate EFI image in target package
authorJackie Huang <jackie.huang@windriver.com>
Mon, 18 Nov 2013 12:29:07 +0000 (20:29 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Dec 2013 09:11:11 +0000 (09:11 +0000)
commit7f6a3a203f1e5d73db78a87960ad9a4861ed36d6
tree7c5dd04d4ffa7c4dd9d3b8b01ce44370723e9d73
parent010a16638d1484afca6964168c62fdce8e8c3305
grub-efi: change to generate EFI image in target package

To generate the target EFI image in a native package, it requires
the host gcc have the ability to do -m32/-m64 compiling, but gcc
doesn't have that support on the 32bit version of some distributions
(e.g. rehl, suse), it would fail when build a 64bit target on these
32bit hosts.

In fact, all we need from grub-efi-native is the grub-mkimage binary,
so change the solution to:
 * grub-efi-native only install grub-mkimage
 * grub-efi compiles target modules, generates EFI image
   with grub-mkimage and deploy, but install nothing.

(From OE-Core rev: 53d3f1273983dfce2a907b39768978afe99aab1a)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/grub-efi.bbclass
meta/recipes-bsp/grub/grub-efi_2.00.bb [moved from meta/recipes-bsp/grub/grub-efi-native_2.00.bb with 77% similarity]