version.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* vim: tabstop=4 shiftwidth=4 noexpandtab
  2. */
  3. #include <version.h>
  4. /* Kernel name. If you change this, you're not
  5. * my friend any more. */
  6. char * __kernel_name = "toaru";
  7. /* This really shouldn't change, and if it does,
  8. * always ensure it still has the correct arguments
  9. * when used as a vsprintf() format. */
  10. char * __kernel_version_format = "%d.%d.%d-%s";
  11. /* Version numbers X.Y.Z */
  12. int __kernel_version_major = 0;
  13. int __kernel_version_minor = 7;
  14. int __kernel_version_lower = 1;
  15. /* Kernel build suffix, which doesn't necessarily
  16. * mean anything, but can be used to distinguish
  17. * between different features included while
  18. * building multiple kernels. */
  19. #ifdef KERNEL_GIT_TAG
  20. # define STR(x) #x
  21. # define STRSTR(x) STR(x)
  22. # define KERNEL_VERSION_SUFFIX STRSTR(KERNEL_GIT_TAG)
  23. #else
  24. # define KERNEL_VERSION_SUFFIX "r"
  25. #endif
  26. char * __kernel_version_suffix = KERNEL_VERSION_SUFFIX;
  27. /* The release codename.
  28. *
  29. * History:
  30. * * 0.0.X+ are part of the "uiharu" family
  31. * * 0.5.X+ branches make up the "neopolitan flavors" family.
  32. * 0.5.0 is strawberry
  33. */
  34. char * __kernel_version_codename = "strawberry";
  35. /* Build architecture (should probably not be
  36. * here as a string, but rather some sort of
  37. * preprocessor macro, or pulled from a script) */
  38. char * __kernel_arch = "i686";
  39. /* Rebuild from clean to reset these. */
  40. char * __kernel_build_date = __DATE__;
  41. char * __kernel_build_time = __TIME__;
  42. #if (defined(__GNUC__) || defined(__GNUG__)) && !(defined(__clang__) || defined(__INTEL_COMPILER))
  43. # define COMPILER_VERSION "gcc " __VERSION__
  44. #elif (defined(__clang__))
  45. # define COMPILER_VERSION "clang " __clang_version__
  46. #else
  47. # define COMPILER_VERSION "unknown-compiler how-did-you-do-that"
  48. #endif
  49. char * __kernel_compiler_version = COMPILER_VERSION;