move generic pc drivers to all-pc folder, and modify targets appropriately.
[AROS.git] / arch / i386-pc / boot / iso / mmakefile.src
blobd455e5d62287455bcbf02b777f626accfdeab7fb
1 # $Id$
2 include $(TOP)/config/make.cfg
4 .PHONY: $(DISTDIR)/aros$(AROS_TARGET_SUFFIX)-pc-i386.iso
6 TARGET_ISO := $(DISTDIR)/aros$(AROS_TARGET_SUFFIX)-pc-i386.iso
8 #MM bootiso-pc-i386 :   AROS-complete           \
9 #MM                     kernel-package-pc-i386          \
10 #MM                     AROS-pc-drivers         \
11 #MM                     bootloader-$(AROS_TARGET_BOOTLOADER)-pc-i386
13 bootiso-pc-i386: $(AROSDIR)/.backdrop $(TARGET_ISO)
15 $(AROSDIR)/.backdrop: $(SRCDIR)/workbench/.backdrop
16                 @$(CP) $< $@
18 #MM
19 bootiso-pc-i386-quick: $(TARGET_ISO)
21 .PHONY: bootiso-pc-i386-quick
23 ifeq ($(AROS_TARGET_BOOTLOADER),grub)
24 BOOTLOADER_ELTORITO_REL := $(AROS_DIR_ARCH)/grub/iso9660_stage1_5
25 endif
27 ifeq ($(AROS_TARGET_BOOTLOADER),grub2)
28 BOOTLOADER_ELTORITO_REL := $(AROS_DIR_ARCH)/grub/i386-pc/grub2_eltorito
29 endif
31 ifeq ($(AROS_TARGET_BOOTLOADER),grub2gfx)
32 BOOTLOADER_ELTORITO_REL := $(AROS_DIR_ARCH)/grub/i386-pc/grub2_eltorito
33 endif
35 MODULES_DEFAULT := $(SRCDIR)/$(CURDIR)/../modules.default
36 BOOTSTRAP_BOOT_FILES := bootstrap.gz
37 DEFAULT_BOOT_FILES := $(shell cat $(MODULES_DEFAULT))
38 ISO_DEPS := $(addprefix $(AROSARCHDIR)/, $(BOOTSTRAP_BOOT_FILES)) \
39     $(addprefix $(AROSDIR),$(DEFAULT_BOOT_FILES))
41 $(warning BOOTLOADER_ELTORITO_REL = $(BOOTLOADER_ELTORITO_REL))
42 $(warning LANG = $(LANG))
44 $(TARGET_ISO): $(ISO_DEPS)
45         %mkdirs_q $(AROSDIR)/S
46         @$(CP) $(SRCDIR)/workbench/s/Startup-Sequence $(AROSDIR)/S/Startup-Sequence
47         @$(MKDIR) -p "$(DISTDIR)"
48         @mkisofs -f \
49                 -o $@ \
50                 -b $(BOOTLOADER_ELTORITO_REL) \
51                 -c $(AROS_DIR_ARCH)/boot.catalog \
52                 -no-emul-boot \
53                 -boot-load-size 4 \
54                 -boot-info-table \
55                 -allow-leading-dots \
56                 -iso-level 4 \
57                 -V "AROS Live CD" \
58                 -publisher "The AROS Dev Team" \
59                 -p "The AROS Dev Team (www.aros.org)" \
60                 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
61                 -l -J -r \
62                 $(AROSDIR)