Changeset 8440506 in rtems-libbsd for freebsd-to-rtems.py


Ignore:
Timestamp:
Jun 15, 2015, 7:42:23 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
7c8c0eb
Parents:
4517fa3
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd-to-rtems.py

    r4517fa3 r8440506  
    143143    sys.exit(0)
    144144
    145 makefile_gen = makefile.ModuleManager()
    146 waf_gen = waf_generator.ModuleManager()
     145try:
     146    makefile_gen = makefile.ModuleManager()
     147    waf_gen = waf_generator.ModuleManager()
    147148
    148 libbsd.sources(makefile_gen)
    149 libbsd.sources(waf_gen)
     149    libbsd.sources(makefile_gen)
     150    libbsd.sources(waf_gen)
    150151
    151 # Perform the actual file manipulation
    152 if isForward:
    153     if not isOnlyMakefile:
    154         makefile_gen.copyFromFreeBSDToRTEMS()
    155     makefile_gen.generate()
    156     waf_gen.generate()
    157 else:
    158     makefile_gen.copyFromRTEMSToFreeBSD()
    159 
    160 # Print a summary if changing files
    161 if builder.isDiffMode == False:
    162     print '%d file(s) were changed.' % (builder.filesProcessed)
     152    # Perform the actual file manipulation
     153    if isForward:
     154        if not isOnlyMakefile:
     155            makefile_gen.copyFromFreeBSDToRTEMS()
     156        makefile_gen.generate()
     157        waf_gen.generate()
     158    else:
     159        makefile_gen.copyFromRTEMSToFreeBSD()
     160    # Print a summary if changing files
     161    if builder.isDiffMode == False:
     162        print '%d file(s) were changed.' % (builder.filesProcessed)
     163except IOError, ioe:
     164    print 'error: %s' % (ioe)
Note: See TracChangeset for help on using the changeset viewer.