|
|
@@ -49,6 +49,9 @@ BOOTOPTS:=$(call qstrip,$(CONFIG_GRUB_BOOTOPTS))
|
|
|
define Build/combined
|
|
|
$(CP) $(KDIR)/$(KERNEL_NAME) [email protected]/boot/vmlinuz
|
|
|
-$(CP) $(STAGING_DIR_ROOT)/boot/. [email protected]/boot/
|
|
|
+ $(CP) $(STAGING_DIR_IMAGE)/grub2/boot.img [email protected]/boot/grub/
|
|
|
+ $(CP) $(STAGING_DIR_IMAGE)/grub2/$(if $(filter $(1),efi),gpt,$(GRUB2_VARIANT))-core.img \
|
|
|
+ [email protected]/boot/grub/core.img
|
|
|
$(if $(filter $(1),efi),
|
|
|
$(INSTALL_DIR) [email protected]/efi/boot
|
|
|
$(CP) $(STAGING_DIR_IMAGE)/grub2/boot$(if $(CONFIG_x86_64),x64,ia32).efi [email protected]/efi/boot/
|