mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +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:
@@ -37,7 +37,7 @@
|
||||
#include <ipxe/oncrpc_iob.h>
|
||||
#include <ipxe/init.h>
|
||||
#include <ipxe/settings.h>
|
||||
#include <config/general.h>
|
||||
#include <ipxe/version.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
@@ -88,7 +88,7 @@ int oncrpc_init_cred_sys ( struct oncrpc_cred_sys *auth_sys ) {
|
||||
fetch_string_setting_copy ( NULL, &hostname_setting,
|
||||
&auth_sys->hostname );
|
||||
if ( ! auth_sys->hostname )
|
||||
if ( ! ( auth_sys->hostname = strdup ( PRODUCT_SHORT_NAME ) ) )
|
||||
if ( ! ( auth_sys->hostname = strdup ( product_short_name ) ) )
|
||||
return -ENOMEM;
|
||||
|
||||
auth_sys->uid = fetch_uintz_setting ( NULL, &uid_setting );
|
||||
|
||||
Reference in New Issue
Block a user