* [Buildroot] [PATCH] Build El Torito for i386 PC
@ 2015-07-29 8:41 Kinsella, Ray
2015-07-29 9:59 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Kinsella, Ray @ 2015-07-29 8:41 UTC (permalink / raw)
To: buildroot
Building Grub2 El Torito for i386 EFI errors complaining it cannot find cdboot.img
cdboot.img: No such file or directory
This commit builds El Torito for i386 EFI only
---
boot/grub2/grub2.mk | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
index 280b4d6..7e0f31f 100644
--- a/boot/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -67,6 +67,14 @@ GRUB2_CONF_OPTS = \
GRUB2_INSTALL_TARGET_OPTS = DESTDIR=$(HOST_DIR) install
+ifeq ($(BR2_TARGET_GRUB2_I386_PC),y)
+define GRUB2_IMAGE_INSTALL_ELTORITO
+ cat $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE)/cdboot.img $(GRUB2_IMAGE) > \
+ $(BINARIES_DIR)/grub-eltorito.img
+endef
+GRUB2_POST_INSTALL_TARGET_HOOKS += GRUB2_IMAGE_INSTALL_ELTORITO
+endif
+
define GRUB2_IMAGE_INSTALLATION
mkdir -p $(dir $(GRUB2_IMAGE))
$(HOST_DIR)/usr/bin/grub-mkimage \
@@ -76,8 +84,6 @@ define GRUB2_IMAGE_INSTALLATION
-p "$(GRUB2_PREFIX)" \
$(if $(GRUB2_BUILTIN_CONFIG),-c $(GRUB2_BUILTIN_CONFIG)) \
$(GRUB2_BUILTIN_MODULES)
- cat $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE)/cdboot.img $(GRUB2_IMAGE) > \
- $(BINARIES_DIR)/grub-eltorito.img
mkdir -p $(dir $(GRUB2_CFG))
$(INSTALL) -D -m 0644 boot/grub2/grub.cfg $(GRUB2_CFG)
endef
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] Build El Torito for i386 PC
2015-07-29 8:41 [Buildroot] [PATCH] Build El Torito for i386 PC Kinsella, Ray
@ 2015-07-29 9:59 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-07-29 9:59 UTC (permalink / raw)
To: buildroot
Ray,
Thanks for this patch!
On Wed, 29 Jul 2015 08:41:29 +0000, Kinsella, Ray wrote:
> Building Grub2 El Torito for i386 EFI errors complaining it cannot find cdboot.img
>
> cdboot.img: No such file or directory
>
> This commit builds El Torito for i386 EFI only
It looks good, but the commit log lacks your Signed-off-by. See
http://buildroot.org/downloads/manual/manual.html#submitting-patches
for some details, and http://elinux.org/Developer_Certificate_Of_Origin.
Can you resubmit with your SoB line added?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-29 9:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 8:41 [Buildroot] [PATCH] Build El Torito for i386 PC Kinsella, Ray
2015-07-29 9:59 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.