1 # Copyright © 2004, The AROS Development Team. All rights reserved.
4 include $(TOP)/config/make.cfg
6 #MM- arch-common-grub2 : grub2 grub2-copy-stages
8 GRUB2MODDIR := $(AROSDIR)/boot/grub2
9 GRUB2IMGDIR := $(CONTRIBDIR)/boot/grub2
11 GRUB2DEFMENU := $(TOP)/$(CURDIR)/../menu.lst
12 GRUB2OPTS := --enable-preset-menu=$(GRUB2DEFMENU)
14 ifneq ($(AROS_TARGET_VARIANT),tiny)
17 GRUB2OPTS += --disable-fat --disable-ffs --disable-minix --disable-reiserfs \
18 --disable-vstafs --disable-jfs --disable-xfs --disable-md5-password \
19 --disable-packet-retransmission --disable-ext2fs --disable-serial \
23 #MM- config-native-boot-grub2 : grub2-quick grub2-copy-stages
25 CFLAGS := -minline-all-stringops
28 %build_with_configure mmake=grub2 compiler=host install_target= \
29 extraoptions="$(GRUBOPTS)"
31 GRUB2MODULES := $(foreach \
34 $(GENDIR)/$(CURDIR)/*.mod \
36 $(subst $(GENDIR)/$(CURDIR)/,$(GRUB2MODDIR)/,$f) \
39 GRUB2IMAGES := $(foreach \
42 $(GENDIR)/$(CURDIR)/*.img \
44 $(subst $(GENDIR)/$(CURDIR)/,$(GRUB2IMGDIR)/,$f) \
47 $(warning GRUB2MODULES = $(GRUB2MODULES))
48 $(warning GRUB2IMAGES = $(GRUB2IMAGES))
51 grub2-copy-stages : grub2-setup $(GRUB2MODULES) $(GRUB2IMAGES)
53 $(GRUB2MODDIR)/%.mod: $(GENDIR)/$(CURDIR)/%.mod
57 $(GRUB2IMGDIR)/%.img: $(GENDIR)/$(CURDIR)/%.img
63 %mkdirs_q $(GRUB2MODDIR) $(GRUB2IMGDIR)