summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2014-06-19 01:35:04 +0200
committerMichael Brown2014-06-24 16:32:35 +0200
commit8290a955130e0a6d6112ad8f269d8f617103e070 (patch)
tree9a3b124dacb036cbf6359fb4ef27fbce3f898fd6 /src/include/ipxe
parent[debug] Allow debug message colours to be customised via DBGCOL=... (diff)
downloadipxe-8290a955130e0a6d6112ad8f269d8f617103e070.tar.gz
ipxe-8290a955130e0a6d6112ad8f269d8f617103e070.tar.xz
ipxe-8290a955130e0a6d6112ad8f269d8f617103e070.zip
[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>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/version.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/ipxe/version.h b/src/include/ipxe/version.h
index aa894d7e..ae4275db 100644
--- a/src/include/ipxe/version.h
+++ b/src/include/ipxe/version.h
@@ -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 */