3 include $(SRCDIR)/config/aros.cfg
5 #MM bootloader-grub2-pc-x86_64 : grub2-dirs bootloader-grub2gfx-common grub2-pc-x86_64
6 #MM bootloader-grub2gfx-pc-x86_64 : grub2-dirs bootloader-grub2gfx-common bootloader-grub2gfx-common-livecd grub2-pc-x86_64
8 #MM- grub2-pc-x86_64: arch-common-grub2 grub2-iso-setup
10 MODULES_DEFAULT:=$(SRCDIR)/$(CURDIR)/../modules.default
11 MODULE_BOOTSTRAP:=/$(AROS_DIR_ARCH)/bootstrap.gz
13 bootloader-grub2-pc-x86_64: $(AROSARCHDIR)/grub/grub.cfg $(AROSDIR)/EFI/BOOT/grub/grub.cfg
14 bootloader-grub2gfx-pc-x86_64: $(AROSARCHDIR)/grub/grub.cfg $(AROSDIR)/EFI/BOOT/grub/grub.cfg
16 $(AROSARCHDIR)/grub/grub.cfg: grub.cfg
17 @$(ECHO) Generating $@...
18 @$(SED) -e 's#@modules.default@#sed "s\#^\# module \#g" $(MODULES_DEFAULT)#e' -e 's#@module.bootstrap@#$(MODULE_BOOTSTRAP)#g' $< > $@
20 $(AROSDIR)/EFI/BOOT/grub/grub.cfg: grub-efi.cfg
21 @$(ECHO) Generating $@...
22 @$(SED) -e 's#@modules.default@#sed "s\#^\# module2 \#g" $(MODULES_DEFAULT)#e' -e 's#@module.bootstrap@#$(MODULE_BOOTSTRAP)#g' $< > $@