From: Michael Brown Date: Wed, 11 Feb 2015 14:22:43 +0000 (+0000) Subject: [build] Allow product tag line to be customised via config/branding.h X-Git-Tag: v1.20.1~983 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b2800c7d5501ffcde6bd585f45842580a60f8d9;p=thirdparty%2Fipxe.git [build] Allow product tag line to be customised via config/branding.h Signed-off-by: Michael Brown --- diff --git a/src/config/branding.h b/src/config/branding.h index d1d4c4e1b..cca68b6e3 100644 --- a/src/config/branding.h +++ b/src/config/branding.h @@ -28,6 +28,15 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define PRODUCT_SHORT_NAME "iPXE" #define PRODUCT_URI "http://ipxe.org" +/* + * Tag line + * + * If your PRODUCT_SHORT_NAME is longer than the four characters used + * by "iPXE", then the standard tag line "Open Source Network Boot + * Firmware" is unlikely to fit neatly onto the screen. + */ +#define PRODUCT_TAG_LINE "Open Source Network Boot Firmware" + /* * Error messages * diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 31b1ff6e2..4bcb64d4c 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -552,7 +552,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 -- " + NORMAL " -- " PRODUCT_TAG_LINE " -- " CYAN PRODUCT_URI NORMAL "\nFeatures:", product_version ); for_each_table_entry ( feature, FEATURES ) printf ( " %s", feature->name );