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