build.ck 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*++
  2. Copyright (c) 2014 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. efiboot
  5. Abstract:
  6. This executable implements support for the efiboot program, which is a
  7. user mode utility that can be used to change EFI boot options.
  8. Author:
  9. Evan Green 9-Dec-2014
  10. Environment:
  11. User
  12. --*/
  13. function build() {
  14. sources = [
  15. "efiboot.c"
  16. ];
  17. dynlibs = [
  18. "//apps/osbase:libminocaos"
  19. ];
  20. includes = [
  21. "$//apps/libc/include"
  22. ];
  23. sources_config = {
  24. "CFLAGS": ["-fshort-wchar"]
  25. };
  26. link_config = {};
  27. if ((arch == "armv6") || (arch == "armv7")) {
  28. link_config["LDFLAGS"] = ["-Wl,--no-wchar-size-warning"];
  29. }
  30. app = {
  31. "label": "efiboot",
  32. "inputs": sources + dynlibs,
  33. "sources_config": sources_config,
  34. "includes": includes,
  35. "config": link_config
  36. };
  37. entries = application(app);
  38. return entries;
  39. }
  40. return build();