Changeset f7a4107 in rtems-libbsd for libbsd_waf.py


Ignore:
Timestamp:
Nov 28, 2016, 3:23:15 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
afda2c7
Parents:
269b559
git-author:
Chris Johns <chrisj@…> (11/28/16 03:23:15)
git-committer:
Chris Johns <chrisj@…> (11/29/16 04:27:23)
Message:

Add a RTEMS Debugger TCP remote transport.

The patch also adds support to libbsd's build system making source
conditional on a configure check. The debugger support is not
available on all architectures and this feature lets us test if
is avaliable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libbsd_waf.py

    r269b559 rf7a4107  
    2727
    2828def bsp_configure(conf, arch_bsp):
    29     pass
     29    conf.check(header_name = "rtems/rtems-debugger.h", features = "c", includes = conf.env.IFLAGS, mandatory = False)
    3030
    3131def configure(conf):
    32     pass
     32    rtems.configure(conf, bsp_configure)
    3333
    3434def build(bld):
     
    456456                cflags = cflags,
    457457                includes = [] + includes,
    458                 defines = defines + ['NO_SSL', 'NO_POPEN', 'NO_CGI', 'USE_WEBSOCKET'],
     458                defines = defines + ['NO_CGI', 'NO_POPEN', 'NO_SSL', 'USE_WEBSOCKET'],
    459459                source = objs02_source)
    460460    libbsd_use += ["objs02"]
     
    488488                cflags = cflags,
    489489                includes = [] + includes,
    490                 defines = defines + ['__DBINTERFACE_PRIVATE', 'INET6'],
     490                defines = defines + ['INET6', '__DBINTERFACE_PRIVATE'],
    491491                source = objs03_source)
    492492    libbsd_use += ["objs03"]
     
    518518                cflags = cflags,
    519519                includes = [] + includes,
    520                 defines = defines + ['__FreeBSD__', 'THERE_IS_NO_FORK', 'MASTER_ONLY', 'INET', 'INET6'],
     520                defines = defines + ['INET', 'INET6', 'MASTER_ONLY', 'THERE_IS_NO_FORK', '__FreeBSD__'],
    521521                source = objs04_source)
    522522    libbsd_use += ["objs04"]
     
    539539                cflags = cflags,
    540540                includes = [] + includes,
    541                 defines = defines + ['__FreeBSD__=1', 'BSD=1', 'INET6', '_U_=__attribute__((unused))', 'HAVE_LIMITS_H=1', 'HAVE_INTTYPES=1', 'HAVE_STDINT=1', 'HAVE_STRERROR=1', 'HAVE_STRLCPY=1', 'HAVE_SNPRINTF=1', 'HAVE_VSNPRINTF=1', 'HAVE_SOCKADDR_SA_LEN=1', 'HAVE_NET_IF_MEDIA_H=1', 'HAVE_SYS_IOCCOM_H=1'],
     541                defines = defines + ['BSD=1', 'HAVE_INTTYPES=1', 'HAVE_LIMITS_H=1', 'HAVE_NET_IF_MEDIA_H=1', 'HAVE_SNPRINTF=1', 'HAVE_SOCKADDR_SA_LEN=1', 'HAVE_STDINT=1', 'HAVE_STRERROR=1', 'HAVE_STRLCPY=1', 'HAVE_SYS_IOCCOM_H=1', 'HAVE_VSNPRINTF=1', 'INET6', '_U_=__attribute__((unused))', '__FreeBSD__=1'],
    542542                source = objs05_source)
    543543    libbsd_use += ["objs05"]
     
    690690                cflags = cflags,
    691691                includes = ['freebsd/contrib/tcpdump', 'freebsd/usr.sbin/tcpdump/tcpdump'] + includes,
    692                 defines = defines + ['__FreeBSD__=1', 'INET6', '_U_=__attribute__((unused))', 'HAVE_CONFIG_H=1', 'HAVE_NET_PFVAR_H=1'],
     692                defines = defines + ['HAVE_CONFIG_H=1', 'HAVE_NET_PFVAR_H=1', 'INET6', '_U_=__attribute__((unused))', '__FreeBSD__=1'],
    693693                source = objs06_source)
    694694    libbsd_use += ["objs06"]
     
    11411141              'rtemsbsd/telnetd/telnetd-service.c',
    11421142              'rtemsbsd/telnetd/telnetd.c']
     1143    if bld.env["HAVE_RTEMS_RTEMS_DEBUGGER_H"]:
     1144        source += ['rtemsbsd/debugger/rtems-debugger-remote-tcp.c']
    11431145    if bld.get_env()["RTEMS_ARCH"] == "arm":
    11441146        source += ['freebsd/sys/mips/mips/in_cksum.c']
     
    12571259                install_path = None)
    12581260
     1261    if bld.env["HAVE_RTEMS_RTEMS_DEBUGGER_H"]:
     1262        test_debugger01 = ['testsuite/debugger01/test_main.c']
     1263        bld.program(target = "debugger01.exe",
     1264                    features = "cprogram",
     1265                    cflags = cflags,
     1266                    includes = includes,
     1267                    source = test_debugger01,
     1268                    use = ["bsd"],
     1269                    lib = ["m", "z"],
     1270                    install_path = None)
     1271
    12591272    test_dhcpcd01 = ['testsuite/dhcpcd01/test_main.c']
    12601273    bld.program(target = "dhcpcd01.exe",
Note: See TracChangeset for help on using the changeset viewer.