1 | # Copyright (c) 2009-2011 embedded brains GmbH. All rights reserved. |
---|
2 | # |
---|
3 | # embedded brains GmbH |
---|
4 | # Obere Lagerstr. 30 |
---|
5 | # 82178 Puchheim |
---|
6 | # Germany |
---|
7 | # <info@embedded-brains.de> |
---|
8 | # |
---|
9 | # Redistribution and use in source and binary forms, with or without |
---|
10 | # modification, are permitted provided that the following conditions |
---|
11 | # are met: |
---|
12 | # 1. Redistributions of source code must retain the above copyright |
---|
13 | # notice, this list of conditions and the following disclaimer. |
---|
14 | # 2. Redistributions in binary form must reproduce the above copyright |
---|
15 | # notice, this list of conditions and the following disclaimer in the |
---|
16 | # documentation and/or other materials provided with the distribution. |
---|
17 | # |
---|
18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
---|
19 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
---|
20 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
---|
21 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
---|
22 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
---|
23 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
---|
24 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
---|
25 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
---|
26 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
---|
27 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
---|
28 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
29 | |
---|
30 | # FreeBSD: http://svn.freebsd.org/base/releng/8.2/sys (revision 222485) |
---|
31 | |
---|
32 | import shutil |
---|
33 | import os |
---|
34 | import re |
---|
35 | |
---|
36 | PREFIX = 'rtems/freebsd' |
---|
37 | |
---|
38 | OUTPUT_DIRECTORY = '/home/kirspelk/sandbox/opti_touch/libbsd-8.2' |
---|
39 | |
---|
40 | REVERT_DIRECTORY = '.' |
---|
41 | |
---|
42 | BSP = '/home/kirspelk/sandbox/opti_touch/b_rtems_arm/arm-rtems/c/lpc3250/make' |
---|
43 | |
---|
44 | INSTALL_BASE = '/home/kirspelk/sandbox/opti_touch/b_rtems_arm/arm-rtems/lpc3250/lib' |
---|
45 | |
---|
46 | def mapContribPath(path): |
---|
47 | m = re.match('(.*)(' + PREFIX + '/)(contrib/\\w+/)(.*)', path) |
---|
48 | if m: |
---|
49 | path = m.group(1) + m.group(3) + m.group(2) + m.group(4) |
---|
50 | return path |
---|
51 | |
---|
52 | def installEmptyFile(src): |
---|
53 | dst = OUTPUT_DIRECTORY + '/' + PREFIX + '/' + src.replace('rtems/', '') |
---|
54 | try: |
---|
55 | os.makedirs(os.path.dirname(dst)) |
---|
56 | except OSError: |
---|
57 | pass |
---|
58 | out = open(dst, 'w') |
---|
59 | out.write('/* EMPTY */\n') |
---|
60 | out.close() |
---|
61 | |
---|
62 | def fixIncludes(data): |
---|
63 | data = re.sub('#([ \t]*)include <', '#\\1include <' + PREFIX + '/', data) |
---|
64 | data = re.sub('#include <' + PREFIX + '/rtems', '#include <rtems', data) |
---|
65 | data = re.sub('#include <' + PREFIX + '/bsp', '#include <bsp', data) |
---|
66 | data = re.sub('#include "([^"]*)"', '#include <' + PREFIX + '/local/\\1>', data) |
---|
67 | data = re.sub('_H_', '_HH_', data) |
---|
68 | return data |
---|
69 | |
---|
70 | def revertFixIncludes(data): |
---|
71 | data = re.sub('_HH_', '_H_', data) |
---|
72 | data = re.sub('#include <' + PREFIX + '/local/([^>]*)>', '#include "\\1"', data) |
---|
73 | data = re.sub('#([ \t]*)include <' + PREFIX + '/', '#\\1include <', data) |
---|
74 | return data |
---|
75 | |
---|
76 | def installHeaderFile(src): |
---|
77 | dst = OUTPUT_DIRECTORY + '/' + PREFIX + '/' + src.replace('rtems/', '') |
---|
78 | dst = mapContribPath(dst) |
---|
79 | try: |
---|
80 | os.makedirs(os.path.dirname(dst)) |
---|
81 | except OSError: |
---|
82 | pass |
---|
83 | data = open(src).read() |
---|
84 | out = open(dst, 'w') |
---|
85 | if src.find('rtems') == -1: |
---|
86 | data = fixIncludes(data) |
---|
87 | out.write(data) |
---|
88 | out.close() |
---|
89 | |
---|
90 | def installSourceFile(src): |
---|
91 | dst = OUTPUT_DIRECTORY + '/' + PREFIX + '/' + src |
---|
92 | dst = mapContribPath(dst) |
---|
93 | try: |
---|
94 | os.makedirs(os.path.dirname(dst)) |
---|
95 | except OSError: |
---|
96 | pass |
---|
97 | data = open(src).read() |
---|
98 | out = open(dst, 'w') |
---|
99 | if src.find('rtems') == -1: |
---|
100 | data = fixIncludes(data) |
---|
101 | out.write('#include <' + PREFIX + '/machine/rtems-bsd-config.h>\n\n') |
---|
102 | out.write(data) |
---|
103 | out.close() |
---|
104 | |
---|
105 | def revertHeaderFile(org): |
---|
106 | src = OUTPUT_DIRECTORY + '/' + PREFIX + '/' + org.replace('rtems/', '') |
---|
107 | src = mapContribPath(src) |
---|
108 | dst = REVERT_DIRECTORY + '/' + org |
---|
109 | try: |
---|
110 | os.makedirs(os.path.dirname(dst)) |
---|
111 | except OSError: |
---|
112 | pass |
---|
113 | data = open(src).read() |
---|
114 | out = open(dst, 'w') |
---|
115 | if org.find('rtems') == -1: |
---|
116 | data = revertFixIncludes(data) |
---|
117 | out.write(data) |
---|
118 | out.close() |
---|
119 | |
---|
120 | def revertSourceFile(org): |
---|
121 | src = OUTPUT_DIRECTORY + '/' + PREFIX + '/' + org |
---|
122 | src = mapContribPath(src) |
---|
123 | dst = REVERT_DIRECTORY + '/' + org |
---|
124 | try: |
---|
125 | os.makedirs(os.path.dirname(dst)) |
---|
126 | except OSError: |
---|
127 | pass |
---|
128 | data = open(src).read() |
---|
129 | out = open(dst, 'w') |
---|
130 | if org.find('rtems') == -1: |
---|
131 | data = re.sub('#include <' + PREFIX + '/machine/rtems-bsd-config.h>\n\n', '', data) |
---|
132 | data = revertFixIncludes(data) |
---|
133 | out.write(data) |
---|
134 | out.close() |
---|
135 | |
---|
136 | def deleteOutputDirectory(): |
---|
137 | try: |
---|
138 | shutil.rmtree(OUTPUT_DIRECTORY) |
---|
139 | except OSError: |
---|
140 | pass |
---|
141 | |
---|
142 | class ModuleManager: |
---|
143 | def __init__(self): |
---|
144 | self.modules = [] |
---|
145 | self.emptyFiles = [] |
---|
146 | |
---|
147 | def addModule(self, module): |
---|
148 | self.modules.append(module) |
---|
149 | |
---|
150 | def addEmptyFiles(self, emptyFiles): |
---|
151 | self.emptyFiles.extend(emptyFiles) |
---|
152 | |
---|
153 | def copyFiles(self): |
---|
154 | for f in self.emptyFiles: |
---|
155 | installEmptyFile(f) |
---|
156 | for m in self.modules: |
---|
157 | for f in m.headerFiles: |
---|
158 | installHeaderFile(f) |
---|
159 | for f in m.sourceFiles: |
---|
160 | installSourceFile(f) |
---|
161 | |
---|
162 | def revertFiles(self): |
---|
163 | for m in self.modules: |
---|
164 | for f in m.headerFiles: |
---|
165 | revertHeaderFile(f) |
---|
166 | for f in m.sourceFiles: |
---|
167 | revertSourceFile(f) |
---|
168 | |
---|
169 | def createMakefile(self): |
---|
170 | data = 'RTEMS_MAKEFILE_PATH = ' + BSP + '\n' \ |
---|
171 | 'INSTALL_BASE = ' + INSTALL_BASE + '\n' \ |
---|
172 | '\n' \ |
---|
173 | 'include $(RTEMS_MAKEFILE_PATH)/Makefile.inc\n' \ |
---|
174 | 'include $(RTEMS_CUSTOM)\n' \ |
---|
175 | 'include $(PROJECT_ROOT)/make/leaf.cfg\n' \ |
---|
176 | 'include $(PROJECT_ROOT)/make/target.cfg\n' \ |
---|
177 | '\n' \ |
---|
178 | 'CFLAGS += -ffreestanding -I . -I contrib/altq -I contrib/pf -B $(INSTALL_BASE) -w -std=gnu99\n' \ |
---|
179 | '\n' |
---|
180 | data += 'C_FILES =' |
---|
181 | for m in self.modules: |
---|
182 | for f in m.sourceFiles: |
---|
183 | f = PREFIX + '/' + f |
---|
184 | f = mapContribPath(f) |
---|
185 | data += ' \\\n\t' + f |
---|
186 | |
---|
187 | data += '\nC_O_FILES = $(C_FILES:%.c=%.o)\n' \ |
---|
188 | 'C_DEP_FILES = $(C_FILES:%.c=%.dep)\n' \ |
---|
189 | '\n' \ |
---|
190 | 'LIB = libbsd.a\n' \ |
---|
191 | '\n' \ |
---|
192 | 'all: lib_usb\n' \ |
---|
193 | '\n' \ |
---|
194 | '$(LIB): $(C_O_FILES)\n' \ |
---|
195 | '\t$(AR) rcu $@ $^\n' \ |
---|
196 | '\n' \ |
---|
197 | 'lib_usb:\n' \ |
---|
198 | '\texport PATH=$(PATH):/usr/local/gcc-4.5.2/bin ; \\\n' \ |
---|
199 | '\tmake $(LIB)\n' \ |
---|
200 | '\n' \ |
---|
201 | 'install: $(LIB)\n' \ |
---|
202 | '\tinstall -c -m 644 $(LIB) $(INSTALL_BASE)\n' \ |
---|
203 | '\tfor i in `find . -name \'*.h\'` ; do install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \ |
---|
204 | '\n' \ |
---|
205 | 'clean:\n' \ |
---|
206 | '\trm -f -r $(PROJECT_INCLUDE)/rtems/freebsd\n' \ |
---|
207 | '\trm -f $(LIB) $(C_O_FILES) $(C_DEP_FILES)\n' \ |
---|
208 | '\n' \ |
---|
209 | '-include $(C_DEP_FILES)\n' |
---|
210 | out = open(OUTPUT_DIRECTORY + '/Makefile', 'w') |
---|
211 | out.write(data) |
---|
212 | out.close() |
---|
213 | |
---|
214 | class Module: |
---|
215 | def __init__(self, name): |
---|
216 | self.name = name |
---|
217 | self.headerFiles = [] |
---|
218 | self.sourceFiles = [] |
---|
219 | self.dependencies = [] |
---|
220 | |
---|
221 | def addHeaderFiles(self, files): |
---|
222 | self.headerFiles.extend(files) |
---|
223 | |
---|
224 | def addSourceFiles(self, files): |
---|
225 | self.sourceFiles.extend(files) |
---|
226 | |
---|
227 | def addDependency(self, dep): |
---|
228 | self.dependencies.append(dep) |
---|
229 | |
---|
230 | print( "1\n" ) |
---|
231 | mm = ModuleManager() |
---|
232 | print( "2\n" ) |
---|
233 | |
---|
234 | rtems = Module('rtems') |
---|
235 | rtems.addHeaderFiles( |
---|
236 | [ |
---|
237 | 'rtems/machine/atomic.h', |
---|
238 | 'rtems/machine/_bus.h', |
---|
239 | 'rtems/machine/bus.h', |
---|
240 | 'rtems/machine/bus_dma.h', |
---|
241 | 'rtems/machine/rtems-bsd-config.h', |
---|
242 | 'rtems/machine/clock.h', |
---|
243 | 'rtems/machine/cpufunc.h', |
---|
244 | 'rtems/machine/endian.h', |
---|
245 | 'rtems/machine/_limits.h', |
---|
246 | 'rtems/machine/_align.h', |
---|
247 | 'rtems/machine/mutex.h', |
---|
248 | 'rtems/machine/param.h', |
---|
249 | 'rtems/machine/pcpu.h', |
---|
250 | #'rtems/machine/pmap.h', |
---|
251 | 'rtems/machine/proc.h', |
---|
252 | 'rtems/machine/resource.h', |
---|
253 | 'rtems/machine/runq.h', |
---|
254 | 'rtems/machine/signal.h', |
---|
255 | 'rtems/machine/stdarg.h', |
---|
256 | 'rtems/machine/_stdint.h', |
---|
257 | 'rtems/machine/_types.h', |
---|
258 | 'rtems/machine/ucontext.h', |
---|
259 | 'rtems/machine/rtems-bsd-symbols.h', |
---|
260 | 'rtems/machine/rtems-bsd-cache.h', |
---|
261 | 'rtems/machine/rtems-bsd-sysinit.h', |
---|
262 | 'rtems/machine/rtems-bsd-select.h', |
---|
263 | #'rtems/machine/vm.h', |
---|
264 | 'bsd.h', |
---|
265 | ] |
---|
266 | ) |
---|
267 | rtems.addSourceFiles( |
---|
268 | [ |
---|
269 | 'rtems/rtems-bsd-cam.c', |
---|
270 | 'rtems/rtems-bsd-nexus.c', |
---|
271 | 'rtems/rtems-bsd-autoconf.c', |
---|
272 | 'rtems/rtems-bsd-delay.c', |
---|
273 | 'rtems/rtems-bsd-mutex.c', |
---|
274 | 'rtems/rtems-bsd-thread.c', |
---|
275 | 'rtems/rtems-bsd-condvar.c', |
---|
276 | 'rtems/rtems-bsd-lock.c', |
---|
277 | 'rtems/rtems-bsd-sx.c', |
---|
278 | 'rtems/rtems-bsd-rwlock.c', |
---|
279 | 'rtems/rtems-bsd-generic.c', |
---|
280 | 'rtems/rtems-bsd-panic.c', |
---|
281 | 'rtems/rtems-bsd-synch.c', |
---|
282 | 'rtems/rtems-bsd-signal.c', |
---|
283 | 'rtems/rtems-bsd-callout.c', |
---|
284 | 'rtems/rtems-bsd-init.c', |
---|
285 | 'rtems/rtems-bsd-init-with-irq.c', |
---|
286 | 'rtems/rtems-bsd-assert.c', |
---|
287 | 'rtems/rtems-bsd-prot.c', |
---|
288 | 'rtems/rtems-bsd-resource.c', |
---|
289 | 'rtems/rtems-bsd-jail.c', |
---|
290 | 'rtems/rtems-bsd-shell.c', |
---|
291 | 'rtems/rtems-bsd-syscalls.c', |
---|
292 | #'rtems/rtems-bsd-socket.c', |
---|
293 | #'rtems/rtems-bsd-mbuf.c', |
---|
294 | 'rtems/rtems-bsd-malloc.c', |
---|
295 | 'rtems/rtems-bsd-support.c', |
---|
296 | 'rtems/rtems-bsd-bus-dma.c', |
---|
297 | 'rtems/rtems-bsd-sysctl.c', |
---|
298 | 'rtems/rtems-bsd-sysctlbyname.c', |
---|
299 | 'rtems/rtems-bsd-sysctlnametomib.c', |
---|
300 | 'rtems/rtems-bsd-uma.c', |
---|
301 | ] |
---|
302 | ) |
---|
303 | |
---|
304 | local = Module('local') |
---|
305 | local.addHeaderFiles( |
---|
306 | [ |
---|
307 | 'local/bus_if.h', |
---|
308 | 'local/device_if.h', |
---|
309 | #'local/linker_if.h', |
---|
310 | 'local/opt_bus.h', |
---|
311 | 'local/opt_cam.h', |
---|
312 | 'local/opt_compat.h', |
---|
313 | 'local/opt_ddb.h', |
---|
314 | 'local/opt_hwpmc_hooks.h', |
---|
315 | 'local/opt_init_path.h', |
---|
316 | 'local/opt_ktrace.h', |
---|
317 | 'local/opt_printf.h', |
---|
318 | 'local/opt_scsi.h', |
---|
319 | 'local/opt_usb.h', |
---|
320 | 'local/opt_inet.h', |
---|
321 | 'local/opt_inet6.h', |
---|
322 | 'local/opt_altq.h', |
---|
323 | 'local/opt_atalk.h', |
---|
324 | 'local/opt_bootp.h', |
---|
325 | 'local/opt_bpf.h', |
---|
326 | 'local/opt_bus.h', |
---|
327 | 'local/opt_cam.h', |
---|
328 | 'local/opt_carp.h', |
---|
329 | 'local/opt_compat.h', |
---|
330 | 'local/opt_config.h', |
---|
331 | 'local/opt_cpu.h', |
---|
332 | 'local/opt_ddb.h', |
---|
333 | 'local/opt_device_polling.h', |
---|
334 | 'local/opt_ef.h', |
---|
335 | 'local/opt_enc.h', |
---|
336 | 'local/opt_hwpmc_hooks.h', |
---|
337 | 'local/opt_inet6.h', |
---|
338 | 'local/opt_inet.h', |
---|
339 | 'local/opt_init_path.h', |
---|
340 | 'local/opt_ipdivert.h', |
---|
341 | 'local/opt_ipdn.h', |
---|
342 | 'local/opt_ipfw.h', |
---|
343 | 'local/opt_ipsec.h', |
---|
344 | 'local/opt_ipstealth.h', |
---|
345 | 'local/opt_ipx.h', |
---|
346 | 'local/opt_kdb.h', |
---|
347 | 'local/opt_kdtrace.h', |
---|
348 | 'local/opt_ktrace.h', |
---|
349 | 'local/opt_mbuf_profiling.h', |
---|
350 | 'local/opt_mbuf_stress_test.h', |
---|
351 | 'local/opt_mpath.h', |
---|
352 | 'local/opt_mrouting.h', |
---|
353 | 'local/opt_natm.h', |
---|
354 | 'local/opt_netgraph.h', |
---|
355 | 'local/opt_param.h', |
---|
356 | 'local/opt_posix.h', |
---|
357 | 'local/opt_pf.h', |
---|
358 | 'local/opt_printf.h', |
---|
359 | 'local/opt_route.h', |
---|
360 | 'local/opt_scsi.h', |
---|
361 | 'local/opt_sctp.h', |
---|
362 | 'local/opt_tcpdebug.h', |
---|
363 | 'local/opt_tdma.h', |
---|
364 | 'local/opt_usb.h', |
---|
365 | 'local/opt_vlan.h', |
---|
366 | 'local/opt_wlan.h', |
---|
367 | 'local/opt_zero.h', |
---|
368 | 'local/pmap.h', |
---|
369 | 'local/usbdevs_data.h', |
---|
370 | 'local/usbdevs.h', |
---|
371 | 'local/usb_if.h', |
---|
372 | 'local/vnode_if.h', |
---|
373 | 'local/vnode_if_newproto.h', |
---|
374 | 'local/vnode_if_typedef.h', |
---|
375 | 'local/cryptodev_if.h', |
---|
376 | 'local/miibus_if.h', |
---|
377 | 'local/miidevs.h', |
---|
378 | ] |
---|
379 | ) |
---|
380 | local.addSourceFiles( |
---|
381 | [ |
---|
382 | 'local/usb_if.c', |
---|
383 | 'local/bus_if.c', |
---|
384 | #'local/linker_if.c', |
---|
385 | 'local/device_if.c', |
---|
386 | 'local/cryptodev_if.c', |
---|
387 | 'local/miibus_if.c', |
---|
388 | ] |
---|
389 | ) |
---|
390 | |
---|
391 | devUsb = Module('dev_usb') |
---|
392 | devUsb.addHeaderFiles( |
---|
393 | [ |
---|
394 | 'dev/usb/ufm_ioctl.h', |
---|
395 | 'dev/usb/usb_busdma.h', |
---|
396 | 'dev/usb/usb_bus.h', |
---|
397 | 'dev/usb/usb_cdc.h', |
---|
398 | 'dev/usb/usb_controller.h', |
---|
399 | 'dev/usb/usb_core.h', |
---|
400 | 'dev/usb/usb_debug.h', |
---|
401 | 'dev/usb/usb_dev.h', |
---|
402 | 'dev/usb/usb_device.h', |
---|
403 | 'dev/usb/usbdi.h', |
---|
404 | 'dev/usb/usbdi_util.h', |
---|
405 | 'dev/usb/usb_dynamic.h', |
---|
406 | 'dev/usb/usb_endian.h', |
---|
407 | 'dev/usb/usb_freebsd.h', |
---|
408 | 'dev/usb/usb_generic.h', |
---|
409 | 'dev/usb/usb.h', |
---|
410 | 'dev/usb/usbhid.h', |
---|
411 | 'dev/usb/usb_hub.h', |
---|
412 | 'dev/usb/usb_ioctl.h', |
---|
413 | 'dev/usb/usb_mbuf.h', |
---|
414 | 'dev/usb/usb_msctest.h', |
---|
415 | 'dev/usb/usb_process.h', |
---|
416 | 'dev/usb/usb_request.h', |
---|
417 | 'dev/usb/usb_transfer.h', |
---|
418 | 'dev/usb/usb_util.h', |
---|
419 | ] |
---|
420 | ) |
---|
421 | devUsb.addSourceFiles( |
---|
422 | [ |
---|
423 | 'dev/usb/usb_busdma.c', |
---|
424 | 'dev/usb/usb_core.c', |
---|
425 | 'dev/usb/usb_debug.c', |
---|
426 | 'dev/usb/usb_dev.c', |
---|
427 | 'dev/usb/usb_device.c', |
---|
428 | 'dev/usb/usb_dynamic.c', |
---|
429 | 'dev/usb/usb_error.c', |
---|
430 | 'dev/usb/usb_generic.c', |
---|
431 | 'dev/usb/usb_handle_request.c', |
---|
432 | 'dev/usb/usb_hid.c', |
---|
433 | 'dev/usb/usb_hub.c', |
---|
434 | 'dev/usb/usb_lookup.c', |
---|
435 | 'dev/usb/usb_mbuf.c', |
---|
436 | 'dev/usb/usb_msctest.c', |
---|
437 | 'dev/usb/usb_parse.c', |
---|
438 | 'dev/usb/usb_process.c', |
---|
439 | 'dev/usb/usb_request.c', |
---|
440 | 'dev/usb/usb_transfer.c', |
---|
441 | 'dev/usb/usb_util.c', |
---|
442 | ] |
---|
443 | ) |
---|
444 | |
---|
445 | devUsbAddOn = Module('dev_usb_add_on') |
---|
446 | devUsbAddOn.addHeaderFiles( |
---|
447 | [ |
---|
448 | 'dev/usb/usb_pci.h', |
---|
449 | 'dev/usb/usb_compat_linux.h', |
---|
450 | ] |
---|
451 | ) |
---|
452 | devUsbAddOn.addSourceFiles( |
---|
453 | [ |
---|
454 | 'dev/usb/usb_compat_linux.c', |
---|
455 | ] |
---|
456 | ) |
---|
457 | |
---|
458 | devUsbBluetooth = Module('dev_usb_bluetooth') |
---|
459 | devUsbBluetooth.addDependency(devUsb) |
---|
460 | devUsbBluetooth.addHeaderFiles( |
---|
461 | [ |
---|
462 | 'dev/usb/bluetooth/ng_ubt_var.h', |
---|
463 | ] |
---|
464 | ) |
---|
465 | devUsbBluetooth.addSourceFiles( |
---|
466 | [ |
---|
467 | 'dev/usb/bluetooth/ng_ubt.c', |
---|
468 | 'dev/usb/bluetooth/ubtbcmfw.c', |
---|
469 | ] |
---|
470 | ) |
---|
471 | |
---|
472 | devUsbController = Module('dev_usb_controller') |
---|
473 | devUsbController.addDependency(devUsb) |
---|
474 | devUsbController.addHeaderFiles( |
---|
475 | [ |
---|
476 | 'dev/usb/controller/ohci.h', |
---|
477 | 'dev/usb/controller/ohcireg.h', |
---|
478 | 'dev/usb/controller/ehci.h', |
---|
479 | 'dev/usb/controller/ehcireg.h', |
---|
480 | ] |
---|
481 | ) |
---|
482 | devUsbController.addSourceFiles( |
---|
483 | [ |
---|
484 | 'dev/usb/controller/ohci.c', |
---|
485 | 'dev/usb/controller/ehci.c', |
---|
486 | 'dev/usb/controller/usb_controller.c', |
---|
487 | 'dev/usb/controller/ohci_lpc3250.c', |
---|
488 | ] |
---|
489 | ) |
---|
490 | |
---|
491 | devUsbControllerAddOn = Module('dev_usb_controller_add_on') |
---|
492 | devUsbControllerAddOn.addDependency(devUsb) |
---|
493 | devUsbControllerAddOn.addHeaderFiles( |
---|
494 | [ |
---|
495 | 'dev/usb/controller/at91dci.h', |
---|
496 | 'dev/usb/controller/atmegadci.h', |
---|
497 | 'dev/usb/controller/musb_otg.h', |
---|
498 | 'dev/usb/controller/uss820dci.h', |
---|
499 | ] |
---|
500 | ) |
---|
501 | devUsbControllerAddOn.addSourceFiles( |
---|
502 | [ |
---|
503 | 'dev/usb/controller/at91dci_atmelarm.c', |
---|
504 | 'dev/usb/controller/at91dci.c', |
---|
505 | 'dev/usb/controller/atmegadci_atmelarm.c', |
---|
506 | 'dev/usb/controller/atmegadci.c', |
---|
507 | 'dev/usb/controller/ehci_ixp4xx.c', |
---|
508 | 'dev/usb/controller/ehci_pci.c', |
---|
509 | 'dev/usb/controller/musb_otg.c', |
---|
510 | 'dev/usb/controller/ehci_mbus.c', |
---|
511 | 'dev/usb/controller/musb_otg_atmelarm.c', |
---|
512 | 'dev/usb/controller/ohci_atmelarm.c', |
---|
513 | 'dev/usb/controller/ohci_pci.c', |
---|
514 | 'dev/usb/controller/uhci_pci.c', |
---|
515 | 'dev/usb/controller/uss820dci_atmelarm.c', |
---|
516 | 'dev/usb/controller/uss820dci.c', |
---|
517 | ] |
---|
518 | ) |
---|
519 | |
---|
520 | devUsbInput = Module('dev_usb_input') |
---|
521 | devUsbInput.addDependency(devUsb) |
---|
522 | devUsbInput.addHeaderFiles( |
---|
523 | [ |
---|
524 | 'dev/usb/input/usb_rdesc.h', |
---|
525 | ] |
---|
526 | ) |
---|
527 | devUsbInput.addSourceFiles( |
---|
528 | [ |
---|
529 | 'dev/usb/input/uhid.c', |
---|
530 | 'dev/usb/input/ukbd.c', |
---|
531 | ] |
---|
532 | ) |
---|
533 | |
---|
534 | devUsbInputMouse = Module('dev_usb_mouse') |
---|
535 | devUsbInputMouse.addDependency(devUsb) |
---|
536 | devUsbInputMouse.addHeaderFiles( |
---|
537 | [ |
---|
538 | 'sys/tty.h', |
---|
539 | 'sys/mouse.h', |
---|
540 | 'sys/ttyqueue.h', |
---|
541 | 'sys/ttydefaults.h', |
---|
542 | 'sys/ttydisc.h', |
---|
543 | 'sys/ttydevsw.h', |
---|
544 | 'sys/ttyhook.h', |
---|
545 | ] |
---|
546 | ) |
---|
547 | devUsbInputMouse.addSourceFiles( |
---|
548 | [ |
---|
549 | 'dev/usb/input/ums.c', |
---|
550 | ] |
---|
551 | ) |
---|
552 | |
---|
553 | devUsbMisc = Module('dev_usb_misc') |
---|
554 | devUsbMisc.addDependency(devUsb) |
---|
555 | devUsbMisc.addHeaderFiles( |
---|
556 | [ |
---|
557 | 'dev/usb/misc/udbp.h', |
---|
558 | ] |
---|
559 | ) |
---|
560 | devUsbMisc.addSourceFiles( |
---|
561 | [ |
---|
562 | 'dev/usb/misc/udbp.c', |
---|
563 | 'dev/usb/misc/ufm.c', |
---|
564 | ] |
---|
565 | ) |
---|
566 | |
---|
567 | devUsbNet = Module('dev_usb_net') |
---|
568 | devUsbNet.addDependency(devUsb) |
---|
569 | devUsbNet.addHeaderFiles( |
---|
570 | [ |
---|
571 | 'dev/mii/mii.h', |
---|
572 | 'dev/mii/miivar.h', |
---|
573 | 'net/bpf.h', |
---|
574 | 'net/ethernet.h', |
---|
575 | 'net/if_arp.h', |
---|
576 | 'net/if_dl.h', |
---|
577 | 'net/if.h', |
---|
578 | 'net/if_media.h', |
---|
579 | 'net/if_types.h', |
---|
580 | 'net/if_var.h', |
---|
581 | 'net/vnet.h', |
---|
582 | 'dev/usb/net/if_cdcereg.h', |
---|
583 | 'dev/usb/net/usb_ethernet.h', |
---|
584 | ] |
---|
585 | ) |
---|
586 | devUsbNet.addSourceFiles( |
---|
587 | [ |
---|
588 | 'dev/usb/net/if_cdce.c', |
---|
589 | 'dev/usb/net/usb_ethernet.c', |
---|
590 | ] |
---|
591 | ) |
---|
592 | |
---|
593 | devUsbQuirk = Module('dev_usb_quirk') |
---|
594 | devUsbQuirk.addDependency(devUsb) |
---|
595 | devUsbQuirk.addHeaderFiles( |
---|
596 | [ |
---|
597 | 'dev/usb/quirk/usb_quirk.h', |
---|
598 | ] |
---|
599 | ) |
---|
600 | devUsbQuirk.addSourceFiles( |
---|
601 | [ |
---|
602 | 'dev/usb/quirk/usb_quirk.c', |
---|
603 | ] |
---|
604 | ) |
---|
605 | |
---|
606 | devUsbSerial = Module('dev_usb_serial') |
---|
607 | devUsbSerial.addDependency(devUsb) |
---|
608 | devUsbSerial.addHeaderFiles( |
---|
609 | [ |
---|
610 | 'dev/usb/serial/uftdi_reg.h', |
---|
611 | 'dev/usb/serial/usb_serial.h', |
---|
612 | ] |
---|
613 | ) |
---|
614 | devUsbSerial.addSourceFiles( |
---|
615 | [ |
---|
616 | 'dev/usb/serial/u3g.c', |
---|
617 | 'dev/usb/serial/uark.c', |
---|
618 | 'dev/usb/serial/ubsa.c', |
---|
619 | 'dev/usb/serial/ubser.c', |
---|
620 | 'dev/usb/serial/uchcom.c', |
---|
621 | 'dev/usb/serial/ucycom.c', |
---|
622 | 'dev/usb/serial/ufoma.c', |
---|
623 | 'dev/usb/serial/uftdi.c', |
---|
624 | 'dev/usb/serial/ugensa.c', |
---|
625 | 'dev/usb/serial/uipaq.c', |
---|
626 | 'dev/usb/serial/ulpt.c', |
---|
627 | 'dev/usb/serial/umct.c', |
---|
628 | 'dev/usb/serial/umodem.c', |
---|
629 | 'dev/usb/serial/umoscom.c', |
---|
630 | 'dev/usb/serial/uplcom.c', |
---|
631 | 'dev/usb/serial/usb_serial.c', |
---|
632 | 'dev/usb/serial/uslcom.c', |
---|
633 | 'dev/usb/serial/uvisor.c', |
---|
634 | 'dev/usb/serial/uvscom.c', |
---|
635 | ] |
---|
636 | ) |
---|
637 | |
---|
638 | devUsbStorage = Module('dev_usb_storage') |
---|
639 | devUsbStorage.addDependency(devUsb) |
---|
640 | devUsbStorage.addSourceFiles( |
---|
641 | [ |
---|
642 | 'dev/usb/storage/umass.c', |
---|
643 | ] |
---|
644 | ) |
---|
645 | |
---|
646 | devUsbStorageAddOn = Module('dev_usb_storage_add_on') |
---|
647 | devUsbStorageAddOn.addDependency(devUsb) |
---|
648 | devUsbStorageAddOn.addHeaderFiles( |
---|
649 | [ |
---|
650 | 'dev/usb/storage/rio500_usb.h', |
---|
651 | ] |
---|
652 | ) |
---|
653 | devUsbStorageAddOn.addSourceFiles( |
---|
654 | [ |
---|
655 | 'dev/usb/storage/urio.c', |
---|
656 | 'dev/usb/storage/ustorage_fs.c', |
---|
657 | ] |
---|
658 | ) |
---|
659 | |
---|
660 | devUsbTemplate = Module('dev_usb_template') |
---|
661 | devUsbTemplate.addDependency(devUsb) |
---|
662 | devUsbTemplate.addHeaderFiles( |
---|
663 | [ |
---|
664 | 'dev/usb/template/usb_template.h', |
---|
665 | ] |
---|
666 | ) |
---|
667 | devUsbTemplate.addSourceFiles( |
---|
668 | [ |
---|
669 | 'dev/usb/template/usb_template.c', |
---|
670 | 'dev/usb/template/usb_template_cdce.c', |
---|
671 | 'dev/usb/template/usb_template_msc.c', |
---|
672 | 'dev/usb/template/usb_template_mtp.c', |
---|
673 | ] |
---|
674 | ) |
---|
675 | |
---|
676 | devUsbWlan = Module('dev_usb_wlan') |
---|
677 | devUsbWlan.addDependency(devUsb) |
---|
678 | devUsbWlan.addHeaderFiles( |
---|
679 | [ |
---|
680 | 'dev/usb/wlan/if_rumfw.h', |
---|
681 | 'dev/usb/wlan/if_rumreg.h', |
---|
682 | 'dev/usb/wlan/if_rumvar.h', |
---|
683 | 'dev/usb/wlan/if_uathreg.h', |
---|
684 | 'dev/usb/wlan/if_uathvar.h', |
---|
685 | 'dev/usb/wlan/if_upgtvar.h', |
---|
686 | 'dev/usb/wlan/if_uralreg.h', |
---|
687 | 'dev/usb/wlan/if_uralvar.h', |
---|
688 | 'dev/usb/wlan/if_zydfw.h', |
---|
689 | 'dev/usb/wlan/if_zydreg.h', |
---|
690 | ] |
---|
691 | ) |
---|
692 | devUsbWlan.addSourceFiles( |
---|
693 | [ |
---|
694 | 'dev/usb/wlan/if_rum.c', |
---|
695 | 'dev/usb/wlan/if_uath.c', |
---|
696 | 'dev/usb/wlan/if_upgt.c', |
---|
697 | 'dev/usb/wlan/if_ural.c', |
---|
698 | 'dev/usb/wlan/if_zyd.c', |
---|
699 | ] |
---|
700 | ) |
---|
701 | |
---|
702 | devPci = Module('dev_pci') |
---|
703 | devPci.addHeaderFiles( |
---|
704 | [ |
---|
705 | 'dev/pci/pcireg.h', |
---|
706 | 'dev/pci/pcivar.h', |
---|
707 | ] |
---|
708 | ) |
---|
709 | |
---|
710 | devUsbBase = Module('dev_usb_base') |
---|
711 | devUsbBase.addHeaderFiles( |
---|
712 | [ |
---|
713 | 'bsm/audit.h', |
---|
714 | 'bsm/audit_kevents.h', |
---|
715 | 'sys/acl.h', |
---|
716 | 'sys/bufobj.h', |
---|
717 | 'sys/_bus_dma.h', |
---|
718 | 'sys/bus_dma.h', |
---|
719 | 'sys/bus.h', |
---|
720 | 'sys/callout.h', |
---|
721 | 'sys/cdefs.h', |
---|
722 | 'sys/condvar.h', |
---|
723 | 'sys/conf.h', |
---|
724 | #'sys/cpuset.h', |
---|
725 | 'sys/ctype.h', |
---|
726 | 'sys/endian.h', |
---|
727 | 'sys/errno.h', |
---|
728 | 'sys/event.h', |
---|
729 | 'sys/eventhandler.h', |
---|
730 | 'sys/fcntl.h', |
---|
731 | 'sys/filedesc.h', |
---|
732 | 'sys/file.h', |
---|
733 | 'sys/filio.h', |
---|
734 | 'sys/ioccom.h', |
---|
735 | 'sys/_iovec.h', |
---|
736 | 'sys/kernel.h', |
---|
737 | 'sys/kobj.h', |
---|
738 | 'sys/kthread.h', |
---|
739 | 'sys/ktr.h', |
---|
740 | 'sys/libkern.h', |
---|
741 | 'sys/linker_set.h', |
---|
742 | 'sys/_lock.h', |
---|
743 | 'sys/lock.h', |
---|
744 | 'sys/_lockmgr.h', |
---|
745 | 'sys/lockmgr.h', |
---|
746 | 'sys/lock_profile.h', |
---|
747 | 'sys/lockstat.h', |
---|
748 | 'sys/mac.h', |
---|
749 | 'sys/malloc.h', |
---|
750 | 'sys/mbuf.h', |
---|
751 | 'sys/module.h', |
---|
752 | 'sys/mount.h', |
---|
753 | 'sys/_mutex.h', |
---|
754 | 'sys/mutex.h', |
---|
755 | 'sys/_null.h', |
---|
756 | 'sys/osd.h', |
---|
757 | 'sys/param.h', |
---|
758 | 'sys/pcpu.h', |
---|
759 | 'sys/poll.h', |
---|
760 | 'sys/priority.h', |
---|
761 | 'sys/priv.h', |
---|
762 | 'sys/proc.h', |
---|
763 | 'sys/queue.h', |
---|
764 | 'sys/refcount.h', |
---|
765 | 'sys/resource.h', |
---|
766 | 'sys/resourcevar.h', |
---|
767 | 'sys/rtprio.h', |
---|
768 | 'sys/runq.h', |
---|
769 | 'sys/_rwlock.h', |
---|
770 | 'sys/rwlock.h', |
---|
771 | 'sys/_semaphore.h', |
---|
772 | 'sys/selinfo.h', |
---|
773 | 'sys/sigio.h', |
---|
774 | 'sys/signal.h', |
---|
775 | 'sys/signalvar.h', |
---|
776 | 'sys/_sigset.h', |
---|
777 | #'sys/sleepqueue.h', |
---|
778 | 'sys/socket.h', |
---|
779 | 'sys/stddef.h', |
---|
780 | 'sys/stdint.h', |
---|
781 | 'sys/_sx.h', |
---|
782 | 'sys/sx.h', |
---|
783 | 'sys/sysctl.h', |
---|
784 | 'sys/systm.h', |
---|
785 | 'sys/ttycom.h', |
---|
786 | 'sys/_types.h', |
---|
787 | 'sys/types.h', |
---|
788 | 'sys/ucontext.h', |
---|
789 | 'sys/ucred.h', |
---|
790 | 'sys/uio.h', |
---|
791 | 'sys/unistd.h', |
---|
792 | #'sys/vmmeter.h', |
---|
793 | #'sys/vnode.h', |
---|
794 | 'sys/rman.h', |
---|
795 | 'sys/reboot.h', |
---|
796 | 'sys/bitstring.h', |
---|
797 | 'sys/linker.h', |
---|
798 | 'vm/uma.h', |
---|
799 | 'vm/uma_int.h', |
---|
800 | 'vm/uma_dbg.h', |
---|
801 | #'vm/vm.h', |
---|
802 | #'vm/vm_page.h', |
---|
803 | 'fs/devfs/devfs_int.h', |
---|
804 | ] |
---|
805 | ) |
---|
806 | devUsbBase.addSourceFiles( |
---|
807 | [ |
---|
808 | 'kern/init_main.c', |
---|
809 | #'kern/kern_linker.c', |
---|
810 | #'kern/kern_mib.c', |
---|
811 | 'kern/kern_mbuf.c', |
---|
812 | 'kern/kern_module.c', |
---|
813 | 'kern/kern_sysctl.c', |
---|
814 | 'kern/subr_bus.c', |
---|
815 | 'kern/subr_kobj.c', |
---|
816 | #'kern/subr_sleepqueue.c', |
---|
817 | 'kern/uipc_mbuf.c', |
---|
818 | 'kern/uipc_mbuf2.c', |
---|
819 | 'kern/uipc_socket.c', |
---|
820 | #'kern/uipc_domain.c', |
---|
821 | #'kern/uipc_syscalls.c', |
---|
822 | #'vm/uma_core.c', |
---|
823 | ] |
---|
824 | ) |
---|
825 | |
---|
826 | cam = Module('cam') |
---|
827 | cam.addHeaderFiles( |
---|
828 | [ |
---|
829 | 'sys/ata.h', |
---|
830 | 'cam/cam.h', |
---|
831 | 'cam/cam_ccb.h', |
---|
832 | 'cam/cam_sim.h', |
---|
833 | 'cam/cam_xpt_sim.h', |
---|
834 | 'cam/scsi/scsi_all.h', |
---|
835 | 'cam/scsi/scsi_da.h', |
---|
836 | 'cam/ata/ata_all.h', |
---|
837 | 'cam/cam_periph.h', |
---|
838 | 'cam/cam_debug.h', |
---|
839 | 'cam/cam_xpt.h', |
---|
840 | ] |
---|
841 | ) |
---|
842 | cam.addSourceFiles( |
---|
843 | [ |
---|
844 | 'cam/cam.c', |
---|
845 | 'cam/scsi/scsi_all.c', |
---|
846 | ] |
---|
847 | ) |
---|
848 | |
---|
849 | devNet = Module('dev_net') |
---|
850 | devNet.addHeaderFiles( |
---|
851 | [ |
---|
852 | 'dev/mii/mii.h', |
---|
853 | 'dev/mii/miivar.h', |
---|
854 | 'dev/mii/icsphyreg.h', |
---|
855 | 'net/bpf.h', |
---|
856 | 'net/ethernet.h', |
---|
857 | 'net/if_arp.h', |
---|
858 | 'net/if_dl.h', |
---|
859 | 'net/if.h', |
---|
860 | 'net/if_media.h', |
---|
861 | 'net/if_types.h', |
---|
862 | 'net/if_var.h', |
---|
863 | 'net/vnet.h', |
---|
864 | ] |
---|
865 | ) |
---|
866 | devNet.addSourceFiles( |
---|
867 | [ |
---|
868 | 'dev/mii/mii.c', |
---|
869 | 'dev/mii/mii_physubr.c', |
---|
870 | 'dev/mii/icsphy.c', |
---|
871 | ] |
---|
872 | ) |
---|
873 | |
---|
874 | netDeps = Module('netDeps') |
---|
875 | netDeps.addHeaderFiles( |
---|
876 | [ |
---|
877 | 'rtems/machine/in_cksum.h', |
---|
878 | 'security/mac/mac_framework.h', |
---|
879 | 'sys/cpu.h', |
---|
880 | 'sys/interrupt.h', |
---|
881 | 'sys/fnv_hash.h', |
---|
882 | 'sys/tree.h', |
---|
883 | 'sys/taskqueue.h', |
---|
884 | 'sys/buf_ring.h', |
---|
885 | 'sys/rwlock.h', |
---|
886 | 'sys/_rmlock.h', |
---|
887 | 'sys/sockio.h', |
---|
888 | 'sys/sdt.h', |
---|
889 | 'sys/_task.h', |
---|
890 | 'sys/sbuf.h', |
---|
891 | 'sys/smp.h', |
---|
892 | 'sys/syslog.h', |
---|
893 | 'sys/jail.h', |
---|
894 | 'sys/protosw.h', |
---|
895 | 'sys/random.h', |
---|
896 | 'sys/rmlock.h', |
---|
897 | 'sys/hash.h', |
---|
898 | #'sys/select.h', |
---|
899 | 'sys/sf_buf.h', |
---|
900 | 'sys/socketvar.h', |
---|
901 | 'sys/sockbuf.h', |
---|
902 | #'sys/sysproto.h', |
---|
903 | 'sys/sockstate.h', |
---|
904 | 'sys/sockopt.h', |
---|
905 | 'sys/domain.h', |
---|
906 | 'sys/time.h', |
---|
907 | ] |
---|
908 | ) |
---|
909 | |
---|
910 | net = Module('net') |
---|
911 | net.addHeaderFiles( |
---|
912 | [ |
---|
913 | 'net/bpf_buffer.h', |
---|
914 | 'net/bpfdesc.h', |
---|
915 | 'net/bpf.h', |
---|
916 | 'net/bpf_jitter.h', |
---|
917 | 'net/bpf_zerocopy.h', |
---|
918 | 'net/bridgestp.h', |
---|
919 | 'net/ethernet.h', |
---|
920 | 'net/fddi.h', |
---|
921 | 'net/firewire.h', |
---|
922 | 'net/flowtable.h', |
---|
923 | 'net/ieee8023ad_lacp.h', |
---|
924 | 'net/if_arc.h', |
---|
925 | 'net/if_arp.h', |
---|
926 | 'net/if_atm.h', |
---|
927 | 'net/if_bridgevar.h', |
---|
928 | 'net/if_clone.h', |
---|
929 | 'net/if_dl.h', |
---|
930 | 'net/if_enc.h', |
---|
931 | 'net/if_gif.h', |
---|
932 | 'net/if_gre.h', |
---|
933 | 'net/if.h', |
---|
934 | 'net/if_lagg.h', |
---|
935 | 'net/if_llatbl.h', |
---|
936 | 'net/if_llc.h', |
---|
937 | 'net/if_media.h', |
---|
938 | 'net/if_mib.h', |
---|
939 | 'net/if_sppp.h', |
---|
940 | 'net/if_stf.h', |
---|
941 | 'net/if_tap.h', |
---|
942 | 'net/if_tapvar.h', |
---|
943 | 'net/if_tun.h', |
---|
944 | 'net/if_types.h', |
---|
945 | 'net/if_var.h', |
---|
946 | 'net/if_vlan_var.h', |
---|
947 | 'net/iso88025.h', |
---|
948 | 'net/netisr.h', |
---|
949 | 'net/pfil.h', |
---|
950 | 'net/pfkeyv2.h', |
---|
951 | 'net/ppp_defs.h', |
---|
952 | 'net/radix.h', |
---|
953 | 'net/radix_mpath.h', |
---|
954 | 'net/raw_cb.h', |
---|
955 | 'net/route.h', |
---|
956 | 'net/slcompress.h', |
---|
957 | 'net/vnet.h', |
---|
958 | 'net/zlib.h', |
---|
959 | ] |
---|
960 | ) |
---|
961 | net.addSourceFiles( |
---|
962 | [ |
---|
963 | 'net/bridgestp.c', |
---|
964 | 'net/ieee8023ad_lacp.c', |
---|
965 | 'net/if_atmsubr.c', |
---|
966 | 'net/if.c', |
---|
967 | 'net/if_clone.c', |
---|
968 | 'net/if_dead.c', |
---|
969 | 'net/if_disc.c', |
---|
970 | 'net/if_edsc.c', |
---|
971 | 'net/if_ef.c', |
---|
972 | 'net/if_enc.c', |
---|
973 | 'net/if_epair.c', |
---|
974 | 'net/if_faith.c', |
---|
975 | 'net/if_fddisubr.c', |
---|
976 | 'net/if_fwsubr.c', |
---|
977 | 'net/if_gif.c', |
---|
978 | 'net/if_gre.c', |
---|
979 | 'net/if_iso88025subr.c', |
---|
980 | 'net/if_lagg.c', |
---|
981 | 'net/if_llatbl.c', |
---|
982 | 'net/if_loop.c', |
---|
983 | 'net/if_media.c', |
---|
984 | 'net/if_mib.c', |
---|
985 | 'net/if_spppfr.c', |
---|
986 | 'net/if_spppsubr.c', |
---|
987 | 'net/if_stf.c', |
---|
988 | 'net/if_tap.c', |
---|
989 | 'net/if_tun.c', |
---|
990 | 'net/if_vlan.c', |
---|
991 | 'net/pfil.c', |
---|
992 | 'net/radix.c', |
---|
993 | 'net/radix_mpath.c', |
---|
994 | 'net/raw_cb.c', |
---|
995 | 'net/raw_usrreq.c', |
---|
996 | 'net/route.c', |
---|
997 | 'net/rtsock.c', |
---|
998 | 'net/slcompress.c', |
---|
999 | 'net/zlib.c', |
---|
1000 | 'net/bpf_buffer.c', |
---|
1001 | 'net/bpf.c', |
---|
1002 | 'net/bpf_filter.c', |
---|
1003 | 'net/bpf_jitter.c', |
---|
1004 | 'net/if_arcsubr.c', |
---|
1005 | 'net/if_bridge.c', |
---|
1006 | 'net/if_ethersubr.c', |
---|
1007 | 'net/netisr.c', |
---|
1008 | ] |
---|
1009 | ) |
---|
1010 | |
---|
1011 | netinet = Module('netinet') |
---|
1012 | netinet.addHeaderFiles( |
---|
1013 | [ |
---|
1014 | 'netinet/icmp6.h', |
---|
1015 | 'netinet/icmp_var.h', |
---|
1016 | 'netinet/if_atm.h', |
---|
1017 | 'netinet/if_ether.h', |
---|
1018 | 'netinet/igmp.h', |
---|
1019 | 'netinet/igmp_var.h', |
---|
1020 | 'netinet/in_gif.h', |
---|
1021 | 'netinet/in.h', |
---|
1022 | 'netinet/in_pcb.h', |
---|
1023 | 'netinet/in_systm.h', |
---|
1024 | 'netinet/in_var.h', |
---|
1025 | 'netinet/ip6.h', |
---|
1026 | 'netinet/ip_carp.h', |
---|
1027 | 'netinet/ip_divert.h', |
---|
1028 | 'netinet/ip_dummynet.h', |
---|
1029 | 'netinet/ip_ecn.h', |
---|
1030 | 'netinet/ip_encap.h', |
---|
1031 | 'netinet/ip_fw.h', |
---|
1032 | 'netinet/ip_gre.h', |
---|
1033 | 'netinet/ip.h', |
---|
1034 | 'netinet/ip_icmp.h', |
---|
1035 | 'netinet/ip_ipsec.h', |
---|
1036 | 'netinet/ip_mroute.h', |
---|
1037 | 'netinet/ip_options.h', |
---|
1038 | 'netinet/ip_var.h', |
---|
1039 | 'netinet/ipfw/ip_dn_private.h', |
---|
1040 | 'netinet/ipfw/ip_fw_private.h', |
---|
1041 | 'netinet/ipfw/dn_sched.h', |
---|
1042 | 'netinet/ipfw/dn_heap.h', |
---|
1043 | 'netinet/pim.h', |
---|
1044 | 'netinet/pim_var.h', |
---|
1045 | 'netinet/sctp_asconf.h', |
---|
1046 | 'netinet/sctp_auth.h', |
---|
1047 | 'netinet/sctp_bsd_addr.h', |
---|
1048 | 'netinet/sctp_cc_functions.h', |
---|
1049 | 'netinet/sctp_constants.h', |
---|
1050 | 'netinet/sctp_crc32.h', |
---|
1051 | 'netinet/sctp.h', |
---|
1052 | 'netinet/sctp_header.h', |
---|
1053 | 'netinet/sctp_indata.h', |
---|
1054 | 'netinet/sctp_input.h', |
---|
1055 | 'netinet/sctp_lock_bsd.h', |
---|
1056 | 'netinet/sctp_os_bsd.h', |
---|
1057 | 'netinet/sctp_os.h', |
---|
1058 | 'netinet/sctp_output.h', |
---|
1059 | 'netinet/sctp_pcb.h', |
---|
1060 | 'netinet/sctp_peeloff.h', |
---|
1061 | 'netinet/sctp_structs.h', |
---|
1062 | 'netinet/sctp_sysctl.h', |
---|
1063 | 'netinet/sctp_timer.h', |
---|
1064 | 'netinet/sctp_uio.h', |
---|
1065 | 'netinet/sctputil.h', |
---|
1066 | 'netinet/sctp_var.h', |
---|
1067 | 'netinet/tcp_debug.h', |
---|
1068 | 'netinet/tcp_fsm.h', |
---|
1069 | 'netinet/tcp.h', |
---|
1070 | 'netinet/tcp_hostcache.h', |
---|
1071 | 'netinet/tcpip.h', |
---|
1072 | 'netinet/tcp_lro.h', |
---|
1073 | 'netinet/tcp_offload.h', |
---|
1074 | 'netinet/tcp_seq.h', |
---|
1075 | 'netinet/tcp_syncache.h', |
---|
1076 | 'netinet/tcp_timer.h', |
---|
1077 | 'netinet/tcp_var.h', |
---|
1078 | 'netinet/toedev.h', |
---|
1079 | 'netinet/udp.h', |
---|
1080 | 'netinet/udp_var.h', |
---|
1081 | 'netinet/libalias/alias_local.h', |
---|
1082 | 'netinet/libalias/alias.h', |
---|
1083 | 'netinet/libalias/alias_mod.h', |
---|
1084 | 'netinet/libalias/alias_sctp.h', |
---|
1085 | ] |
---|
1086 | ) |
---|
1087 | netinet.addSourceFiles( |
---|
1088 | [ |
---|
1089 | 'netinet/accf_data.c', |
---|
1090 | 'netinet/accf_dns.c', |
---|
1091 | 'netinet/accf_http.c', |
---|
1092 | 'netinet/if_atm.c', |
---|
1093 | 'netinet/if_ether.c', |
---|
1094 | 'netinet/igmp.c', |
---|
1095 | 'netinet/in.c', |
---|
1096 | 'netinet/in_cksum.c', |
---|
1097 | 'netinet/in_gif.c', |
---|
1098 | 'netinet/in_mcast.c', |
---|
1099 | 'netinet/in_pcb.c', |
---|
1100 | 'netinet/in_proto.c', |
---|
1101 | 'netinet/in_rmx.c', |
---|
1102 | 'netinet/ip_carp.c', |
---|
1103 | 'netinet/ip_divert.c', |
---|
1104 | 'netinet/ip_ecn.c', |
---|
1105 | 'netinet/ip_encap.c', |
---|
1106 | 'netinet/ip_fastfwd.c', |
---|
1107 | 'netinet/ip_gre.c', |
---|
1108 | 'netinet/ip_icmp.c', |
---|
1109 | 'netinet/ip_id.c', |
---|
1110 | 'netinet/ip_input.c', |
---|
1111 | 'netinet/ip_ipsec.c', |
---|
1112 | 'netinet/ip_mroute.c', |
---|
1113 | 'netinet/ip_options.c', |
---|
1114 | 'netinet/ip_output.c', |
---|
1115 | 'netinet/raw_ip.c', |
---|
1116 | 'netinet/sctp_asconf.c', |
---|
1117 | 'netinet/sctp_auth.c', |
---|
1118 | 'netinet/sctp_bsd_addr.c', |
---|
1119 | 'netinet/sctp_cc_functions.c', |
---|
1120 | 'netinet/sctp_crc32.c', |
---|
1121 | 'netinet/sctp_indata.c', |
---|
1122 | 'netinet/sctp_input.c', |
---|
1123 | 'netinet/sctp_output.c', |
---|
1124 | 'netinet/sctp_pcb.c', |
---|
1125 | 'netinet/sctp_peeloff.c', |
---|
1126 | 'netinet/sctp_sysctl.c', |
---|
1127 | 'netinet/sctp_timer.c', |
---|
1128 | 'netinet/sctp_usrreq.c', |
---|
1129 | 'netinet/sctputil.c', |
---|
1130 | 'netinet/tcp_debug.c', |
---|
1131 | #'netinet/tcp_hostcache.c', |
---|
1132 | 'netinet/tcp_input.c', |
---|
1133 | 'netinet/tcp_lro.c', |
---|
1134 | 'netinet/tcp_offload.c', |
---|
1135 | 'netinet/tcp_output.c', |
---|
1136 | 'netinet/tcp_reass.c', |
---|
1137 | 'netinet/tcp_sack.c', |
---|
1138 | 'netinet/tcp_subr.c', |
---|
1139 | 'netinet/tcp_syncache.c', |
---|
1140 | 'netinet/tcp_timer.c', |
---|
1141 | 'netinet/tcp_timewait.c', |
---|
1142 | 'netinet/tcp_usrreq.c', |
---|
1143 | 'netinet/udp_usrreq.c', |
---|
1144 | 'netinet/ipfw/dn_sched_fifo.c', |
---|
1145 | 'netinet/ipfw/dn_sched_rr.c', |
---|
1146 | 'netinet/ipfw/ip_fw_log.c', |
---|
1147 | 'netinet/ipfw/dn_sched_qfq.c', |
---|
1148 | 'netinet/ipfw/dn_sched_prio.c', |
---|
1149 | #'netinet/ipfw/ip_fw_dynamic.c', |
---|
1150 | 'netinet/ipfw/ip_dn_glue.c', |
---|
1151 | 'netinet/ipfw/ip_fw2.c', |
---|
1152 | 'netinet/ipfw/dn_heap.c', |
---|
1153 | 'netinet/ipfw/ip_dummynet.c', |
---|
1154 | 'netinet/ipfw/ip_fw_sockopt.c', |
---|
1155 | 'netinet/ipfw/dn_sched_wf2q.c', |
---|
1156 | 'netinet/ipfw/ip_fw_nat.c', |
---|
1157 | 'netinet/ipfw/ip_fw_pfil.c', |
---|
1158 | 'netinet/ipfw/ip_dn_io.c', |
---|
1159 | 'netinet/ipfw/ip_fw_table.c', |
---|
1160 | 'netinet/libalias/alias_dummy.c', |
---|
1161 | 'netinet/libalias/alias_pptp.c', |
---|
1162 | 'netinet/libalias/alias_smedia.c', |
---|
1163 | 'netinet/libalias/alias_mod.c', |
---|
1164 | 'netinet/libalias/alias_cuseeme.c', |
---|
1165 | 'netinet/libalias/alias_nbt.c', |
---|
1166 | 'netinet/libalias/alias_irc.c', |
---|
1167 | 'netinet/libalias/alias_util.c', |
---|
1168 | 'netinet/libalias/alias_db.c', |
---|
1169 | 'netinet/libalias/alias_ftp.c', |
---|
1170 | 'netinet/libalias/alias_proxy.c', |
---|
1171 | 'netinet/libalias/alias.c', |
---|
1172 | 'netinet/libalias/alias_skinny.c', |
---|
1173 | 'netinet/libalias/alias_sctp.c', |
---|
1174 | ] |
---|
1175 | ) |
---|
1176 | |
---|
1177 | netinet6 = Module('netinet6') |
---|
1178 | netinet6.addHeaderFiles( |
---|
1179 | [ |
---|
1180 | 'netinet6/icmp6.h', |
---|
1181 | 'netinet6/in6_gif.h', |
---|
1182 | 'netinet6/in6.h', |
---|
1183 | 'netinet6/in6_ifattach.h', |
---|
1184 | 'netinet6/in6_pcb.h', |
---|
1185 | 'netinet6/in6_var.h', |
---|
1186 | 'netinet6/ip6_ecn.h', |
---|
1187 | 'netinet6/ip6.h', |
---|
1188 | 'netinet6/ip6_ipsec.h', |
---|
1189 | 'netinet6/ip6_mroute.h', |
---|
1190 | 'netinet6/ip6protosw.h', |
---|
1191 | 'netinet6/ip6_var.h', |
---|
1192 | 'netinet6/mld6.h', |
---|
1193 | 'netinet6/mld6_var.h', |
---|
1194 | 'netinet6/nd6.h', |
---|
1195 | 'netinet6/pim6.h', |
---|
1196 | 'netinet6/pim6_var.h', |
---|
1197 | 'netinet6/raw_ip6.h', |
---|
1198 | 'netinet6/scope6_var.h', |
---|
1199 | 'netinet6/sctp6_var.h', |
---|
1200 | 'netinet6/tcp6_var.h', |
---|
1201 | 'netinet6/udp6_var.h', |
---|
1202 | ] |
---|
1203 | ) |
---|
1204 | netinet6.addSourceFiles( |
---|
1205 | [ |
---|
1206 | 'netinet6/dest6.c', |
---|
1207 | 'netinet6/frag6.c', |
---|
1208 | 'netinet6/icmp6.c', |
---|
1209 | 'netinet6/in6.c', |
---|
1210 | 'netinet6/in6_cksum.c', |
---|
1211 | 'netinet6/in6_gif.c', |
---|
1212 | 'netinet6/in6_ifattach.c', |
---|
1213 | 'netinet6/in6_mcast.c', |
---|
1214 | 'netinet6/in6_pcb.c', |
---|
1215 | 'netinet6/in6_proto.c', |
---|
1216 | 'netinet6/in6_rmx.c', |
---|
1217 | 'netinet6/in6_src.c', |
---|
1218 | 'netinet6/ip6_forward.c', |
---|
1219 | 'netinet6/ip6_id.c', |
---|
1220 | 'netinet6/ip6_input.c', |
---|
1221 | 'netinet6/ip6_ipsec.c', |
---|
1222 | 'netinet6/ip6_mroute.c', |
---|
1223 | 'netinet6/ip6_output.c', |
---|
1224 | 'netinet6/mld6.c', |
---|
1225 | 'netinet6/nd6.c', |
---|
1226 | 'netinet6/nd6_nbr.c', |
---|
1227 | 'netinet6/nd6_rtr.c', |
---|
1228 | 'netinet6/raw_ip6.c', |
---|
1229 | 'netinet6/route6.c', |
---|
1230 | 'netinet6/scope6.c', |
---|
1231 | 'netinet6/sctp6_usrreq.c', |
---|
1232 | 'netinet6/udp6_usrreq.c', |
---|
1233 | ] |
---|
1234 | ) |
---|
1235 | |
---|
1236 | netipsec = Module('netipsec') |
---|
1237 | netipsec.addHeaderFiles( |
---|
1238 | [ |
---|
1239 | 'netipsec/ah.h', |
---|
1240 | 'netipsec/ah_var.h', |
---|
1241 | 'netipsec/esp.h', |
---|
1242 | 'netipsec/esp_var.h', |
---|
1243 | 'netipsec/ipcomp.h', |
---|
1244 | 'netipsec/ipcomp_var.h', |
---|
1245 | 'netipsec/ipip_var.h', |
---|
1246 | 'netipsec/ipsec6.h', |
---|
1247 | 'netipsec/ipsec.c', |
---|
1248 | 'netipsec/ipsec.h', |
---|
1249 | 'netipsec/keydb.h', |
---|
1250 | 'netipsec/key_debug.h', |
---|
1251 | 'netipsec/key.h', |
---|
1252 | 'netipsec/keysock.h', |
---|
1253 | 'netipsec/key_var.h', |
---|
1254 | 'netipsec/xform.h', |
---|
1255 | ] |
---|
1256 | ) |
---|
1257 | netipsec.addSourceFiles( |
---|
1258 | [ |
---|
1259 | 'netipsec/ipsec_input.c', |
---|
1260 | 'netipsec/ipsec_mbuf.c', |
---|
1261 | 'netipsec/ipsec_output.c', |
---|
1262 | 'netipsec/key.c', |
---|
1263 | 'netipsec/key_debug.c', |
---|
1264 | 'netipsec/keysock.c', |
---|
1265 | 'netipsec/xform_ah.c', |
---|
1266 | 'netipsec/xform_esp.c', |
---|
1267 | 'netipsec/xform_ipcomp.c', |
---|
1268 | 'netipsec/xform_ipip.c', |
---|
1269 | 'netipsec/xform_tcp.c', |
---|
1270 | ] |
---|
1271 | ) |
---|
1272 | |
---|
1273 | net80211 = Module('net80211') |
---|
1274 | net80211.addHeaderFiles( |
---|
1275 | [ |
---|
1276 | 'net80211/ieee80211_action.h', |
---|
1277 | 'net80211/ieee80211_adhoc.h', |
---|
1278 | 'net80211/ieee80211_ageq.h', |
---|
1279 | 'net80211/ieee80211_amrr.h', |
---|
1280 | 'net80211/ieee80211_crypto.h', |
---|
1281 | 'net80211/ieee80211_dfs.h', |
---|
1282 | 'net80211/ieee80211_freebsd.h', |
---|
1283 | 'net80211/_ieee80211.h', |
---|
1284 | 'net80211/ieee80211.h', |
---|
1285 | 'net80211/ieee80211_hostap.h', |
---|
1286 | 'net80211/ieee80211_ht.h', |
---|
1287 | 'net80211/ieee80211_input.h', |
---|
1288 | 'net80211/ieee80211_ioctl.h', |
---|
1289 | 'net80211/ieee80211_mesh.h', |
---|
1290 | 'net80211/ieee80211_monitor.h', |
---|
1291 | 'net80211/ieee80211_node.h', |
---|
1292 | 'net80211/ieee80211_phy.h', |
---|
1293 | 'net80211/ieee80211_power.h', |
---|
1294 | 'net80211/ieee80211_proto.h', |
---|
1295 | 'net80211/ieee80211_radiotap.h', |
---|
1296 | 'net80211/ieee80211_ratectl.h', |
---|
1297 | 'net80211/ieee80211_regdomain.h', |
---|
1298 | 'net80211/ieee80211_rssadapt.h', |
---|
1299 | 'net80211/ieee80211_scan.h', |
---|
1300 | 'net80211/ieee80211_sta.h', |
---|
1301 | 'net80211/ieee80211_superg.h', |
---|
1302 | 'net80211/ieee80211_tdma.h', |
---|
1303 | 'net80211/ieee80211_var.h', |
---|
1304 | 'net80211/ieee80211_wds.h', |
---|
1305 | ] |
---|
1306 | ) |
---|
1307 | netipsec.addSourceFiles( |
---|
1308 | [ |
---|
1309 | 'net80211/ieee80211_acl.c', |
---|
1310 | 'net80211/ieee80211_action.c', |
---|
1311 | 'net80211/ieee80211_adhoc.c', |
---|
1312 | 'net80211/ieee80211_ageq.c', |
---|
1313 | 'net80211/ieee80211_amrr.c', |
---|
1314 | 'net80211/ieee80211.c', |
---|
1315 | 'net80211/ieee80211_crypto.c', |
---|
1316 | 'net80211/ieee80211_crypto_ccmp.c', |
---|
1317 | 'net80211/ieee80211_crypto_none.c', |
---|
1318 | 'net80211/ieee80211_crypto_tkip.c', |
---|
1319 | 'net80211/ieee80211_crypto_wep.c', |
---|
1320 | 'net80211/ieee80211_ddb.c', |
---|
1321 | 'net80211/ieee80211_dfs.c', |
---|
1322 | 'net80211/ieee80211_freebsd.c', |
---|
1323 | 'net80211/ieee80211_hostap.c', |
---|
1324 | 'net80211/ieee80211_ht.c', |
---|
1325 | 'net80211/ieee80211_hwmp.c', |
---|
1326 | 'net80211/ieee80211_input.c', |
---|
1327 | 'net80211/ieee80211_ioctl.c', |
---|
1328 | 'net80211/ieee80211_mesh.c', |
---|
1329 | 'net80211/ieee80211_monitor.c', |
---|
1330 | 'net80211/ieee80211_node.c', |
---|
1331 | 'net80211/ieee80211_output.c', |
---|
1332 | 'net80211/ieee80211_phy.c', |
---|
1333 | 'net80211/ieee80211_power.c', |
---|
1334 | 'net80211/ieee80211_proto.c', |
---|
1335 | 'net80211/ieee80211_radiotap.c', |
---|
1336 | 'net80211/ieee80211_ratectl.c', |
---|
1337 | 'net80211/ieee80211_ratectl_none.c', |
---|
1338 | 'net80211/ieee80211_regdomain.c', |
---|
1339 | 'net80211/ieee80211_rssadapt.c', |
---|
1340 | 'net80211/ieee80211_scan.c', |
---|
1341 | 'net80211/ieee80211_scan_sta.c', |
---|
1342 | 'net80211/ieee80211_sta.c', |
---|
1343 | 'net80211/ieee80211_superg.c', |
---|
1344 | 'net80211/ieee80211_tdma.c', |
---|
1345 | 'net80211/ieee80211_wds.c', |
---|
1346 | 'net80211/ieee80211_xauth.c', |
---|
1347 | ] |
---|
1348 | ) |
---|
1349 | |
---|
1350 | opencrypto = Module('opencrypto') |
---|
1351 | opencrypto.addHeaderFiles( |
---|
1352 | [ |
---|
1353 | 'sys/md5.h', |
---|
1354 | 'opencrypto/deflate.h', |
---|
1355 | 'opencrypto/xform.h', |
---|
1356 | 'opencrypto/cryptosoft.h', |
---|
1357 | 'opencrypto/rmd160.h', |
---|
1358 | 'opencrypto/cryptodev.h', |
---|
1359 | 'opencrypto/castsb.h', |
---|
1360 | 'opencrypto/skipjack.h', |
---|
1361 | 'opencrypto/cast.h', |
---|
1362 | ] |
---|
1363 | ) |
---|
1364 | opencrypto.addSourceFiles( |
---|
1365 | [ |
---|
1366 | 'opencrypto/crypto.c', |
---|
1367 | 'opencrypto/deflate.c', |
---|
1368 | 'opencrypto/cryptosoft.c', |
---|
1369 | 'opencrypto/criov.c', |
---|
1370 | 'opencrypto/rmd160.c', |
---|
1371 | 'opencrypto/xform.c', |
---|
1372 | 'opencrypto/skipjack.c', |
---|
1373 | 'opencrypto/cast.c', |
---|
1374 | 'opencrypto/cryptodev.c', |
---|
1375 | ] |
---|
1376 | ) |
---|
1377 | |
---|
1378 | crypto = Module('crypto') |
---|
1379 | crypto.addHeaderFiles( |
---|
1380 | [ |
---|
1381 | #'crypto/aesni/aesni.h', |
---|
1382 | 'crypto/sha1.h', |
---|
1383 | 'crypto/sha2/sha2.h', |
---|
1384 | 'crypto/rijndael/rijndael.h', |
---|
1385 | 'crypto/rijndael/rijndael_local.h', |
---|
1386 | 'crypto/rijndael/rijndael-api-fst.h', |
---|
1387 | 'crypto/des/des.h', |
---|
1388 | 'crypto/des/spr.h', |
---|
1389 | 'crypto/des/podd.h', |
---|
1390 | 'crypto/des/sk.h', |
---|
1391 | 'crypto/des/des_locl.h', |
---|
1392 | 'crypto/blowfish/bf_pi.h', |
---|
1393 | 'crypto/blowfish/bf_locl.h', |
---|
1394 | 'crypto/blowfish/blowfish.h', |
---|
1395 | 'crypto/rc4/rc4.h', |
---|
1396 | #'crypto/via/padlock.h', |
---|
1397 | 'crypto/camellia/camellia.h', |
---|
1398 | ] |
---|
1399 | ) |
---|
1400 | crypto.addSourceFiles( |
---|
1401 | [ |
---|
1402 | #'crypto/aesni/aesni.c', |
---|
1403 | #'crypto/aesni/aesni_wrap.c', |
---|
1404 | 'crypto/sha1.c', |
---|
1405 | 'crypto/sha2/sha2.c', |
---|
1406 | 'crypto/rijndael/rijndael-alg-fst.c', |
---|
1407 | 'crypto/rijndael/rijndael-api.c', |
---|
1408 | 'crypto/rijndael/rijndael-api-fst.c', |
---|
1409 | 'crypto/des/des_setkey.c', |
---|
1410 | 'crypto/des/des_enc.c', |
---|
1411 | 'crypto/des/des_ecb.c', |
---|
1412 | 'crypto/blowfish/bf_enc.c', |
---|
1413 | 'crypto/blowfish/bf_skey.c', |
---|
1414 | 'crypto/blowfish/bf_ecb.c', |
---|
1415 | 'crypto/rc4/rc4.c', |
---|
1416 | #'crypto/via/padlock.c', |
---|
1417 | #'crypto/via/padlock_cipher.c', |
---|
1418 | #'crypto/via/padlock_hash.c', |
---|
1419 | 'crypto/camellia/camellia-api.c', |
---|
1420 | 'crypto/camellia/camellia.c', |
---|
1421 | ] |
---|
1422 | ) |
---|
1423 | |
---|
1424 | altq = Module('altq') |
---|
1425 | altq.addHeaderFiles( |
---|
1426 | [ |
---|
1427 | 'contrib/altq/altq/altq_rmclass.h', |
---|
1428 | 'contrib/altq/altq/altq_cbq.h', |
---|
1429 | 'contrib/altq/altq/altq_var.h', |
---|
1430 | 'contrib/altq/altq/altqconf.h', |
---|
1431 | 'contrib/altq/altq/altq.h', |
---|
1432 | 'contrib/altq/altq/altq_hfsc.h', |
---|
1433 | 'contrib/altq/altq/altq_red.h', |
---|
1434 | 'contrib/altq/altq/altq_classq.h', |
---|
1435 | 'contrib/altq/altq/altq_priq.h', |
---|
1436 | 'contrib/altq/altq/altq_rmclass_debug.h', |
---|
1437 | 'contrib/altq/altq/altq_cdnr.h', |
---|
1438 | 'contrib/altq/altq/altq_rio.h', |
---|
1439 | 'contrib/altq/altq/if_altq.h', |
---|
1440 | ] |
---|
1441 | ) |
---|
1442 | altq.addSourceFiles( |
---|
1443 | [ |
---|
1444 | 'contrib/altq/altq/altq_rmclass.c', |
---|
1445 | 'contrib/altq/altq/altq_rio.c', |
---|
1446 | 'contrib/altq/altq/altq_subr.c', |
---|
1447 | 'contrib/altq/altq/altq_cdnr.c', |
---|
1448 | 'contrib/altq/altq/altq_priq.c', |
---|
1449 | 'contrib/altq/altq/altq_cbq.c', |
---|
1450 | 'contrib/altq/altq/altq_hfsc.c', |
---|
1451 | 'contrib/altq/altq/altq_red.c', |
---|
1452 | ] |
---|
1453 | ) |
---|
1454 | |
---|
1455 | pf = Module('pf') |
---|
1456 | pf.addHeaderFiles( |
---|
1457 | [ |
---|
1458 | 'contrib/pf/net/pf_mtag.h', |
---|
1459 | 'contrib/pf/net/if_pfsync.h', |
---|
1460 | 'contrib/pf/net/pfvar.h', |
---|
1461 | 'contrib/pf/net/if_pflog.h', |
---|
1462 | ] |
---|
1463 | ) |
---|
1464 | pf.addSourceFiles( |
---|
1465 | [ |
---|
1466 | 'contrib/pf/netinet/in4_cksum.c', |
---|
1467 | 'contrib/pf/net/pf.c', |
---|
1468 | 'contrib/pf/net/if_pflog.c', |
---|
1469 | 'contrib/pf/net/pf_subr.c', |
---|
1470 | 'contrib/pf/net/pf_ioctl.c', |
---|
1471 | 'contrib/pf/net/pf_table.c', |
---|
1472 | 'contrib/pf/net/pf_if.c', |
---|
1473 | 'contrib/pf/net/pf_osfp.c', |
---|
1474 | 'contrib/pf/net/pf_norm.c', |
---|
1475 | 'contrib/pf/net/pf_ruleset.c', |
---|
1476 | 'contrib/pf/net/if_pfsync.c', |
---|
1477 | ] |
---|
1478 | ) |
---|
1479 | |
---|
1480 | mm.addEmptyFiles( |
---|
1481 | [ |
---|
1482 | 'cam/cam_queue.h', |
---|
1483 | 'ddb/db_sym.h', |
---|
1484 | 'ddb/ddb.h', |
---|
1485 | 'machine/cpu.h', |
---|
1486 | 'machine/elf.h', |
---|
1487 | 'machine/sf_buf.h', |
---|
1488 | #'machine/vmparam.h', |
---|
1489 | 'net/vnet.h', |
---|
1490 | 'security/audit/audit.h', |
---|
1491 | 'security/mac/mac_framework.h', |
---|
1492 | 'sys/bio.h', |
---|
1493 | 'sys/copyright.h', |
---|
1494 | 'sys/cpuset.h', |
---|
1495 | 'sys/errno.h', |
---|
1496 | 'sys/exec.h', |
---|
1497 | 'sys/fail.h', |
---|
1498 | 'sys/limits.h', |
---|
1499 | 'sys/namei.h', |
---|
1500 | 'sys/_pthreadtypes.h', |
---|
1501 | #'sys/resourcevar.h', |
---|
1502 | 'sys/sbuf.h', |
---|
1503 | 'sys/sched.h', |
---|
1504 | 'sys/select.h', |
---|
1505 | 'sys/syscallsubr.h', |
---|
1506 | 'sys/sysent.h', |
---|
1507 | 'sys/syslimits.h', |
---|
1508 | 'sys/sysproto.h', |
---|
1509 | 'sys/stat.h', |
---|
1510 | 'sys/taskqueue.h', |
---|
1511 | #'sys/time.h', |
---|
1512 | 'time.h', |
---|
1513 | 'sys/timespec.h', |
---|
1514 | 'sys/_timeval.h', |
---|
1515 | #'sys/vmmeter.h', |
---|
1516 | #'sys/vnode.h', |
---|
1517 | #'vm/pmap.h', |
---|
1518 | #'vm/uma_int.h', |
---|
1519 | #'vm/uma_dbg.h', |
---|
1520 | #'vm/vm_extern.h', |
---|
1521 | #'vm/vm_map.h', |
---|
1522 | #'vm/vm_object.h', |
---|
1523 | #'vm/vm_page.h', |
---|
1524 | #'vm/vm_pageout.h', |
---|
1525 | #'vm/vm_param.h', |
---|
1526 | #'vm/vm_kern.h', |
---|
1527 | 'dev/pci/pcireg.h', |
---|
1528 | 'dev/pci/pcivar.h', |
---|
1529 | 'geom/geom_disk.h', |
---|
1530 | #'sys/kdb.h', |
---|
1531 | #'libkern/jenkins.h', |
---|
1532 | #'machine/pcb.h', |
---|
1533 | #'net80211/ieee80211_freebsd.h', |
---|
1534 | 'netgraph/ng_ipfw.h', |
---|
1535 | #'sys/sf_buf.h', |
---|
1536 | ] |
---|
1537 | ) |
---|
1538 | |
---|
1539 | mm.addModule(netDeps) |
---|
1540 | mm.addModule(net) |
---|
1541 | mm.addModule(netinet) |
---|
1542 | mm.addModule(netinet6) |
---|
1543 | mm.addModule(netipsec) |
---|
1544 | mm.addModule(net80211) |
---|
1545 | mm.addModule(opencrypto) |
---|
1546 | mm.addModule(crypto) |
---|
1547 | mm.addModule(altq) |
---|
1548 | mm.addModule(pf) |
---|
1549 | mm.addModule(devNet) |
---|
1550 | |
---|
1551 | mm.addModule(rtems) |
---|
1552 | mm.addModule(local) |
---|
1553 | mm.addModule(devUsbBase) |
---|
1554 | mm.addModule(devUsb) |
---|
1555 | mm.addModule(devUsbQuirk) |
---|
1556 | mm.addModule(devUsbController) |
---|
1557 | |
---|
1558 | mm.addModule(cam) |
---|
1559 | mm.addModule(devUsbStorage) |
---|
1560 | |
---|
1561 | #mm.addModule(devUsbNet) |
---|
1562 | |
---|
1563 | #mm.revertFiles() |
---|
1564 | mm.copyFiles() |
---|
1565 | mm.createMakefile() |
---|