Changeset 5c3223f in rtems-libbsd for libbsd_waf.py


Ignore:
Timestamp:
Nov 16, 2016, 3:29:17 PM (3 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
e9a8b5a
Parents:
2389539
git-author:
Christian Mauderer <Christian.Mauderer@…> (11/16/16 15:29:17)
git-committer:
Christian Mauderer <Christian.Mauderer@…> (01/17/17 11:50:58)
Message:

ifconfig/wlan, expat, lib80211: Port to RTEMS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libbsd_waf.py

    r2389539 r5c3223f  
    6767    includes += ["freebsd/sys/net"]
    6868    includes += ["freebsd/include"]
     69    includes += ["freebsd/lib"]
    6970    includes += ["freebsd/lib/libc/include"]
    7071    includes += ["freebsd/lib/libc/isc/include"]
     
    7475    includes += ["freebsd/lib/libmemstat"]
    7576    includes += ["freebsd/lib/libipsec"]
     77    includes += ["freebsd/contrib/expat/lib"]
    7678    includes += ["freebsd/contrib/libpcap"]
    7779    includes += ["freebsd/contrib/libxo"]
     
    231233
    232234    # Objects built with different CFLAGS
    233     objs01_source = ['freebsd/bin/hostname/hostname.c',
     235    objs01_source = ['freebsd/contrib/expat/lib/xmlparse.c',
     236                     'freebsd/contrib/expat/lib/xmlrole.c',
     237                     'freebsd/contrib/expat/lib/xmltok.c',
     238                     'freebsd/contrib/expat/lib/xmltok_impl.c',
     239                     'freebsd/contrib/expat/lib/xmltok_ns.c']
     240    bld.objects(target = "objs01",
     241                features = "c",
     242                cflags = cflags,
     243                includes = [] + includes,
     244                defines = defines + ['HAVE_MEMMOVE=1'],
     245                source = objs01_source)
     246    libbsd_use += ["objs01"]
     247
     248    objs02_source = ['freebsd/bin/hostname/hostname.c',
    234249                     'freebsd/contrib/libxo/libxo/libxo.c',
    235250                     'freebsd/contrib/libxo/libxo/xo_encoder.c',
     251                     'freebsd/lib/lib80211/lib80211_ioctl.c',
     252                     'freebsd/lib/lib80211/lib80211_regdomain.c',
    236253                     'freebsd/lib/libc/gen/err.c',
    237254                     'freebsd/lib/libc/gen/feature_present.c',
     
    414431                     'freebsd/sbin/ifconfig/ifgre.c',
    415432                     'freebsd/sbin/ifconfig/ifgroup.c',
     433                     'freebsd/sbin/ifconfig/ifieee80211.c',
    416434                     'freebsd/sbin/ifconfig/iflagg.c',
    417435                     'freebsd/sbin/ifconfig/ifmac.c',
     
    450468                     'freebsd/usr.bin/vmstat/vmstat.c',
    451469                     'freebsd/usr.sbin/arp/arp.c']
    452     bld.objects(target = "objs01",
     470    bld.objects(target = "objs02",
    453471                features = "c",
    454472                cflags = cflags,
    455473                includes = [] + includes,
    456474                defines = defines + ['INET', 'INET6'],
    457                 source = objs01_source)
    458     libbsd_use += ["objs01"]
    459 
    460     objs02_source = ['rtemsbsd/mghttpd/mongoose.c']
    461     bld.objects(target = "objs02",
     475                source = objs02_source)
     476    libbsd_use += ["objs02"]
     477
     478    objs03_source = ['rtemsbsd/mghttpd/mongoose.c']
     479    bld.objects(target = "objs03",
    462480                features = "c",
    463481                cflags = cflags,
    464482                includes = [] + includes,
    465483                defines = defines + ['NO_CGI', 'NO_POPEN', 'NO_SSL', 'USE_WEBSOCKET'],
    466                 source = objs02_source)
    467     libbsd_use += ["objs02"]
    468 
    469     objs03_source = ['freebsd/lib/libc/db/btree/bt_close.c',
     484                source = objs03_source)
     485    libbsd_use += ["objs03"]
     486
     487    objs04_source = ['freebsd/lib/libc/db/btree/bt_close.c',
    470488                     'freebsd/lib/libc/db/btree/bt_conv.c',
    471489                     'freebsd/lib/libc/db/btree/bt_debug.c',
     
    491509                     'freebsd/lib/libc/db/recno/rec_seq.c',
    492510                     'freebsd/lib/libc/db/recno/rec_utils.c']
    493     bld.objects(target = "objs03",
     511    bld.objects(target = "objs04",
    494512                features = "c",
    495513                cflags = cflags,
    496514                includes = [] + includes,
    497515                defines = defines + ['INET6', '__DBINTERFACE_PRIVATE'],
    498                 source = objs03_source)
    499     libbsd_use += ["objs03"]
    500 
    501     objs04_source = ['dhcpcd/arp.c',
     516                source = objs04_source)
     517    libbsd_use += ["objs04"]
     518
     519    objs05_source = ['dhcpcd/arp.c',
    502520                     'dhcpcd/auth.c',
    503521                     'dhcpcd/bpf.c',
     
    521539                     'dhcpcd/net.c',
    522540                     'dhcpcd/platform-bsd.c']
    523     bld.objects(target = "objs04",
     541    bld.objects(target = "objs05",
    524542                features = "c",
    525543                cflags = cflags,
    526544                includes = [] + includes,
    527545                defines = defines + ['INET', 'INET6', 'MASTER_ONLY', 'THERE_IS_NO_FORK', '__FreeBSD__'],
    528                 source = objs04_source)
    529     libbsd_use += ["objs04"]
    530 
    531     objs05_source = ['freebsd/contrib/libpcap/bpf_image.c',
     546                source = objs05_source)
     547    libbsd_use += ["objs05"]
     548
     549    objs06_source = ['freebsd/contrib/libpcap/bpf_image.c',
    532550                     'freebsd/contrib/libpcap/etherent.c',
    533551                     'freebsd/contrib/libpcap/fad-getad.c',
     
    542560                     'freebsd/contrib/libpcap/sf-pcap-ng.c',
    543561                     'freebsd/contrib/libpcap/sf-pcap.c']
    544     bld.objects(target = "objs05",
     562    bld.objects(target = "objs06",
    545563                features = "c",
    546564                cflags = cflags,
    547565                includes = [] + includes,
    548566                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'],
    549                 source = objs05_source)
    550     libbsd_use += ["objs05"]
    551 
    552     objs06_source = ['freebsd/contrib/tcpdump/addrtoname.c',
     567                source = objs06_source)
     568    libbsd_use += ["objs06"]
     569
     570    objs07_source = ['freebsd/contrib/tcpdump/addrtoname.c',
    553571                     'freebsd/contrib/tcpdump/af.c',
    554572                     'freebsd/contrib/tcpdump/bpf_dump.c',
     
    693711                     'freebsd/contrib/tcpdump/tcpdump.c',
    694712                     'freebsd/contrib/tcpdump/util.c']
    695     bld.objects(target = "objs06",
     713    bld.objects(target = "objs07",
    696714                features = "c",
    697715                cflags = cflags,
    698716                includes = ['freebsd/contrib/tcpdump', 'freebsd/usr.sbin/tcpdump/tcpdump'] + includes,
    699717                defines = defines + ['HAVE_CONFIG_H=1', 'HAVE_NET_PFVAR_H=1', 'INET6', '_U_=__attribute__((unused))', '__FreeBSD__=1'],
    700                 source = objs06_source)
    701     libbsd_use += ["objs06"]
     718                source = objs07_source)
     719    libbsd_use += ["objs07"]
    702720
    703721    source = ['freebsd/sys/arm/xilinx/zy7_slcr.c',
Note: See TracChangeset for help on using the changeset viewer.