1 # Copyright © 2004, The AROS Development Team. All rights reserved.
4 include $(TOP)/config/make.cfg
6 #MM- arch-common-grub2 : grub2-dirs grub2-host-quick
8 #MM- bootloader-grub2 : arch-common-grub2
9 #MM- bootloader-grub2-isosetup : arch-common-grub2 grub2-iso-setup
11 GRUBBOOTDIR := $(AROSDIR)/boot/grub
13 CFLAGS1 := $(filter-out -Werror=strict-aliasing -Werror-implicit-function-declaration,$(CFLAGS))
15 export CFLAGS := $(CFLAGS1) -D__AROS__ #-g -O0 -fno-inline
16 export TARGET_CFLAGS := $(CFLAGS1) -D__AROS__ #-g -O0 -fno-inline
18 %build_with_configure mmake=grub2-host compiler=host nix=yes \
19 prefix="$(HOSTGENDIR)/$(CURDIR)/host_binaries" install_target= \
20 extraoptions="--enable-grub-emu --enable-grub-fstest"
22 GRUB2_MODS := affs amiga biosdisk fshelp pc sfs iso9660
24 LST_FILES := command fs moddep
28 %mkdirs_q $(GRUBBOOTDIR)
32 @cd $(HOSTGENDIR)/$(CURDIR) && \
33 ./grub-mkimage -d . -o core.img $(GRUB2_MODS) && \
34 $(CP) *.img $(GRUBBOOTDIR) && \
35 $(CP) *.mod $(GRUBBOOTDIR) && \
36 $(CP) $(addsuffix .lst,$(LST_FILES)) $(GRUBBOOTDIR) && \
37 $(CAT) cdboot.img core.img > $(GRUBBOOTDIR)/grub2_eltorito