revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-amiga / boot / iso / mmakefile.src
blob9ce1a9a24b27a16c239ef05f867add18a0671251
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 TARGET_ISO := $(DISTDIR)/aros$(AROS_TARGET_SUFFIX)-amiga-m68k.iso
6 DEVEL_ISO  := $(DISTDIR)/aros$(AROS_TARGET_SUFFIX)-amiga-m68k-devel.iso
8 .PHONY: $(TARGET_ISO) $(DEVEL_ISO)
10 #MM bootiso-amiga-m68k :        AROS-complete           \
11 #MM                     kernel-aros \
12 #MM                     kernel-oop  \
13 #MM                     kernel-package-amiga-m68k       \
14 #MM                     kernel-bootstrap-amiga-m68k     \
15 #MM                     AROS-amiga-m68k-drivers \
16 #MM                     bootdisk-amiga-m68k
18 #MM deviso-amiga-m68k : AROS-complete           \
19 #MM                     kernel-aros \
20 #MM                     kernel-oop  \
21 #MM                     kernel-package-amiga-m68k       \
22 #MM                     kernel-bootstrap-amiga-m68k     \
23 #MM                     AROS-amiga-m68k-drivers \
24 #MM                     bootdisk-amiga-m68k
26 TAR ?= tar
27 Q ?= @
29 $(AROSDIR)/.backdrop: $(SRCDIR)/workbench/.backdrop
30                 @$(CP) $< $@
32 $(AROSDIR)/Emergency-Boot.adf: $(DISTDIR)/bootdisk-amiga-m68k.adf
33                 @$(CP) $< $@
35 $(AROSDIR)/Sources: FORCE $(AROSDIR)/Sources.info $(AROSDIR)/Sources/README.txt.info
36         $(Q)$(MKDIR) $(AROSDIR)/Sources
37         $(Q)$(CP) -a $(SRCDIR)/arch/m68k-amiga/doc/. $(AROSDIR)/Sources/.
38         $(Q)$(TAR) -C $(SRCDIR) --exclude=.svn --exclude=linux-x86_64 --exclude=amiga-m68k -czf $(AROSDIR)/Sources/AROS.tar.gz .
39         $(Q)(cd $(AROSDIR)/Sources; ./build-toolchain.sh --fetch-only)
41 $(AROSDIR)/Sources.info: Sources.info.src Sources.png
42         @$(MKDIR) $(AROSDIR)/Sources
43         @$(ILBMTOICON) $^ $@
45 $(AROSDIR)/Sources/README.txt.info: Sources-README.txt.info.src \
46                          Sources-README.txt.png
47         @$(MKDIR) $(AROSDIR)/Sources
48         @$(ILBMTOICON) $^ $@
50 $(AROSDIR)/README.txt.info: README.txt.info.src \
51                             README.txt.png
52         @$(MKDIR) $(AROSDIR)
53         @$(ILBMTOICON) $^ $@
55 $(AROSDIR)/README.txt: README.txt
56         @$(MKDIR) $(AROSDIR)
57         @$(CP) $^ $@
59 #MM
60 bootiso-amiga-m68k: $(TARGET_ISO)
62 #MM
63 bootiso-amiga-m68k-quick: $(TARGET_ISO)
65 #MM
66 deviso-amiga-m68k: $(DEVEL_ISO)
68 #MM
69 deviso-amiga-m68k-quick: $(DEVEL_ISO)
71 .PHONY: bootiso-amiga-m68k-quick deviso-amiga-m68k-quick
73 $(warning LANG = $(LANG))
75 $(TARGET_ISO): $(AROSDIR)/.backdrop \
76                 $(AROSDIR)/Emergency-Boot.adf \
77                 $(AROSDIR)/README.txt.info  \
78                 $(AROSDIR)/README.txt
79         %mkdirs_q $(AROSDIR)/S
80         @$(MKDIR) -p "$(DISTDIR)"
81         @$(MKDIR) -p "$(AROSDIR).HUNK"
82         @$(ECHO) "Converting $(subst $(TARGETDIR)/,,$(AROSDIR)) -> $(subst $(TARGETDIR)/,,$(AROSDIR).HUNK)"
83         @$(ELF2HUNK) "$(AROSDIR)" "$(AROSDIR).HUNK"
84         @$(RM) -rf "$(AROSDIR).HUNK/Sources"*
85         @$(RM) -rf "$(AROSDIR).HUNK/$(AROS_DIR_ARCH)/aros.elf"
86         @$(CP) "$(AROSDIR)/Emergency-Boot/$(AROS_DIR_ARCH)/aros.hunk.gz" "$(AROSDIR).HUNK/$(AROS_DIR_ARCH)"
87         @$(CP) $(SRCDIR)/arch/m68k-amiga/boot/iso/Wanderer-global.prefs "$(AROSDIR).HUNK/Prefs/Env-Archive/SYS/Wanderer/global.prefs"
88         @mkisofs -f \
89                 -o $@ \
90                 -allow-leading-dots \
91                 -iso-level 4 \
92                 -V "AROS Live CD" \
93                 -publisher "The AROS Dev Team" \
94                 -p "The AROS Dev Team (www.aros.org)" \
95                 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
96                 -l -J -r \
97                 "$(AROSDIR).HUNK"
99 $(DEVEL_ISO):   $(AROSDIR)/.backdrop \
100                 $(AROSDIR)/Emergency-Boot.adf \
101                 $(AROSDIR)/Sources \
102                 $(AROSDIR)/README.txt.info  \
103                 $(AROSDIR)/README.txt
104         @$(CP) $(SRCDIR)/arch/m68k-amiga/boot/iso/Wanderer-global.prefs $(AROSDIR).iso/Prefs/Env-Archive/SYS/Wanderer/global.prefs
105         @mkisofs -f \
106                 -o $@ \
107                 -allow-leading-dots \
108                 -iso-level 4 \
109                 -V "AROS Development CD" \
110                 -publisher "The AROS Dev Team" \
111                 -p "The AROS Dev Team (www.aros.org)" \
112                 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
113                 -l -J -r \
114                 "$(AROSDIR)"
117 FORCE:
119 %common