Add tcpdump and libpcap.

- Update the file builder generator to handle generator specific cflags and
  includes. The tcpdump and libpcap have localised headers and need specific
  headers paths to see them. There are also module specific flags and these
  need to be passed to the lex and yacc generators.

- Add the tcpdump support.
This commit is contained in:
Chris Johns
2015-06-15 17:42:23 +10:00
parent 4517fa337e
commit 8440506ee8
267 changed files with 122566 additions and 88 deletions

View File

@@ -142,21 +142,23 @@ if isEarlyExit == True:
print "Early exit at user request"
sys.exit(0)
makefile_gen = makefile.ModuleManager()
waf_gen = waf_generator.ModuleManager()
try:
makefile_gen = makefile.ModuleManager()
waf_gen = waf_generator.ModuleManager()
libbsd.sources(makefile_gen)
libbsd.sources(waf_gen)
libbsd.sources(makefile_gen)
libbsd.sources(waf_gen)
# Perform the actual file manipulation
if isForward:
if not isOnlyMakefile:
makefile_gen.copyFromFreeBSDToRTEMS()
makefile_gen.generate()
waf_gen.generate()
else:
makefile_gen.copyFromRTEMSToFreeBSD()
# Print a summary if changing files
if builder.isDiffMode == False:
print '%d file(s) were changed.' % (builder.filesProcessed)
# Perform the actual file manipulation
if isForward:
if not isOnlyMakefile:
makefile_gen.copyFromFreeBSDToRTEMS()
makefile_gen.generate()
waf_gen.generate()
else:
makefile_gen.copyFromRTEMSToFreeBSD()
# Print a summary if changing files
if builder.isDiffMode == False:
print '%d file(s) were changed.' % (builder.filesProcessed)
except IOError, ioe:
print 'error: %s' % (ioe)