build.ck 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. UEFI
  9. Abstract:
  10. This directory builds UEFI firmware images for several platforms.
  11. Author:
  12. Evan Green 26-Feb-2014
  13. Environment:
  14. Firmware
  15. --*/
  16. from menv import group, mconfig;
  17. function build() {
  18. var arch = mconfig.arch;
  19. var entries;
  20. var platfw;
  21. if (arch == "armv7") {
  22. platfw = [
  23. "uefi/plat/beagbone:bbonefw",
  24. "uefi/plat/beagbone/init:bbonemlo",
  25. "uefi/plat/panda/init:omap4mlo",
  26. "uefi/plat/panda:pandafw",
  27. "uefi/plat/rpi2:rpi2fw",
  28. "uefi/plat/veyron:veyronfw",
  29. ];
  30. } else if (arch == "armv6") {
  31. platfw = [
  32. "uefi/plat/rpi:rpifw"
  33. ];
  34. } else if (arch == "x86") {
  35. platfw = [
  36. "uefi/plat/bios:biosfw",
  37. ];
  38. }
  39. entries = group("platfw", platfw);
  40. return entries;
  41. }