use the override options if specified
[AROS.git] / arch / all-pc / boot / grub / mmakefile.src
blobc1e1a352fec22015428726a1706318180cee8efb
1 # Copyright © 2004-2014, The AROS Development Team. All rights reserved.
2 # $Id$
4 include $(SRCDIR)/config/aros.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
14 GRUBCFLAGS := $(OPTIMIZATION_CFLAGS) -Wl,--build-id=none
16 #MM
17 grub-copy-stages : $(AROSARCHDIR)/grub/stage1 $(AROSARCHDIR)/grub/stage2 $(AROSARCHDIR)/grub/stage2_hdisk $(AROSARCHDIR)/grub/iso9660_stage1_5
19 # DO NOT DECLARE CFLAGS HERE
20 # OR MAKE SURE -fno-stack-protector IS DETECTED IF COMPILER SUPPORTS IT
22 %build_with_configure mmake=grub compiler=kernel install_target= \
23     extraoptions="$(GRUBOPTS)" extracflags="$(GRUBCFLAGS)"
25 $(AROSARCHDIR)/grub/stage1: $(GENDIR)/$(CURDIR)/stage1/stage1
26         %mkdirs_q $(dir $@)
27         @$(CP) $< $@
29 $(AROSARCHDIR)/grub/stage2: $(GENDIR)/$(CURDIR)/stage2/stage2_eltorito
30         %mkdirs_q $(dir $@)
31         @$(CP) $< $@
33 $(AROSARCHDIR)/grub/stage2_hdisk: $(GENDIR)/$(CURDIR)/stage2/stage2
34         %mkdirs_q $(dir $@)
35         @$(CP) $< $@
37 $(AROSARCHDIR)/grub/iso9660_stage1_5: $(GENDIR)/$(CURDIR)/stage2/iso9660_stage1_5
38         %mkdirs_q $(dir $@)
39         @$(CP) $< $@