build.ck 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*++
  2. Copyright (c) 2013 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. Net Core
  9. Abstract:
  10. This module implements the networking core. It manages network
  11. interfaces and provides support for core protocols like TCP, IP, IPv6,
  12. ARP, and others.
  13. Author:
  14. Evan Green 4-Apr-2013
  15. Environment:
  16. Kernel
  17. --*/
  18. from menv import driver;
  19. function build() {
  20. var drv;
  21. var entries;
  22. var name = "netcore";
  23. var sources;
  24. sources = [
  25. "addr.c",
  26. "buf.c",
  27. "ethernet.c",
  28. "ipv4/arp.c",
  29. "ipv4/dhcp.c",
  30. "ipv4/igmp.c",
  31. "ipv4/ip4.c",
  32. "ipv6/icmp6.c",
  33. "ipv6/ip6.c",
  34. "ipv6/mld.c",
  35. "ipv6/ndp.c",
  36. "mcast.c",
  37. "netcore.c",
  38. "netlink/netlink.c",
  39. "netlink/genctrl.c",
  40. "netlink/generic.c",
  41. "raw.c",
  42. "tcp.c",
  43. "tcpcong.c",
  44. "udp.c"
  45. ];
  46. drv = {
  47. "label": name,
  48. "inputs": sources,
  49. };
  50. entries = driver(drv);
  51. return entries;
  52. }