mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[build] Use PRODUCT_SHORT_NAME for end-user visible strings
Use PRODUCT_SHORT_NAME instead of a hardcoded "iPXE" for strings which are typically shown in the user interface. Note that this only allows for customisation of the user interface. Where the "iPXE" string serves a technical purpose (such as in the HTTP User-Agent), the string cannot be customised. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -28,6 +28,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <ipxe/command.h>
|
||||
#include <ipxe/parseopt.h>
|
||||
#include <ipxe/shell.h>
|
||||
#include <config/branding.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
@@ -36,7 +37,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
*/
|
||||
|
||||
/** The shell prompt string */
|
||||
static const char shell_prompt[] = "iPXE> ";
|
||||
static const char shell_prompt[] = PRODUCT_SHORT_NAME "> ";
|
||||
|
||||
/**
|
||||
* "help" command
|
||||
|
||||
@@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <ipxe/keys.h>
|
||||
#include <ipxe/ansicol.h>
|
||||
#include <ipxe/settings_ui.h>
|
||||
#include <config/branding.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
@@ -348,7 +349,7 @@ static void draw_title_row ( struct setting_widget *widget ) {
|
||||
clearmsg ( TITLE_ROW );
|
||||
name = settings_name ( widget->settings );
|
||||
attron ( A_BOLD );
|
||||
msg ( TITLE_ROW, "iPXE configuration settings%s%s",
|
||||
msg ( TITLE_ROW, PRODUCT_SHORT_NAME " configuration settings%s%s",
|
||||
( name[0] ? " - " : "" ), name );
|
||||
attroff ( A_BOLD );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user