Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / arch / ppc-sam440 / boot / mmakefile.src
blobaf652d5e6f8c573b352d0a7547fdc3c7c17f33ab
1 # $Id$
2 include $(TOP)/config/make.cfg
5 #MM bootiso-sam440-ppc: \
6 #MM     kernel-sam440-ppc \
7 #MM     kernel-package-sam440-ppc \
8 #MM     workbench-complete \
9 #MM     devs-networks-drivers-emac-powerpc \
10 #MM     aros-tcpip-apps
12 #MM kernel-package-sam440-ppc: \
13 #MM     linklibs-clib \
14 #MM     kernel-expansion \
15 #MM     kernel-utility \
16 #MM     kernel-oop \
17 #MM     kernel-battclock \
18 #MM     kernel-hidd \
19 #MM     kernel-mathieeesingbas \
20 #MM     kernel-aros \
21 #MM     kernel-misc \
22 #MM     kernel-timer \
23 #MM     kernel-pci \
24 #MM     kernel-pci-amcc440 \
25 #MM     kernel-graphics \
26 #MM     kernel-cgfx-kobj \
27 #MM     kernel-layers \
28 #MM     kernel-keymap \
29 #MM     kernel-intuition \
30 #MM     kernel-input \
31 #MM     kernel-gameport \
32 #MM     kernel-keyboard \
33 #MM     kernel-console \
34 #MM     kernel-fs-con \
35 #MM     kernel-fs-packet \
36 #MM     kernel-workbench \
37 #MM     kernel-bootloader-sam440-ppc \
38 #MM     kernel-dos \
39 #MM     kernel-boot \
40 #MM     kernel-bootmenu \
41 #MM     kernel-ata \
42 #MM     hidd-i2c \
43 #MM     hidd-radeon \
44 #MM     hidd-usb \
45 #MM     workbench-fs-nil \
46 #MM     workbench-fs-ram \
47 #MM     workbench-libs-partition \
48 #MM     kernel-sam440-ppc-irq \
49 #MM     contrib-cdvdfs \
50 #MM     workbench-hidd-graphics
52 PKG_LIBS := aros mathieeesingbas partition expansion utility oop graphics layers intuition keymap workbench dos boot
53 PKG_RSRC := misc bootloader battclock
54 PKG_DEVS :=  input gameport keyboard console timer ata
55 PKG_HANDLERS := con nil ram packet cdrom
56 PKG_HIDDS:= graphics hiddclass pci pci-amcc440 i2c radeon irq usb ohci
57 PKG_USB:= hid
59 MODULES := \
60         $(addprefix $(BINDIR)/Libs/, $(addsuffix .library, $(PKG_LIBS))) \
61         $(addprefix $(BINDIR)/Devs/, $(addsuffix .device, $(PKG_DEVS))) \
62         $(addprefix $(BINDIR)/Devs/, $(addsuffix .resource, $(PKG_RSRC))) \
63         $(addprefix $(BINDIR)/Devs/, $(addsuffix .handler, $(PKG_HANDLERS))) \
64         $(addprefix $(BINDIR)/Devs/Drivers/, $(addsuffix .hidd, $(PKG_HIDDS))) \
65         $(addprefix $(BINDIR)/Classes/USB/, $(addsuffix .hidd, $(PKG_USB))) 
67 .PHONY: $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso
68         
69 kernel-package-sam440-ppc:
70         $(RM) -rf $(BINDIR)/boot/modules
71         %mkdirs_q $(BINDIR)/boot/modules
72         @mv $(MODULES) $(BINDIR)/boot/modules/
73         # Dirty hack to link graphics.library with cybergraphics (they use the same graphics_driver!!!)
74         $(KERNEL_LD) -r $(BINDIR)/boot/modules/graphics.library $(KOBJSDIR)/cybergraphics_library.o -o $(BINDIR)/boot/modules/gfx.library
75         $(RM) $(BINDIR)/boot/modules/graphics.library
76         #$(TOP)/tools/package/pkg c $(BINDIR)/boot/kernel.pkg $(BINDIR)/.pkg
77         
78 bootiso-sam440-ppc: $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso
80 $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso:
81         %mkdirs_q $(AROSDIR)/S
82         @$(CP) $(TOP)/workbench/s/Startup-Sequence $(AROSDIR)/S/Startup-Sequence
83         @$(MKDIR) -p "$(AROSDIR)/Tools/Boot Disks"
84         @$(MKDIR) -p "$(PORTSDIR)"
85         @mkisofs -f \
86                 -o $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso \
87                 -b bootloader \
88                 -no-emul-boot \
89                 -allow-leading-dots \
90                 -iso-level 4 \
91                 -V "AROS Live CD" \
92                 -publisher "AROS Development Team" \
93                 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
94                 -l -J -r \
95                 $(AROSDIR)
98 #MM setup-sam440-ppc
99 setup-sam440-ppc : 
100         %mkdirs_q $(BINDIR)/boot $(OSGENDIR)/boot $(TARGETDIR)
101         $(CP) menu.lst $(BINDIR)/boot/
102 #       $(CP) menu.lst.DH0 $(BINDIR)/boot/