Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / common / boot / grub2 / mmakefile.src
blob69aab000635334becb286819393fe096a4b5e7cc
1 # Copyright © 2004, The AROS Development Team. All rights reserved.
2 # $Id$
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
26 #MM
27 grub2-dirs :
28         %mkdirs_q $(GRUBBOOTDIR)
30 #MM
31 grub2-iso-setup :
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