1
0

build.ck 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*++
  2. Copyright (c) 2012 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. Boot
  9. Abstract:
  10. This module implements support for the boot environment, which contains
  11. the applications and support code needed to load and launch the
  12. operating system kernel. It consists of some assembly bootstrap code,
  13. a boot manager, and an OS loader.
  14. Author:
  15. Evan Green 26-Jul-2012
  16. Environment:
  17. Boot
  18. --*/
  19. from menv import group, mconfig;
  20. function build() {
  21. var arch = mconfig.arch;
  22. var bootApps;
  23. var entries;
  24. bootApps = [
  25. "boot/bootman:bootmefi.efi",
  26. "boot/loader:loadefi"
  27. ];
  28. if (arch == "x86") {
  29. bootApps += [
  30. "boot/bootman:bootman.bin",
  31. "boot/fatboot:fatboot.bin",
  32. "boot/loader:loader",
  33. "boot/mbr:mbr.bin"
  34. ];
  35. }
  36. entries = group("boot_apps", bootApps);
  37. return entries;
  38. }