source: mainline/uspace/Makefile@ 2df7d824

Last change on this file since 2df7d824 was 0a8f070, checked in by Matthieu Riolo <matthieu.riolo@…>, 6 years ago

Create taskman server (extracts task-related operations from naming service)

  • Exploits initial phones connected to spawn parent instead of NS.
  • session_ns changed to session_primary (setup during taskman-loader handshake).
  • Task creation moved from NS to taskman (no clonable services anymore).
  • Other task-related operations implementation is to come (task_retval is temporarily dummy).
  • Async framework: implicit connections — create fibrils for calls that arrived through initial phone.

Conflicts:

abi/include/abi/ipc/methods.h
boot/Makefile.common
uspace/Makefile
uspace/app/trace/ipcp.c
uspace/lib/c/generic/async.c
uspace/lib/c/generic/libc.c
uspace/lib/c/generic/loader.c
uspace/lib/c/generic/ns.c
uspace/lib/c/generic/private/async.h
uspace/lib/c/generic/private/ns.h
uspace/lib/c/generic/task.c
uspace/lib/c/include/async.h
uspace/lib/c/include/ipc/services.h
uspace/lib/c/include/ipc/taskman.h
uspace/lib/c/include/loader/pcb.h
uspace/lib/c/include/ns.h
uspace/srv/loader/main.c
uspace/srv/ns/clonable.c
uspace/srv/ns/ns.c

  • Property mode set to 100644
File size: 5.9 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/barber \
37 app/bdsh \
38 app/bithenge \
39 app/blkdump \
40 app/contacts \
41 app/corecfg \
42 app/cpptest \
43 app/devctl \
44 app/dnscfg \
45 app/dnsres \
46 app/download \
47 app/edit \
48 app/fdisk \
49 app/fontviewer \
50 app/getterm \
51 app/gunzip \
52 app/hbench \
53 app/init \
54 app/inet \
55 app/kill \
56 app/killall \
57 app/kio \
58 app/loc \
59 app/logset \
60 app/lprint \
61 app/mixerctl \
62 app/mkfat \
63 app/mkexfat \
64 app/mkext4 \
65 app/mkmfs \
66 app/modplay \
67 app/netecho \
68 app/nterm \
69 app/pci \
70 app/redir \
71 app/sbi \
72 app/sportdmp \
73 app/stats \
74 app/taskdump \
75 app/tester \
76 app/testread \
77 app/testrunner \
78 app/testwrit \
79 app/tetris \
80 app/tmon \
81 app/trace \
82 app/top \
83 app/untar \
84 app/usbinfo \
85 app/vol \
86 app/vuhid \
87 app/nic \
88 app/ping \
89 app/pkg \
90 app/sysinfo \
91 app/sysinst \
92 app/mkbd \
93 app/date \
94 app/vcalc \
95 app/vdemo \
96 app/viewer \
97 app/vlaunch \
98 app/vterm \
99 app/df \
100 app/wavplay \
101 app/websrv \
102 app/wifi_supplicant \
103 srv/audio/hound \
104 srv/clipboard \
105 srv/locsrv \
106 srv/logger \
107 srv/klog \
108 srv/devman \
109 srv/loader \
110 srv/net/dhcp \
111 srv/net/dnsrsrv \
112 srv/net/ethip \
113 srv/net/inetsrv \
114 srv/net/loopip \
115 srv/net/nconfsrv \
116 srv/net/slip \
117 srv/net/tcp \
118 srv/net/udp \
119 srv/ns \
120 srv/taskmon \
121 srv/sysman \
122 srv/taskman \
123 srv/vfs \
124 srv/bd/sata_bd \
125 srv/bd/file_bd \
126 srv/bd/rd \
127 srv/bd/vbd \
128 srv/fs/exfat \
129 srv/fs/udf \
130 srv/fs/fat \
131 srv/fs/cdfs \
132 srv/fs/tmpfs \
133 srv/fs/mfs \
134 srv/fs/locfs \
135 srv/fs/ext4fs \
136 srv/volsrv \
137 srv/hid/compositor \
138 srv/hid/console \
139 srv/hid/s3c24xx_ts \
140 srv/hid/isdv4_tablet \
141 srv/hid/input \
142 srv/hid/output \
143 srv/hid/remcons \
144 srv/hw/char/s3c24xx_uart \
145 srv/hid/rfb \
146 srv/test/chardev-test \
147 srv/test/ipc-test \
148 drv/audio/hdaudio \
149 drv/audio/sb16 \
150 drv/root/root \
151 drv/root/virt \
152 drv/block/ahci \
153 drv/block/ata_bd \
154 drv/block/ddisk \
155 drv/block/usbmast \
156 drv/block/virtio-blk \
157 drv/bus/adb/cuda_adb \
158 drv/bus/isa \
159 drv/bus/pci/pciintel \
160 drv/bus/usb/ehci \
161 drv/bus/usb/ohci \
162 drv/bus/usb/uhci \
163 drv/bus/usb/usbdiag \
164 drv/bus/usb/usbflbk \
165 drv/bus/usb/usbhub \
166 drv/bus/usb/usbmid \
167 drv/bus/usb/vhc \
168 drv/bus/usb/xhci \
169 drv/char/i8042 \
170 drv/char/msim-con \
171 drv/char/ns8250 \
172 drv/char/pc-lpt \
173 drv/char/pl011 \
174 drv/char/pl050 \
175 drv/char/ski-con \
176 drv/char/sun4v-con \
177 drv/fb/amdm37x_dispc \
178 drv/fb/kfb \
179 drv/hid/adb-kbd \
180 drv/hid/adb-mouse \
181 drv/hid/atkbd \
182 drv/hid/ps2mouse \
183 drv/hid/usbhid \
184 drv/hid/xtkbd \
185 drv/intctl/apic \
186 drv/intctl/gicv2 \
187 drv/intctl/i8259 \
188 drv/intctl/icp-ic \
189 drv/intctl/obio \
190 drv/nic/ne2k \
191 drv/nic/e1k \
192 drv/nic/rtl8139 \
193 drv/nic/rtl8169 \
194 drv/nic/ar9271 \
195 drv/nic/virtio-net \
196 drv/platform/amdm37x \
197 drv/platform/arm64virt \
198 drv/platform/icp \
199 drv/platform/mac \
200 drv/platform/malta \
201 drv/platform/msim \
202 drv/platform/pc \
203 drv/platform/ski \
204 drv/platform/sun4v \
205 drv/test/test1 \
206 drv/test/test2 \
207 drv/test/test3 \
208 drv/time/cmos-rtc
209
210## sun4u driver won't compile on 32-bit targets
211ifeq ($(UARCH),sparc64)
212 DIRS += \
213 drv/platform/sun4u
214endif
215
216## Dynamic linking tests
217#
218ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
219 DIRS += \
220 app/dltest \
221 app/dltests
222endif
223
224## System libraries
225#
226
227DIRS += \
228 lib/fs \
229 lib/block \
230 lib/c \
231 lib/cpp \
232 lib/crypto \
233 lib/clui \
234 lib/dltest \
235 lib/fdisk \
236 lib/fmtutil \
237 lib/scsi \
238 lib/sif \
239 lib/compress \
240 lib/drv \
241 lib/graph \
242 lib/gui \
243 lib/hound \
244 lib/http \
245 lib/conf \
246 lib/softrend \
247 lib/draw \
248 lib/label \
249 lib/math \
250 lib/minix \
251 lib/nettl \
252 lib/nic \
253 lib/ext4 \
254 lib/trackmod \
255 lib/untar \
256 lib/uri \
257 lib/usb \
258 lib/usbhost \
259 lib/usbdev \
260 lib/usbhid \
261 lib/usbvirt \
262 lib/pcm \
263 lib/pcut \
264 lib/bithenge \
265 lib/posix \
266 lib/ieee80211 \
267 lib/virtio \
268 lib/sysman
269
270BUILDS := $(addsuffix .build,$(DIRS))
271BUILDS_TESTS := $(addsuffix .build-test,$(DIRS))
272DEPS = $(addsuffix /deps.mk,$(DIRS))
273CLEANS := $(addsuffix .clean,$(DIRS))
274
275.PHONY: all $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
276
277all: $(BUILDS) $(BUILDS_TESTS)
278
279$(BUILDS_TESTS): $(BUILDS)
280 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
281
282export: $(BUILDS)
283 mkdir -p $(EXPORT_DIR)
284 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR)
285
286clean: $(CLEANS)
287 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
288 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
289 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
290 rm -fr export
291
292$(CLEANS):
293 -$(MAKE) -r -C $(basename $@) fasterclean
294
295$(BUILDS):
296 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
297
298$(DEPS): %/deps.mk: %/Makefile
299 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
300
301-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.