summaryrefslogtreecommitdiffstats
path: root/freebsd-to-rtems.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-12 09:11:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-01-30 16:23:03 +0100
commit917a78b209efbbcb3d16dd28f8b3cb067a7f5b87 (patch)
tree7de4f8c3b93820d563838e14d4470f229c9fe669 /freebsd-to-rtems.py
parentDHCPCD(8): Add config.h (diff)
downloadrtems-libbsd-917a78b209efbbcb3d16dd28f8b3cb067a7f5b87.tar.bz2
DHCPCD(8): Add basic support
Diffstat (limited to 'freebsd-to-rtems.py')
-rwxr-xr-xfreebsd-to-rtems.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 15323fa8..2eb082cf 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -2429,6 +2429,8 @@ in_cksum.addCPUDependentSourceFiles(
)
tests = Module('tests')
+tests.addTest('dhcpcd01', ['test_main'], runTest = False, netTest = True)
+tests.addTest('dhcpcd02', ['test_main'], runTest = False, netTest = True)
tests.addTest('arphole', ['test_main'], runTest = False, netTest = True)
tests.addTest('unix01', ['test_main'])
tests.addTest('ftpd01', ['test_main'], netTest = True)
@@ -2446,6 +2448,40 @@ tests.addTest('timeout01', ['init', 'timeout_test'])
tests.addTest('init01', ['test_main'])
tests.addTest('thread01', ['test_main'])
+dhcpcd = Module('dhcpcd')
+dhcpcd.addSourceFiles(
+ [
+ 'dhcpcd/arp.c',
+ 'dhcpcd/auth.c',
+ 'dhcpcd/bpf.c',
+ 'dhcpcd/common.c',
+ 'dhcpcd/dhcp6.c',
+ 'dhcpcd/dhcp.c',
+ 'dhcpcd/dhcpcd.c',
+ 'dhcpcd/dhcpcd-embedded.c',
+ 'dhcpcd/dhcp-common.c',
+ 'dhcpcd/duid.c',
+ 'dhcpcd/eloop.c',
+ 'dhcpcd/if-bsd.c',
+ 'dhcpcd/if-options.c',
+ 'dhcpcd/if-pref.c',
+ 'dhcpcd/ipv4.c',
+ 'dhcpcd/ipv4ll.c',
+ 'dhcpcd/ipv6.c',
+ 'dhcpcd/ipv6nd.c',
+ 'dhcpcd/net.c',
+ 'dhcpcd/platform-bsd.c',
+ 'dhcpcd/compat/pselect.c',
+ 'dhcpcd/crypt/hmac_md5.c',
+ ],
+ '-D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6'
+)
+dhcpcd.addRTEMSSourceFiles(
+ [
+ 'rtems/rtems-bsd-shell-dhcpcd.c',
+ ]
+)
+
# Register all the Module instances with the Module Manager
mm.addModule(rtems)
mm.addModule(base)
@@ -2488,6 +2524,7 @@ mm.addModule(in_cksum)
mm.addModule(userSpace)
mm.addModule(tests)
+mm.addModule(dhcpcd)
# XXX TODO Check that no file is also listed in empty
# XXX TODO Check that no file in in two modules