Browse Source

[build] Allow product tag line to be customised via config/branding.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
4b2800c7d5
2 changed files with 10 additions and 1 deletions
  1. 9
    0
      src/config/branding.h
  2. 1
    1
      src/usr/autoboot.c

+ 9
- 0
src/config/branding.h View File

@@ -28,6 +28,15 @@ FILE_LICENCE ( GPL2_OR_LATER );
28 28
 #define PRODUCT_SHORT_NAME "iPXE"
29 29
 #define PRODUCT_URI "http://ipxe.org"
30 30
 
31
+/*
32
+ * Tag line
33
+ *
34
+ * If your PRODUCT_SHORT_NAME is longer than the four characters used
35
+ * by "iPXE", then the standard tag line "Open Source Network Boot
36
+ * Firmware" is unlikely to fit neatly onto the screen.
37
+ */
38
+#define PRODUCT_TAG_LINE "Open Source Network Boot Firmware"
39
+
31 40
 /*
32 41
  * Error messages
33 42
  *

+ 1
- 1
src/usr/autoboot.c View File

@@ -552,7 +552,7 @@ void ipxe ( struct net_device *netdev ) {
552 552
 	 *
553 553
 	 */
554 554
 	printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s"
555
-		 NORMAL " -- Open Source Network Boot Firmware -- "
555
+		 NORMAL " -- " PRODUCT_TAG_LINE " -- "
556 556
 		 CYAN PRODUCT_URI NORMAL "\nFeatures:", product_version );
557 557
 	for_each_table_entry ( feature, FEATURES )
558 558
 		printf ( " %s", feature->name );

Loading…
Cancel
Save