build.ck 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. NS 16550 UART
  9. Abstract:
  10. This library contains the NS 16550 UART controller library.
  11. Author:
  12. Chris Stevens 10-Jul-2015
  13. Environment:
  14. Firmware
  15. --*/
  16. from menv import staticLibrary;
  17. function build() {
  18. var entries;
  19. var includes;
  20. var lib;
  21. var sources;
  22. var sourcesConfig;
  23. sources = [
  24. "ns16550.c"
  25. ];
  26. includes = [
  27. "$S/uefi/include"
  28. ];
  29. sourcesConfig = {
  30. "CFLAGS": ["-fshort-wchar"],
  31. };
  32. lib = {
  33. "label": "ns16550",
  34. "inputs": sources,
  35. "sources_config": sourcesConfig,
  36. "includes": includes
  37. };
  38. entries = staticLibrary(lib);
  39. return entries;
  40. }