version.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * linux/init/version.c
  3. *
  4. * Copyright (C) 1992 Theodore Ts'o
  5. *
  6. * May be freely distributed as part of Linux.
  7. */
  8. #include <linux/compile.h>
  9. #include <linux/module.h>
  10. #include <linux/uts.h>
  11. #include <linux/utsname.h>
  12. #include <linux/utsrelease.h>
  13. #include <linux/version.h>
  14. #include <asm-arm/setup.h> //Qisda, Asaku Chen, 2009/08/17, uboot and kernel version
  15. #define version(a) Version_ ## a
  16. #define version_string(a) version(a)
  17. int version_string(LINUX_VERSION_CODE);
  18. struct uts_namespace init_uts_ns = {
  19. .kref = {
  20. .refcount = ATOMIC_INIT(2),
  21. },
  22. .name = {
  23. .sysname = UTS_SYSNAME,
  24. .nodename = UTS_NODENAME,
  25. .release = UTS_RELEASE,
  26. .version = UTS_VERSION,
  27. .machine = UTS_MACHINE,
  28. .domainname = UTS_DOMAINNAME,
  29. },
  30. };
  31. EXPORT_SYMBOL_GPL(init_uts_ns);
  32. /* FIXED STRINGS! Don't touch! */
  33. #if 0
  34. const char linux_banner[] =
  35. "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
  36. LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
  37. const char linux_proc_banner[] =
  38. "%s version %s"
  39. " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
  40. " (" LINUX_COMPILER ") %s\n";
  41. #else
  42. const char linux_banner[] =
  43. "Linux version " UTS_RELEASE
  44. " (" LINUX_COMPILER ") " UTS_VERSION "\n";
  45. const char linux_proc_banner[] =
  46. "%s version %s"
  47. " (" LINUX_COMPILER ") %s\n";
  48. #endif
  49. //Qisda, Asaku Chen, 2009/08/17, uboot and kernel version {
  50. const char qisda_kernel_proc_banner[] =
  51. QISDA_KERNEL_VERSION "\n";
  52. const char uboot_proc_banner[ATAG_QU_VERSION_SIZE];
  53. const char qisda_uboot_proc_banner[ATAG_QU_VERSION_SIZE];
  54. //Qisda, Asaku Chen, 2009/08/17, uboot and kernel version }