Changeset f5c6651 in rtems-libbsd for libbsd_waf.py


Ignore:
Timestamp:
May 18, 2016, 3:49:17 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
c67debb
Parents:
ac7b68c
Message:

Add support for rc.conf(5) initialisation.

Provide user support for rc.conf(5) so a user can create a suitable
/etc/rc.conf file to initialise libbsd.

This patch by default adds basic networking support:

cloned_interfaces
ifconfig_'interface'
defaultrouter
hostname

Refer to FreeBSD documentation for examples.

Users can make a single call to have /etc/rc.conf processed, or pass a
file name to a specific configuration file or a text string with line
feeds can be passed to the scripting version of the interface.

The rc.conf support is implemented in terms of directive handlers that
are called based on a regular expression. The design allows new handlers
to be added as needed.

Line concatenation is still to be implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libbsd_waf.py

    rac7b68c rf5c6651  
    978978              'rtemsbsd/rtems/rtems-bsd-get-task-priority.c',
    979979              'rtemsbsd/rtems/rtems-bsd-get-task-stack-size.c',
     980              'rtemsbsd/rtems/rtems-bsd-rc-conf-net.c',
     981              'rtemsbsd/rtems/rtems-bsd-rc-conf.c',
    980982              'rtemsbsd/rtems/rtems-bsd-shell-dhcpcd.c',
    981983              'rtemsbsd/rtems/rtems-bsd-shell-netcmds.c',
     
    12821284                install_path = None)
    12831285
     1286    test_rcconf01 = ['testsuite/rcconf01/test_main.c']
     1287    bld.program(target = "rcconf01.exe",
     1288                features = "cprogram",
     1289                cflags = cflags,
     1290                includes = includes,
     1291                source = test_rcconf01,
     1292                use = ["bsd"],
     1293                lib = ["m", "z"],
     1294                install_path = None)
     1295
    12841296    test_rwlock01 = ['testsuite/rwlock01/test_main.c']
    12851297    bld.program(target = "rwlock01.exe",
Note: See TracChangeset for help on using the changeset viewer.