Changeset 1f5c9c96 in mainline for boot/Makefile.grub


Ignore:
Timestamp:
2011-12-02T17:29:43Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8b1e631, c3887ad
Parents:
c48f6ab
Message:

implement multiboot v2 specification and use it in GRUB for UEFI

  • improve multiboot v1 code, move defines to a common location
  • rename VESA framebuffer stuff to generic "boot framebuffer"
  • small collateral changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.grub

    rc48f6ab r1f5c9c96  
    3939ifeq ($(GRUB_ARCH),pc)
    4040        BOOT_CONFIG = $(BOOT)/grub/i386-pc/grub.cfg
     41        MULTIBOOT_CMD = multiboot
     42        MODULE_CMD = module
    4143endif
    4244ifeq ($(GRUB_ARCH),efi)
    4345        BOOT_CONFIG = $(BOOT)/grub/grub.cfg
     46        MULTIBOOT_CMD = multiboot2
     47        MODULE_CMD = module2
    4448endif
    4549
     
    6973        echo "" >> $(BOOT_CONFIG)
    7074       
     75ifeq ($(GRUB_ARCH),pc)
     76        echo "insmod vbe" >> $(BOOT_CONFIG)
     77        echo "insmod vga" >> $(BOOT_CONFIG)
     78endif
     79ifeq ($(GRUB_ARCH),efi)
     80        echo "insmod efi_gop" >> $(BOOT_CONFIG)
     81        echo "insmod efi_uga" >> $(BOOT_CONFIG)
     82endif
     83        echo "" >> $(BOOT_CONFIG)
     84       
    7185        echo "menuentry 'HelenOS $(RELEASE)' --class helenos --class os {" >> $(BOOT_CONFIG)
    7286        for module in $(MODULES) ; do \
    7387                echo "  echo 'Loading $$module'" >> $(BOOT_CONFIG) ; \
    7488                if [ "$$module" = "kernel.bin" ] ; then \
    75                         echo "  multiboot /boot/$$module" >> $(BOOT_CONFIG) ; \
     89                        echo "  $(MULTIBOOT_CMD) /boot/$$module" >> $(BOOT_CONFIG) ; \
    7690                else \
    77                         echo "  module /boot/$$module" >> $(BOOT_CONFIG) ; \
     91                        echo "  $(MODULE_CMD) /boot/$$module" >> $(BOOT_CONFIG) ; \
    7892                fi \
    7993        done
Note: See TracChangeset for help on using the changeset viewer.