build.ck 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*++
  2. Copyright (c) 2012 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. Drivers
  9. Abstract:
  10. This directory contains kernel-mode drivers that provide hardware
  11. support for the kernel and applications.
  12. Author:
  13. Evan Green 26-Jul-2012
  14. Environment:
  15. Build
  16. --*/
  17. from menv import group, mconfig;
  18. function build() {
  19. var arch = mconfig.arch;
  20. var drivers;
  21. var entries;
  22. drivers = [
  23. "drivers/acpi:acpi",
  24. "drivers/ahci:ahci",
  25. "drivers/ata:ata",
  26. "drivers/devrem:devrem",
  27. "drivers/fat:fat",
  28. "drivers/i8042:i8042",
  29. "drivers/net:net_drivers",
  30. "drivers/null:null",
  31. "drivers/part:part",
  32. "drivers/pci:pci",
  33. "drivers/plat:platform_drivers",
  34. "drivers/ramdisk:ramdisk",
  35. "drivers/sd:sd_drivers",
  36. "drivers/special:special",
  37. "drivers/term/ser16550:ser16550",
  38. "drivers/usb:usb_drivers",
  39. "drivers/videocon:videocon"
  40. ];
  41. if ((arch == "armv7") || (arch == "armv6")) {
  42. drivers += [
  43. "drivers/dma:dma_drivers",
  44. "drivers/gpio:gpio_drivers",
  45. "drivers/i8042/pl050:pl050",
  46. "drivers/spb:spb_drivers"
  47. ];
  48. }
  49. entries = group("drivers", drivers);
  50. return entries;
  51. }