Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. --- boot/grub2/grub2.mk 2016-06-29 12:30:25.160051200 +0200
  2. +++ /mnt/Dane/buildroot-2016.05/boot/grub2/grub2.mk 2016-05-31 23:52:36.000000000 +0200
  3. @@ -74,6 +74,13 @@
  4.  
  5. GRUB2_INSTALL_TARGET_OPTS = DESTDIR=$(HOST_DIR) install
  6.  
  7. +ifeq ($(BR2_TARGET_GRUB2_I386_PC),y)
  8. +define GRUB2_IMAGE_INSTALL_ELTORITO
  9. + cat $(HOST_DIR)/usr/lib/grub/$(GRUB2_TUPLE)/cdboot.img $(GRUB2_IMAGE) > \
  10. + $(BINARIES_DIR)/grub-eltorito.img
  11. +endef
  12. +endif
  13. +
  14. define GRUB2_IMAGE_INSTALLATION
  15. mkdir -p $(dir $(GRUB2_IMAGE))
  16. $(HOST_DIR)/usr/bin/grub-mkimage \
  17. @@ -85,6 +92,7 @@
  18. $(GRUB2_BUILTIN_MODULES)
  19. mkdir -p $(dir $(GRUB2_CFG))
  20. $(INSTALL) -D -m 0644 boot/grub2/grub.cfg $(GRUB2_CFG)
  21. + $(GRUB2_IMAGE_INSTALL_ELTORITO)
  22. endef
  23. GRUB2_POST_INSTALL_TARGET_HOOKS += GRUB2_IMAGE_INSTALLATION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement