build.ck 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*++
  2. Copyright (c) 2014 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. GenFFS
  5. Abstract:
  6. This module builds the GenFFS build utility, which can create a single
  7. FFS file.
  8. Author:
  9. Evan Green 6-Mar-2014
  10. Environment:
  11. Build
  12. --*/
  13. function build() {
  14. sources = [
  15. "genffs.c"
  16. ];
  17. includes = [
  18. "$//uefi/include"
  19. ];
  20. app = {
  21. "label": "genffs",
  22. "inputs": sources,
  23. "includes": includes,
  24. "build": TRUE
  25. };
  26. entries = application(app);
  27. genffs_command = "$^/uefi/tools/genffs/genffs -s -i $IN " +
  28. "-r EFI_SECTION_PE32 -i $IN " +
  29. "-r EFI_SECTION_USER_INTERFACE " +
  30. "-t EFI_FV_FILETYPE_DRIVER -o $OUT";
  31. runtime_tool = {
  32. "type": "tool",
  33. "name": "genffs_runtime",
  34. "command": genffs_command,
  35. "description": "GenFFS - $IN"
  36. };
  37. genffs_command = "$^/uefi/tools/genffs/genffs " +
  38. "-g 7E374E25-8E01-4FEE-87F2-390C23C606CD " +
  39. "-r EFI_SECTION_RAW -t EFI_FV_FILETYPE_FREEFORM " +
  40. "-o $OUT $IN";
  41. acpi_tool = {
  42. "type": "tool",
  43. "name": "genffs_acpi",
  44. "command": genffs_command,
  45. "description": "GenFFS - $OUT"
  46. };
  47. return entries + [runtime_tool, acpi_tool];
  48. }
  49. return build();