Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

version.c 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright (C) 2012 Michael Brown <mbrown@fensystems.co.uk>.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of the
  7. * License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. * 02110-1301, USA.
  18. *
  19. * You can also choose to distribute this program under the terms of
  20. * the Unmodified Binary Distribution Licence (as given in the file
  21. * COPYING.UBDL), provided that you have satisfied its requirements.
  22. */
  23. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  24. /** @file
  25. *
  26. * Version number
  27. *
  28. */
  29. #include <wchar.h>
  30. #include <ipxe/features.h>
  31. #include <ipxe/version.h>
  32. #include <config/general.h>
  33. #include <config/branding.h>
  34. /**
  35. * Create wide-character version of string
  36. *
  37. * @v string String
  38. * @ret wstring Wide-character version of string
  39. */
  40. #define WSTRING( string ) _WSTRING ( string )
  41. #define _WSTRING( string ) L ## string
  42. /** Version number feature */
  43. FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH );
  44. /** Build timestamp (generated by linker) */
  45. extern char _build_timestamp[];
  46. /** Build ID (generated by linker) */
  47. extern char _build_id[];
  48. /** Build timestamp */
  49. unsigned long build_timestamp = ( ( unsigned long ) _build_timestamp );
  50. /** Build ID */
  51. unsigned long build_id = ( ( unsigned long ) _build_id );
  52. /** Product major version */
  53. const int product_major_version = VERSION_MAJOR;
  54. /** Product minor version */
  55. const int product_minor_version = VERSION_MINOR;
  56. /** Product version string */
  57. const char product_version[] = VERSION;
  58. /** Product name string */
  59. const char product_name[] = PRODUCT_NAME;
  60. /** Product short name string */
  61. const char product_short_name[] = PRODUCT_SHORT_NAME;
  62. /** Build name string */
  63. const char build_name[] = BUILD_NAME;
  64. /** Wide-character product version string */
  65. const wchar_t product_wversion[] = WSTRING ( VERSION );
  66. /** Wide-character product name string */
  67. const wchar_t product_wname[] = WSTRING ( PRODUCT_NAME );
  68. /** Wide-character product short name string */
  69. const wchar_t product_short_wname[] = WSTRING ( PRODUCT_SHORT_NAME );
  70. /** Wide-character build name string */
  71. const wchar_t build_wname[] = WSTRING ( BUILD_NAME );
  72. /** Copy of build name string within ".prefix" */
  73. const char build_name_prefix[] __attribute__ (( section ( ".prefix.name" ) ))
  74. = BUILD_NAME;