Speed-up finding next free cluster by starting the search from where the
[AROS.git] / arch / ppc-sam440 / boot / mmakefile.src
blobc3962bbb7314a153fc9ff0180280d7932e306004
1 # $Id$
2 include $(TOP)/config/make.cfg
4 #MM- AROS-sam440-ppc: \
5 #MM     kernel-sam440-ppc \
6 #MM     kernel-package-sam440-ppc \
7 #MM     workbench-complete \
8 #MM     workbench-devs-networks-emac-powerpc \
9 #MM     aros-tcpip-apps
11 #MM bootiso-sam440-ppc: \
12 #MM     boot \
13 #MM     parthenope-sam440 \
14 #MM     AROS-sam440-ppc
16 #MM kernel-package-sam440-ppc: \
17 #MM     linklibs-clib \
18 #MM     kernel-expansion \
19 #MM     kernel-utility \
20 #MM     kernel-oop \
21 #MM     kernel-battclock \
22 #MM     kernel-hidd \
23 #MM     kernel-aros \
24 #MM     kernel-misc \
25 #MM     kernel-timer \
26 #MM     kernel-pci \
27 #MM     kernel-pci-amcc440 \
28 #MM     kernel-pci-amcc460 \
29 #MM     kernel-graphics \
30 #MM     kernel-layers \
31 #MM     kernel-keymap \
32 #MM     kernel-intuition \
33 #MM     kernel-input \
34 #MM     kernel-gameport \
35 #MM     kernel-keyboard \
36 #MM     kernel-console \
37 #MM     kernel-filesystem \
38 #MM     kernel-fs-con \
39 #MM     kernel-fs-afs \
40 #MM     kernel-bootloader \
41 #MM     kernel-dos \
42 #MM     kernel-lddemon \
43 #MM     kernel-dosboot \
44 #MM     kernel-debug \
45 #MM     kernel-ata \
46 #MM     hidd-i2c \
47 #MM     hidd-i2c-amcc440 \
48 #MM     hidd-radeon \
49 #MM     hidd-usb \
50 #MM     kernel-partition \
51 #MM     workbench-libs-workbench \
52 #MM     kernel-hidd-irq \
53 #MM     kernel-fs-cdvdfs \
54 #MM     kernel-fs-fat \
55 #MM     kernel-fs-sfs \
56 #MM     kernel-fs-amberram \
57 #MM     kernel-hidd-graphics \
58 #MM     kernel-hidd-kbd \
59 #MM     kernel-hidd-mouse \
60 #MM     kernel-usb-sam440-ppc \
61 #MM     kernel-usb-usbromstartup \
62 #MM     kernel-processor
64 #MM- kernel-link-sam440-ppc: setup-sam440-ppc kernel-kernel-kobj kernel-exec-kobj kernel-sam440-ppc-quick
66 #MM
67 kernel-link-sam440-ppc: $(BINDIR)/boot/aros-amcc440
69 #MM
70 kernel-link-sam440-ppc-quick: $(BINDIR)/boot/aros-amcc440
72 $(BINDIR)/boot/aros-amcc440: $(KOBJSDIR)/kernel_resource.o $(KOBJSDIR)/exec_library.o
73         @$(ECHO) "Linking    boot/aros-amcc440"
74         $(TARGET_CC) -nostartfiles -Wl,-Map -Wl,$(OSGENDIR)/boot/kernel.map -Wl,-T -Wl,$(SRCDIR)/$(CURDIR)/ldscript.lds \
75         -o $@ $(KOBJSDIR)/kernel_resource.o $(KOBJSDIR)/exec_library.o \
76         -L$(LIBDIR) -larossupport -larosc.static -larosm -lamiga -lautoinit -llibinit -lgcc
79 PKG_LIBS     := aros partition expansion utility oop graphics layers intuition keymap workbench dos debug poseidon
80 PKG_RSRC     := misc bootloader battclock dosboot lddemon usbromstartup processor FileSystem
81 PKG_DEVS     := input gameport keyboard console timer ata USBHardware/pciusb
82 PKG_HANDLERS := con amberram cdrom sfs fat afs
83 PKG_HIDDS    := graphics mouse keyboard hiddclass pci pci-amcc440 pci-amcc460 i2c i2c-amcc440 radeon irq usb ohci
84 PKG_USB      := hid
85 PKG_USB_PSD  := hid hub bootmouse bootkeyboard massstorage
87 MODULES := \
88         $(addprefix $(BINDIR)/Libs/, $(addsuffix .library, $(PKG_LIBS))) \
89         $(addprefix $(BINDIR)/Devs/, $(addsuffix .device, $(PKG_DEVS))) \
90         $(addprefix $(BINDIR)/Devs/, $(addsuffix .resource, $(PKG_RSRC))) \
91         $(addprefix $(BINDIR)/L/, $(addsuffix -handler, $(PKG_HANDLERS))) \
92         $(addprefix $(BINDIR)/Devs/Drivers/, $(addsuffix .hidd, $(PKG_HIDDS))) \
93         $(addprefix $(BINDIR)/Classes/USB/, $(addsuffix .hidd, $(PKG_USB))) \
94         $(addprefix $(BINDIR)/Classes/USB/, $(addsuffix .class, $(PKG_USB_PSD))) \
96 TARGET_ISO := $(DISTDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso
98 .PHONY: $(DISTDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso
100 #MM kernel-package-sam440-ppc-quick:
101 kernel-package-sam440-ppc-quick: kernel-package-sam440-ppc
102         @$(ECHO)
104 kernel-package-sam440-ppc:
105         @$(ECHO) Copying modules to boot/modules/
106         $(RM) -rf $(BINDIR)/boot/modules
107         %mkdirs_q $(BINDIR)/boot/modules
108         @$(CP) $(MODULES) $(BINDIR)/boot/modules/
109         #$(SRCDIR)/tools/package/pkg c $(BINDIR)/boot/kernel.pkg $(BINDIR)/.pkg
110         
111 bootiso-sam440-ppc: $(AROSDIR)/.backdrop $(TARGET_ISO)
113 $(AROSDIR)/.backdrop: $(SRCDIR)/workbench/.backdrop
114         @$(CP) $< $@
117 bootiso-sam440-ppc-quick: $(TARGET_ISO)
119 .PHONY: bootiso-sam440-ppc-quick
121 $(TARGET_ISO):
122         %mkdirs_q $(AROSDIR)/S
123         @$(CP) $(SRCDIR)/workbench/s/Startup-Sequence $(AROSDIR)/S/Startup-Sequence
124         @$(MKDIR) -p "$(AROSDIR)/Tools/Boot Disks"
125         @$(MKDIR) -p "$(DISTDIR)"
126         @mkisofs -f \
127                 -o $@ \
128                 -b Parthenope \
129                 -no-emul-boot \
130                 -allow-leading-dots \
131                 -iso-level 4 \
132                 -V "AROS Live CD" \
133                 -publisher "AROS Development Team" \
134                 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
135                 -l -J -r \
136                 $(AROSDIR)
138 #MM setup-sam440-ppc
139 setup-sam440-ppc : $(SRCDIR)/$(CURDIR)/menu.lst
140         %mkdirs_q $(BINDIR)/boot $(OSGENDIR)/boot $(TARGETDIR)
141         $(CP) $(SRCDIR)/$(CURDIR)/menu.lst $(BINDIR)/boot/
142 #       $(CP) $(SRCDIR)/$(CURDIR)/menu.lst.DH0 $(BINDIR)/boot/