Changeset 3951c97 in rtems-libbsd


Ignore:
Timestamp:
Jan 22, 2014, 8:43:51 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
406a2f4
Parents:
9449f15
git-author:
Sebastian Huber <sebastian.huber@…> (01/22/14 08:43:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/30/14 15:23:04)
Message:

mDNS: Add basic support

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9449f15 r3951c97  
    2323CFLAGS += -Ifreebsd/lib/libmemstat
    2424CFLAGS += -Ifreebsd/lib/libipsec
     25CFLAGS += -ImDNSResponder/mDNSCore
     26CFLAGS += -ImDNSResponder/mDNSShared
     27CFLAGS += -ImDNSResponder/mDNSPosix
    2528CFLAGS += -Itestsuite/include
    2629CFLAGS += -Wall
     
    11061109        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
    11071110
     1111TEST_FOOBARCLIENT = testsuite/foobarclient/foobarclient.exe
     1112TEST_FOOBARCLIENT_O_FILES =
     1113TEST_FOOBARCLIENT_D_FILES =
     1114TEST_FOOBARCLIENT_O_FILES += testsuite/foobarclient/test_main.o
     1115TEST_FOOBARCLIENT_D_FILES += testsuite/foobarclient/test_main.d
     1116$(TEST_FOOBARCLIENT): $(TEST_FOOBARCLIENT_O_FILES) $(LIB)
     1117        $(LINK.c) -Wl,-Map,testsuite/foobarclient/foobarclient.map $^ -lm -lz -o $@
     1118NET_TESTS += $(TEST_FOOBARCLIENT)
     1119O_FILES += $(TEST_FOOBARCLIENT_O_FILES)
     1120D_FILES += $(TEST_FOOBARCLIENT_D_FILES)
     1121
     1122TEST_FOOBARSERVER = testsuite/foobarserver/foobarserver.exe
     1123TEST_FOOBARSERVER_O_FILES =
     1124TEST_FOOBARSERVER_D_FILES =
     1125TEST_FOOBARSERVER_O_FILES += testsuite/foobarserver/test_main.o
     1126TEST_FOOBARSERVER_D_FILES += testsuite/foobarserver/test_main.d
     1127$(TEST_FOOBARSERVER): $(TEST_FOOBARSERVER_O_FILES) $(LIB)
     1128        $(LINK.c) -Wl,-Map,testsuite/foobarserver/foobarserver.map $^ -lm -lz -o $@
     1129NET_TESTS += $(TEST_FOOBARSERVER)
     1130O_FILES += $(TEST_FOOBARSERVER_O_FILES)
     1131D_FILES += $(TEST_FOOBARSERVER_D_FILES)
     1132
    11081133TEST_DHCPCD01 = testsuite/dhcpcd01/dhcpcd01.exe
    11091134TEST_DHCPCD01_O_FILES =
     
    13911416        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
    13921417LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-dhcpcd.c
     1418LIB_C_FILES += mDNSResponder/mDNSCore/anonymous.c
     1419LIB_C_FILES += mDNSResponder/mDNSCore/CryptoAlg.c
     1420LIB_C_FILES += mDNSResponder/mDNSCore/DNSCommon.c
     1421LIB_C_FILES += mDNSResponder/mDNSCore/DNSDigest.c
     1422LIB_C_FILES += mDNSResponder/mDNSCore/mDNS.c
     1423LIB_C_FILES += mDNSResponder/mDNSCore/uDNS.c
     1424LIB_C_FILES += mDNSResponder/mDNSShared/dnssd_clientshim.c
     1425LIB_C_FILES += mDNSResponder/mDNSShared/mDNSDebug.c
     1426LIB_C_FILES += mDNSResponder/mDNSShared/PlatformCommon.c
     1427LIB_C_FILES += mDNSResponder/mDNSShared/GenLinkedList.c
     1428LIB_C_FILES += mDNSResponder/mDNSPosix/mDNSPosix.c
     1429LIB_C_FILES += mDNSResponder/mDNSPosix/mDNSUNP.c
    13931430
    13941431ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
     
    14411478          install -d $(INCLUDE_DIR)/$$i ; \
    14421479          install -m 644 freebsd/sys/$$i/*.h $(INCLUDE_DIR)/$$i ; done
     1480        install -m 644 mDNSResponder/mDNSCore/mDNSDebug.h $(INCLUDE_DIR)
     1481        install -m 644 mDNSResponder/mDNSCore/mDNSEmbeddedAPI.h $(INCLUDE_DIR)
     1482        install -m 644 mDNSResponder/mDNSShared/dns_sd.h $(INCLUDE_DIR)
     1483        install -m 644 mDNSResponder/mDNSPosix/mDNSPosix.h $(INCLUDE_DIR)
    14431484
    14441485clean:
  • freebsd-to-rtems.py

    r9449f15 r3951c97  
    429429                        'CFLAGS += -Ifreebsd/lib/libmemstat\n' \
    430430                        'CFLAGS += -Ifreebsd/lib/libipsec\n' \
     431                        'CFLAGS += -ImDNSResponder/mDNSCore\n' \
     432                        'CFLAGS += -ImDNSResponder/mDNSShared\n' \
     433                        'CFLAGS += -ImDNSResponder/mDNSPosix\n' \
    431434                        'CFLAGS += -Itestsuite/include\n' \
    432435                        'CFLAGS += -Wall\n' \
     
    515518                        '\t  install -d $(INCLUDE_DIR)/$$i ; \\\n' \
    516519                        '\t  install -m 644 freebsd/sys/$$i/*.h $(INCLUDE_DIR)/$$i ; done\n' \
     520                        '\tinstall -m 644 mDNSResponder/mDNSCore/mDNSDebug.h $(INCLUDE_DIR)\n' \
     521                        '\tinstall -m 644 mDNSResponder/mDNSCore/mDNSEmbeddedAPI.h $(INCLUDE_DIR)\n' \
     522                        '\tinstall -m 644 mDNSResponder/mDNSShared/dns_sd.h $(INCLUDE_DIR)\n' \
     523                        '\tinstall -m 644 mDNSResponder/mDNSPosix/mDNSPosix.h $(INCLUDE_DIR)\n' \
    517524                        '\n' \
    518525                        'clean:\n' \
     
    24302437
    24312438tests = Module('tests')
     2439tests.addTest('foobarclient', ['test_main'], runTest = False, netTest = True)
     2440tests.addTest('foobarserver', ['test_main'], runTest = False, netTest = True)
    24322441tests.addTest('dhcpcd01', ['test_main'], runTest = False, netTest = True)
    24332442tests.addTest('dhcpcd02', ['test_main'], runTest = False, netTest = True)
     
    24832492)
    24842493
     2494mdnsresponder = Module('mdnsresponder')
     2495mdnsresponder.addSourceFiles(
     2496        [
     2497                'mDNSResponder/mDNSCore/anonymous.c',
     2498                'mDNSResponder/mDNSCore/CryptoAlg.c',
     2499                'mDNSResponder/mDNSCore/DNSCommon.c',
     2500                'mDNSResponder/mDNSCore/DNSDigest.c',
     2501                'mDNSResponder/mDNSCore/mDNS.c',
     2502                'mDNSResponder/mDNSCore/uDNS.c',
     2503                'mDNSResponder/mDNSShared/dnssd_clientshim.c',
     2504                'mDNSResponder/mDNSShared/mDNSDebug.c',
     2505                'mDNSResponder/mDNSShared/PlatformCommon.c',
     2506                'mDNSResponder/mDNSShared/GenLinkedList.c',
     2507                'mDNSResponder/mDNSPosix/mDNSPosix.c',
     2508                'mDNSResponder/mDNSPosix/mDNSUNP.c',
     2509        ]
     2510)
     2511
    24852512# Register all the Module instances with the Module Manager
    24862513mm.addModule(rtems)
     
    25262553mm.addModule(tests)
    25272554mm.addModule(dhcpcd)
     2555mm.addModule(mdnsresponder)
    25282556
    25292557# XXX TODO Check that no file is also listed in empty
Note: See TracChangeset for help on using the changeset viewer.