2 * Copyright (C) 2012 Michael Brown <mbrown@fensystems.co.uk>.
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.
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.
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
20 FILE_LICENCE ( GPL2_OR_LATER );
29 #include <ipxe/features.h>
30 #include <ipxe/version.h>
31 #include <config/general.h>
34 * Create wide-character version of string
37 * @ret wstring Wide-character version of string
39 #define WSTRING( string ) _WSTRING ( string )
40 #define _WSTRING( string ) L ## string
42 /** Version number feature */
43 FEATURE_VERSION ( VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH );
45 /** Build timestamp (generated by linker) */
46 extern char _build_timestamp[];
48 /** Build ID (generated by linker) */
49 extern char _build_id[];
51 /** Build timestamp */
52 unsigned long build_timestamp = ( ( unsigned long ) _build_timestamp );
55 unsigned long build_id = ( ( unsigned long ) _build_id );
57 /** Product major version */
58 const int product_major_version = VERSION_MAJOR;
60 /** Product minor version */
61 const int product_minor_version = VERSION_MINOR;
63 /** Product version string */
64 const char product_version[] = VERSION;
66 /** Product name string */
67 const char product_name[] = PRODUCT_NAME;
69 /** Product short name string */
70 const char product_short_name[] = PRODUCT_SHORT_NAME;
72 /** Build name string */
73 const char build_name[] = BUILD_NAME;
75 /** Wide-character product version string */
76 const wchar_t product_wversion[] = WSTRING ( VERSION );
78 /** Wide-character product name string */
79 const wchar_t product_wname[] = WSTRING ( PRODUCT_NAME );
81 /** Wide-character product short name string */
82 const wchar_t product_short_wname[] = WSTRING ( PRODUCT_SHORT_NAME );
84 /** Wide-character build name string */
85 const wchar_t build_wname[] = WSTRING ( BUILD_NAME );
87 /** Copy of build name string within ".prefix" */
88 const char build_name_prefix[] __attribute__ (( section ( ".prefix.name" ) ))