summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2015-02-11 14:08:36 +0100
committerMichael Brown2015-02-11 15:11:28 +0100
commite1ce15ec3cf1d66d0e9559aa0904b4147b5cd0fd (patch)
tree5e761ac33b71aae9892485df31f0866a1b265c62
parent[build] Use PRODUCT_SHORT_NAME for end-user visible strings (diff)
downloadipxe-e1ce15ec3cf1d66d0e9559aa0904b4147b5cd0fd.tar.gz
ipxe-e1ce15ec3cf1d66d0e9559aa0904b4147b5cd0fd.tar.xz
ipxe-e1ce15ec3cf1d66d0e9559aa0904b4147b5cd0fd.zip
[build] Allow product URI to be customised via config/branding.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/arch/i386/prefix/romprefix.S4
-rw-r--r--src/config/branding.h1
-rw-r--r--src/usr/autoboot.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/arch/i386/prefix/romprefix.S b/src/arch/i386/prefix/romprefix.S
index d1ceb0b4..cac8075e 100644
--- a/src/arch/i386/prefix/romprefix.S
+++ b/src/arch/i386/prefix/romprefix.S
@@ -591,7 +591,9 @@ init_message:
.ascii PRODUCT_NAME
.ascii "\n"
.ascii PRODUCT_SHORT_NAME
- .asciz " (http://ipxe.org)"
+ .ascii " ("
+ .ascii PRODUCT_URI
+ .asciz ")"
.size init_message, . - init_message
.ifeqs BUSTYPE, "PCIR"
init_message_pci:
diff --git a/src/config/branding.h b/src/config/branding.h
index e96d8ca7..abb32612 100644
--- a/src/config/branding.h
+++ b/src/config/branding.h
@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
*/
#define PRODUCT_NAME ""
#define PRODUCT_SHORT_NAME "iPXE"
+#define PRODUCT_URI "http://ipxe.org"
#include <config/local/branding.h>
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index 42718ee1..31b1ff6e 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -553,8 +553,7 @@ void ipxe ( struct net_device *netdev ) {
*/
printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s"
NORMAL " -- Open Source Network Boot Firmware -- "
- CYAN "http://ipxe.org" NORMAL "\n"
- "Features:", product_version );
+ CYAN PRODUCT_URI NORMAL "\nFeatures:", product_version );
for_each_table_entry ( feature, FEATURES )
printf ( " %s", feature->name );
printf ( "\n" );