Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / ppc-chrp / efika / boot / mmakefile.src
blobde58b8773d5d7b6838b98fd3b6f9264732514e5f
1 # $Id$
2 include $(TOP)/config/make.cfg
5 #MM bootiso-chrp-ppc-efika: \
6 #MM     kernel-chrp-ppc-efika \
7 #MM             kernel-chrp-ppc-irq \
8 #MM             kernel-package-chrp-ppc-efika \
9 #MM             arch-common-boot-generatebootsig \
10 #MM             workbench-complete
12 #MM kernel-package-chrp-ppc-efika: \
13 #MM     linklibs-clib \
14 #MM     kernel-bootloader-chrp-ppc-efika \
15 #MM kernel-bestcomm-chrp-ppc-efika \
16 #MM     kernel-expansion \
17 #MM     kernel-utility \
18 #MM kernel-openfirmware \
19 #MM     kernel-oop \
20 #MM     kernel-battclock \
21 #MM     kernel-hidd \
22 #MM     kernel-mathieeesingbas \
23 #MM     kernel-aros \
24 #MM     kernel-misc \
25 #MM     kernel-timer \
26 #MM     kernel-pci \
27 #MM kernel-pci-efika \
28 #MM     kernel-graphics \
29 #MM     kernel-cgfx-kobj \
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-fs-con \
38 #MM     kernel-fs-packet \
39 #MM     kernel-workbench \
40 #MM     kernel-boot \
41 #MM kernel-dos \
42 #MM kernel-dosboot \
43 #MM kernel-ata \
44 #MM     hidd-i2c \
45 #MM     hidd-radeon \
46 #MM     hidd-usb \
47 #MM     workbench-fs-nil \
48 #MM     workbench-libs-partition \
49 #MM     contrib-cdvdfs \
50 #MM contrib-sfs \
51 #MM contrib-amberram \
52 #MM     workbench-hidd-graphics
54 PKG_GEN_LIBS    := aros partition expansion utility oop graphics layers intuition keymap workbench boot dos
55 PKG_GEN_RSRC    := dosboot bestcomm
56 PKG_GEN_DEVS    := input gameport keyboard console
57 PKG_GEN_HANDLERS:= con nil amberram cdrom
58 PKG_GEN_HIDDS   := graphics hiddclass i2c pci
60 PKG_EFI_LIBS    := 
61 PKG_EFI_RSRC    := battclock bootloader openfirmware
62 PKG_EFI_DEVS    := timer ata
63 PKG_EFI_HANDLERS:= 
64 PKG_EFI_HIDDS   := radeon pci-efika irq
66 PKG_HIDDS_USB   := usb ohci
67 PKG_USB                 := hid storage
69 MODULES_GENERIC := \
70         $(addprefix $(BINDIR)/Libs/, $(addsuffix .library, $(PKG_GEN_LIBS))) \
71         $(addprefix $(BINDIR)/Devs/, $(addsuffix .device, $(PKG_GEN_DEVS))) \
72         $(addprefix $(BINDIR)/Devs/, $(addsuffix .resource, $(PKG_GEN_RSRC))) \
73         $(addprefix $(BINDIR)/Devs/, $(addsuffix .handler, $(PKG_GEN_HANDLERS))) \
74         $(addprefix $(BINDIR)/Devs/Drivers/, $(addsuffix .hidd, $(PKG_GEN_HIDDS)))
76 MODULES_EFIKA := \
77         $(addprefix $(BINDIR)/Libs/, $(addsuffix .library, $(PKG_EFI_LIBS))) \
78         $(addprefix $(BINDIR)/Devs/, $(addsuffix .device, $(PKG_EFI_DEVS))) \
79         $(addprefix $(BINDIR)/Devs/, $(addsuffix .resource, $(PKG_EFI_RSRC))) \
80         $(addprefix $(BINDIR)/Devs/, $(addsuffix .handler, $(PKG_EFI_HANDLERS))) \
81         $(addprefix $(BINDIR)/Devs/Drivers/, $(addsuffix .hidd, $(PKG_EFI_HIDDS)))
83 MODULES_USB := \
84         $(addprefix $(BINDIR)/Devs/Drivers/, $(addsuffix .hidd, $(PKG_HIDDS_USB))) \
85         $(addprefix $(BINDIR)/Classes/USB/, $(addsuffix .hidd, $(PKG_USB)))
87 .PHONY: $(PORTSDIR)/aros-efika.iso
88         
89 kernel-package-chrp-ppc-efika:
90         $(RM) -rf $(BINDIR)/boot/modules
91         $(RM) -rf $(BINDIR)/.pkg
92         %mkdirs_q $(BINDIR)/boot/modules
93         %mkdirs_q $(BINDIR)/.pkg
94         @mv $(MODULES_GENERIC) $(BINDIR)/.pkg
95         # Dirty hack to link graphics.library with cybergraphics (they use the same graphics_driver!!!)
96         $(KERNEL_LD) -r $(BINDIR)/.pkg/graphics.library $(KOBJSDIR)/cybergraphics_library.o -o $(BINDIR)/.pkg/gfx.library
97         $(RM) $(BINDIR)/.pkg/graphics.library
98         $(TOP)/tools/package/pkg c $(BINDIR)/boot/modules/aros-ppc-generic.pkg $(BINDIR)/.pkg
99         $(RM) -rf $(BINDIR)/.pkg/*
100         @mv $(MODULES_EFIKA) $(BINDIR)/.pkg
101         $(TOP)/tools/package/pkg c $(BINDIR)/boot/modules/aros-ppc-efika.pkg $(BINDIR)/.pkg
102         $(RM) -rf $(BINDIR)/.pkg/*
103         @mv $(MODULES_USB) $(BINDIR)/.pkg
104         $(TOP)/tools/package/pkg c $(BINDIR)/boot/modules/aros-usb.pkg $(BINDIR)/.pkg
105         $(RM) -rf $(BINDIR)/.pkg
112 bootiso-chrp-ppc-efika: $(PORTSDIR)/aros-efika.iso
114 $(PORTSDIR)/aros-efika.iso:
115                 %mkdirs_q $(AROSDIR)/S
116                 @$(CP) $(TOP)/workbench/s/Startup-Sequence $(AROSDIR)/S/Startup-Sequence
117                 @$(MKDIR) -p "$(AROSDIR)/Tools/Boot Disks"
118                 @$(MKDIR) -p "$(PORTSDIR)"
119                 @mkisofs -f \
120                 -o $(PORTSDIR)/aros$(AROS_TARGET_SUFFIX)-$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU).iso \
121                 -allow-leading-dots \
122                 -iso-level 4 \
123                 -V "AROS Live CD" \
124                 -publisher "AROS Development Team" \
125                 -sysid "AROS-$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)" \
126                 -l -J -r \
127                 $(AROSDIR)
129 #                -no-emul-boot \
130 #                -b bootloader \
131