make the linux-ppc packags be in synch with other platforms
[tangerine.git] / arch / common / boot / grub2 / mmakefile.src
blobefc945d9b4067f2d1a7466c46881bd8d88f9b835
1 # Copyright © 2004, The AROS Development Team. All rights reserved.
2 # $Id$
4 include $(TOP)/config/make.cfg
6 #MM- arch-common-grub2 : grub2-host-quick grub2-menu-$(ARCH) grub2-copy-files
8 #MM- bootloader-grub2 : arch-common-grub2
9 #MM- bootloader-grub2-isosetup : grub2-dirs arch-common-grub2 grub2-iso-setup
11 GRUBBOOTDIR := $(AROSDIR)/boot/grub
13 CFLAGS1 := $(filter-out -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="$(GENDIR)/$(CURDIR)/host_binaries"              \
20         extraoptions="--enable-grub-emu --enable-grub-fstest"
22 GRUB2_MODS :=   affs amiga biosdisk boot cat configfile elf     \
23                 fshelp help iso9660 ls multiboot pc serial sfs  \
24                 terminal ext2 fat ntfs _linux linux
26 LST_FILES  :=   command fs moddep
28 #MM
29 grub2-dirs :
30         %mkdirs_q $(GRUBBOOTDIR)
32 #MM
33 grub2-iso-setup :
34         @cd $(GENDIR)/$(CURDIR)                                 && \
35         ./grub-mkimage -d . -o core.img $(GRUB2_MODS)           && \
36         $(CP) *.img $(GRUBBOOTDIR)                              && \
37         $(CP) *.mod $(GRUBBOOTDIR)                              && \
38         $(CP) $(addsuffix .lst,$(LST_FILES)) $(GRUBBOOTDIR)     && \
39         $(CAT) cdboot.img core.img > $(GRUBBOOTDIR)/grub2_eltorito