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

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

26
  */
26
  */
27
 #define PRODUCT_NAME ""
27
 #define PRODUCT_NAME ""
28
 #define PRODUCT_SHORT_NAME "iPXE"
28
 #define PRODUCT_SHORT_NAME "iPXE"
29
+#define PRODUCT_URI "http://ipxe.org"
29
 
30
 
30
 #include <config/local/branding.h>
31
 #include <config/local/branding.h>
31
 
32
 

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

553
 	 */
553
 	 */
554
 	printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s"
554
 	printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD PRODUCT_SHORT_NAME " %s"
555
 		 NORMAL " -- Open Source Network Boot Firmware -- "
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
 	for_each_table_entry ( feature, FEATURES )
557
 	for_each_table_entry ( feature, FEATURES )
559
 		printf ( " %s", feature->name );
558
 		printf ( " %s", feature->name );
560
 	printf ( "\n" );
559
 	printf ( "\n" );

Loading…
Cancel
Save