build.ck 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. Process/Thread Library
  9. Abstract:
  10. This library contains the process and thread library. It maintains the
  11. lifecycle of threads (units of execution) and processes (collections of
  12. threads in a shared address space).
  13. Author:
  14. Evan Green 6-Aug-2012
  15. Environment:
  16. Kernel
  17. --*/
  18. function build() {
  19. base_sources = [
  20. "env.c",
  21. "info.c",
  22. "init.c",
  23. "perm.c",
  24. "pgroups.c",
  25. "process.c",
  26. "psimag.c",
  27. "signals.c",
  28. "thread.c",
  29. "usrlock.c",
  30. "utimer.c"
  31. ];
  32. if ((arch == "armv7") || (arch == "armv6")) {
  33. arch_sources = [
  34. "armv7/psarch.c"
  35. ];
  36. } else if (arch == "x86") {
  37. arch_sources = [
  38. "x86/psarch.c"
  39. ];
  40. }
  41. lib = {
  42. "label": "ps",
  43. "inputs": base_sources + arch_sources,
  44. };
  45. entries = static_library(lib);
  46. return entries;
  47. }
  48. return build();