From 544a6a9769112661b7831e114db4bf06c13baa67 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 11 Feb 2015 13:02:52 +0000 Subject: [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 --- src/hci/shell.c | 3 ++- src/hci/tui/settings_ui.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/hci') diff --git a/src/hci/shell.c b/src/hci/shell.c index c1a54384..c91d22e1 100644 --- a/src/hci/shell.c +++ b/src/hci/shell.c @@ -28,6 +28,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include +#include /** @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 diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c index 22183973..b2e019e7 100644 --- a/src/hci/tui/settings_ui.c +++ b/src/hci/tui/settings_ui.c @@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include +#include /** @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 ); } -- cgit v1.2.3-55-g7522