1
0

build.ck 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*++
  2. Copyright (c) 2014 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. RTLW 81xx
  5. Abstract:
  6. This module implements support for the Realtek RTL81xx family of
  7. wireless LAN controllers.
  8. Author:
  9. Chris Stevens 10-Oct-2015
  10. Environment:
  11. Kernel
  12. --*/
  13. function build() {
  14. name = "rtlw81xx";
  15. sources = [
  16. "rtlw81.c",
  17. "rtlw81hw.c"
  18. ];
  19. dynlibs = [
  20. "//drivers/net/netcore:netcore",
  21. "//drivers/net/net80211:net80211",
  22. "//drivers/usb/usbcore:usbcore"
  23. ];
  24. fw_files = [
  25. "rtlw8188cufwUMC.bin",
  26. "rtlw8188eufw.bin",
  27. "rtlw8192cufw.bin"
  28. ];
  29. entries = [];
  30. implicits = [];
  31. for (fw_file in fw_files) {
  32. entries += copy("firmware/" + fw_file,
  33. binroot + "/" + fw_file,
  34. fw_file,
  35. null,
  36. null);
  37. implicits += [":" + fw_file];
  38. }
  39. drv = {
  40. "label": name,
  41. "inputs": sources + dynlibs,
  42. "implicit": implicits
  43. };
  44. entries += driver(drv);
  45. return entries;
  46. }
  47. return build();