source: mainline/uspace/Makefile@ c501bc4

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c501bc4 was c501bc4, checked in by Jakub Jermar <jakub@…>, 12 years ago

Add a platform driver for Malta.

  • The platform driver is derived from the rootpc driver and modified to match the Malta board specifics.
  • Include a couple of bus and device drivers in Malta's initrd.
  • Still work in progress. Malta can find the ISA bus on both lmalta and bmalta, but the ISA devices are passed wrong IO addresses.
  • Property mode set to 100644
File size: 5.4 KB
Line 
1#
2# Copyright (c) 2005 Martin Decky
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# - The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29-include ../Makefile.common
30-include ../Makefile.config
31
32## Common binaries
33#
34
35DIRS = \
36 app/bdsh \
37 app/bithenge \
38 app/blkdump \
39 app/bnchmark \
40 app/devctl \
41 app/dnscfg \
42 app/dnsres \
43 app/edit \
44 app/getterm \
45 app/init \
46 app/inet \
47 app/kill \
48 app/killall \
49 app/klog \
50 app/loc \
51 app/logset \
52 app/mixerctl \
53 app/mkfat \
54 app/mkexfat \
55 app/mkmfs \
56 app/nterm \
57 app/redir \
58 app/sbi \
59 app/sportdmp \
60 app/stats \
61 app/taskdump \
62 app/tester \
63 app/testread \
64 app/testwrit \
65 app/tetris \
66 app/trace \
67 app/top \
68 app/usbinfo \
69 app/vuhid \
70 app/netecho \
71 app/nettest1 \
72 app/nettest2 \
73 app/nettest3 \
74 app/ping \
75 app/ping6 \
76 app/sysinfo \
77 app/mkbd \
78 app/date \
79 app/vdemo \
80 app/vlaunch \
81 app/vterm \
82 app/wavplay \
83 app/websrv \
84 srv/audio/hound \
85 srv/clipboard \
86 srv/locsrv \
87 srv/logger \
88 srv/devman \
89 srv/loader \
90 srv/net/dnsrsrv \
91 srv/net/ethip \
92 srv/net/inetsrv \
93 srv/net/loopip \
94 srv/net/slip \
95 srv/net/tcp \
96 srv/net/udp \
97 srv/ns \
98 srv/taskmon \
99 srv/vfs \
100 srv/bd/sata_bd \
101 srv/bd/file_bd \
102 srv/bd/rd \
103 srv/bd/part/guid_part \
104 srv/bd/part/mbr_part \
105 srv/fs/exfat \
106 srv/fs/udf \
107 srv/fs/fat \
108 srv/fs/cdfs \
109 srv/fs/tmpfs \
110 srv/fs/mfs \
111 srv/fs/locfs \
112 srv/fs/ext4fs \
113 srv/hid/compositor \
114 srv/hid/console \
115 srv/hid/s3c24xx_ts \
116 srv/hid/isdv4_tablet \
117 srv/hid/input \
118 srv/hid/output \
119 srv/hid/remcons \
120 srv/hw/char/s3c24xx_uart \
121 drv/audio/sb16 \
122 drv/infrastructure/root \
123 drv/infrastructure/rootvirt \
124 drv/block/ahci \
125 drv/block/ata_bd \
126 drv/char/i8042 \
127 drv/char/ps2mouse \
128 drv/char/xtkbd \
129 drv/test/test1 \
130 drv/test/test2 \
131 drv/test/test3 \
132 drv/fb/kfb \
133 drv/bus/usb/ehci \
134 drv/bus/usb/ohci \
135 drv/bus/usb/uhci \
136 drv/bus/usb/uhcirh \
137 drv/bus/usb/usbflbk \
138 drv/bus/usb/usbhid \
139 drv/bus/usb/usbhub \
140 drv/bus/usb/usbmast \
141 drv/bus/usb/usbmid \
142 drv/bus/usb/vhc \
143 drv/nic/ne2k \
144 drv/nic/e1k \
145 drv/nic/rtl8139
146
147ifeq ($(CONFIG_PCC),y)
148DIRS += \
149 app/cc \
150 app/ccom \
151 app/ccom/mkext \
152 app/cpp
153endif
154
155ifeq ($(CONFIG_BINUTILS),y)
156DIRS += \
157 app/binutils
158endif
159
160ifeq ($(CONFIG_MSIM),y)
161DIRS += \
162 app/msim
163endif
164
165## Platform-specific hardware support
166#
167
168ifeq ($(UARCH),amd64)
169 DIRS += \
170 drv/infrastructure/rootpc \
171 drv/bus/pci/pciintel \
172 drv/bus/isa \
173 drv/char/ns8250 \
174 drv/time/cmos-rtc \
175 srv/hw/irc/apic \
176 srv/hw/irc/i8259
177endif
178
179ifeq ($(UARCH),ia32)
180 DIRS += \
181 drv/infrastructure/rootpc \
182 drv/bus/pci/pciintel \
183 drv/bus/isa \
184 drv/char/ns8250 \
185 drv/time/cmos-rtc \
186 srv/hw/irc/apic \
187 srv/hw/irc/i8259
188endif
189
190ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
191 DIRS += \
192 drv/infrastructure/rootmalta \
193 drv/bus/pci/pciintel \
194 drv/bus/isa
195endif
196
197ifeq ($(UARCH),ppc32)
198 DIRS += \
199 drv/infrastructure/rootmac \
200 drv/bus/pci/pciintel \
201 srv/hw/bus/cuda_adb
202endif
203
204ifeq ($(UARCH),sparc64)
205 DIRS += \
206 srv/hw/irc/obio
207endif
208
209ifeq ($(UARCH),arm32)
210 DIRS += \
211 drv/infrastructure/rootamdm37x \
212 drv/fb/amdm37x_dispc
213endif
214
215## System libraries
216#
217
218LIBC = lib/c
219LIBS = \
220 lib/fs \
221 lib/block \
222 lib/clui \
223 lib/fmtutil \
224 lib/scsi \
225 lib/softint \
226 lib/softfloat \
227 lib/drv \
228 lib/graph \
229 lib/gui \
230 lib/hound \
231 lib/softrend \
232 lib/draw \
233 lib/net \
234 lib/nic \
235 lib/ext4 \
236 lib/usb \
237 lib/usbhost \
238 lib/usbdev \
239 lib/usbhid \
240 lib/usbvirt \
241 lib/pcm \
242 lib/bithenge \
243 lib/posix
244
245LIBC_BUILD = $(addsuffix .build,$(LIBC))
246LIBS_BUILD = $(addsuffix .build,$(LIBS))
247LIBN_BUILD = $(addsuffix .build,$(LIBN))
248BUILDS := $(addsuffix .build,$(DIRS))
249
250CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
251
252.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
253
254all: $(BUILDS)
255
256clean: $(CLEANS)
257
258$(CLEANS):
259 -$(MAKE) -C $(basename $@) clean
260
261$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
262 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
263
264$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
265 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
266
267$(LIBS_BUILD): $(LIBC_BUILD)
268 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
269
270$(LIBC_BUILD):
271 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.