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 \
11 #MM bootiso-sam440-ppc: \
13 #MM parthenope-sam440 \
16 #MM kernel-package-sam440-ppc: \
18 #MM kernel-expansion \
21 #MM kernel-battclock \
27 #MM kernel-pci-amcc440 \
28 #MM kernel-pci-amcc460 \
32 #MM kernel-intuition \
37 #MM kernel-filesystem \
40 #MM kernel-bootloader \
47 #MM hidd-i2c-amcc440 \
50 #MM kernel-partition \
51 #MM workbench-libs-workbench \
53 #MM kernel-fs-cdvdfs \
56 #MM kernel-fs-amberram \
57 #MM kernel-hidd-graphics \
59 #MM kernel-hidd-mouse \
60 #MM kernel-usb-sam440-ppc \
61 #MM kernel-usb-usbromstartup \
64 #MM- kernel-link-sam440-ppc: setup-sam440-ppc kernel-kernel-kobj kernel-exec-kobj kernel-sam440-ppc-quick
67 kernel-link-sam440-ppc: $(BINDIR)/boot/aros-amcc440
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
85 PKG_USB_PSD := hid hub bootmouse bootkeyboard massstorage
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
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
111 bootiso-sam440-ppc: $(AROSDIR)/.backdrop $(TARGET_ISO)
113 $(AROSDIR)/.backdrop: $(SRCDIR)/workbench/.backdrop
117 bootiso-sam440-ppc-quick: $(TARGET_ISO)
119 .PHONY: bootiso-sam440-ppc-quick
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)"
130 -allow-leading-dots \
133 -publisher "AROS Development Team" \
134 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
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/