Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
e1ce15ec3c
3 changed files with 5 additions and 3 deletions
  1. 3
    1
      src/arch/i386/prefix/romprefix.S
  2. 1
    0
      src/config/branding.h
  3. 1
    2
      src/usr/autoboot.c

+ 3
- 1
src/arch/i386/prefix/romprefix.S View File

@@ -591,7 +591,9 @@ init_message:
591 591
 	.ascii	PRODUCT_NAME
592 592
 	.ascii	"\n"
593 593
 	.ascii	PRODUCT_SHORT_NAME
594
-	.asciz	" (http://ipxe.org)"
594
+	.ascii	" ("
595
+	.ascii	PRODUCT_URI
596
+	.asciz	")"
595 597
 	.size	init_message, . - init_message
596 598
 .ifeqs	BUSTYPE, "PCIR"
597 599
 init_message_pci:

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

@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
26 26
  */
27 27
 #define PRODUCT_NAME ""
28 28
 #define PRODUCT_SHORT_NAME "iPXE"
29
+#define PRODUCT_URI "http://ipxe.org"
29 30
 
30 31
 #include <config/local/branding.h>
31 32
 

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

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

Loading…
Cancel
Save