mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 17:05:45 +08:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user