build.ck 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*++
  2. Copyright (c) 2015 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. BCM2709 UEFI Device Library
  9. Abstract:
  10. This library contains support for the BCM2709 SoC's devices.
  11. Author:
  12. Chris Stevens 18-Mar-2015
  13. Environment:
  14. Firmware
  15. --*/
  16. from menv import kernelLibrary;
  17. function build() {
  18. var entries;
  19. var includes;
  20. var lib;
  21. var sources;
  22. var sourcesConfig;
  23. sources = [
  24. "gpio.c",
  25. "init.c",
  26. "intr.c",
  27. "mailbox.c",
  28. "memmap.c",
  29. "pwm.c",
  30. "sd.c",
  31. "serial.c",
  32. "timer.c",
  33. "usb.c",
  34. "video.c",
  35. ];
  36. includes = [
  37. "$S/uefi/include"
  38. ];
  39. sourcesConfig = {
  40. "CFLAGS": ["-fshort-wchar"],
  41. };
  42. lib = {
  43. "label": "bcm2709",
  44. "inputs": sources,
  45. "sources_config": sourcesConfig,
  46. "includes": includes
  47. };
  48. entries = kernelLibrary(lib);
  49. return entries;
  50. }