build.ck 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*++
  2. Copyright (c) 2015 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. mkuboot
  5. Abstract:
  6. This module builds the mkuboot build utility, which can create a U-Boot
  7. firmware images.
  8. Author:
  9. Chris Stevens 2-Jul-2015
  10. Environment:
  11. Build
  12. --*/
  13. function build() {
  14. sources = [
  15. "mkuboot.c",
  16. ];
  17. libs = [
  18. "//lib/rtl/base:build_basertl",
  19. "//lib/rtl/rtlc:build_rtlc"
  20. ];
  21. includes = [
  22. "$//uefi/include"
  23. ];
  24. app = {
  25. "label": "mkuboot",
  26. "inputs": sources + libs,
  27. "includes": includes,
  28. "build": TRUE
  29. };
  30. entries = application(app);
  31. mkuboot_command = "$^//uefi/tools/mkuboot/mkuboot $MKUBOOT_FLAGS " +
  32. "-l $TEXT_ADDRESS -e $TEXT_ADDRESS -o $OUT $IN";
  33. tool = {
  34. "type": "tool",
  35. "name": "mkuboot",
  36. "command": mkuboot_command,
  37. "description": "Creating U-Boot Image - $OUT"
  38. };
  39. return entries + [tool];
  40. }
  41. return build();