Reverted r48834, as it doesn't work with all GCC versions. It will have to
[AROS.git] / arch / all-pc / boot / grub / mmakefile.src
blobcd248fd95f2b2ca0e0c94238d42e90526d3345af
1 # Copyright © 2004-2014, The AROS Development Team. All rights reserved.
2 # $Id$
4 include $(TOP)/config/make.cfg
6 ifneq ($(AROS_TARGET_VARIANT),tiny)
7 GRUBOPTS += --enable-affs
8 else
9 GRUBOPTS += --enable-affs --disable-fat --disable-ffs --disable-minix --disable-reiserfs \
10             --disable-vstafs --disable-jfs --disable-xfs --disable-md5-password \
11             --disable-packet-retransmission --disable-ext2fs --disable-serial \
12             --disable-hercules
13 endif
15 #MM
16 grub-copy-stages : $(AROSARCHDIR)/grub/stage1 $(AROSARCHDIR)/grub/stage2 $(AROSARCHDIR)/grub/stage2_hdisk $(AROSARCHDIR)/grub/iso9660_stage1_5
18 # DO NOT DECLARE CFLAGS HERE
19 # OR MAKE SURE -fno-stack-protector IS DETECTED IF COMPILER SUPPORTS IT
21 %build_with_configure mmake=grub compiler=kernel install_target= \
22     extraoptions="$(GRUBOPTS)"
23     
24 $(AROSARCHDIR)/grub/stage1: $(GENDIR)/$(CURDIR)/stage1/stage1
25         %mkdirs_q $(dir $@)
26         @$(CP) $< $@
28 $(AROSARCHDIR)/grub/stage2: $(GENDIR)/$(CURDIR)/stage2/stage2_eltorito
29         %mkdirs_q $(dir $@)
30         @$(CP) $< $@
32 $(AROSARCHDIR)/grub/stage2_hdisk: $(GENDIR)/$(CURDIR)/stage2/stage2
33         %mkdirs_q $(dir $@)
34         @$(CP) $< $@
36 $(AROSARCHDIR)/grub/iso9660_stage1_5: $(GENDIR)/$(CURDIR)/stage2/iso9660_stage1_5
37         %mkdirs_q $(dir $@)
38         @$(CP) $< $@