[build] Expose build timestamp, build name, and product names

Expose the build timestamp (measured in seconds since the Epoch) and
the build name (e.g. "rtl8139.rom" or "ipxe.efi"), and provide the
product name and product short name in a single centralised location.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-06-19 00:35:04 +01:00
parent 13a74e0d27
commit 8290a95513
10 changed files with 101 additions and 37 deletions

View File

@@ -9,8 +9,19 @@
FILE_LICENCE ( GPL2_OR_LATER );
#include <wchar.h>
extern unsigned long build_timestamp;
extern unsigned long build_id;
extern const int product_major_version;
extern const int product_minor_version;
extern const char *product_version;
extern const char product_version[];
extern const char product_name[];
extern const char product_short_name[];
extern const char build_name[];
extern const wchar_t product_wversion[];
extern const wchar_t product_wname[];
extern const wchar_t product_short_wname[];
extern const wchar_t build_wname[];
#endif /* _IPXE_VERSION_H */