build.ck 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*++
  2. Copyright (c) 2014 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. OMAP UART
  9. Abstract:
  10. This library contains the UART controller library used in Texas
  11. Instruments OMAP3 and OMAP4 SoCs.
  12. Author:
  13. Evan Green 27-Feb-2014
  14. Environment:
  15. Firmware
  16. --*/
  17. from menv import kernelLibrary;
  18. function build() {
  19. var entries;
  20. var includes;
  21. var lib;
  22. var sources;
  23. var sourcesConfig;
  24. sources = [
  25. "omapuart.c"
  26. ];
  27. includes = [
  28. "$S/uefi/include"
  29. ];
  30. sourcesConfig = {
  31. "CFLAGS": ["-fshort-wchar"],
  32. };
  33. lib = {
  34. "label": "omapuart",
  35. "inputs": sources,
  36. "sources_config": sourcesConfig,
  37. "includes": includes
  38. };
  39. entries = kernelLibrary(lib);
  40. return entries;
  41. }