mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
[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:
@@ -17,8 +17,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <ipxe/init.h>
|
||||
#include <ipxe/version.h>
|
||||
#include <usr/autoboot.h>
|
||||
#include <config/general.h>
|
||||
|
||||
/**
|
||||
* Main entry point
|
||||
@@ -31,7 +31,7 @@ __asmcall int main ( void ) {
|
||||
initialise();
|
||||
|
||||
/* Some devices take an unreasonably long time to initialise */
|
||||
printf ( PRODUCT_SHORT_NAME " initialising devices..." );
|
||||
printf ( "%s initialising devices...", product_short_name );
|
||||
startup();
|
||||
printf ( "ok\n" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user