[romprefix] Add vendor branding facilities and guidelines

Some hardware vendors have been known to remove all gPXE-related
branding from ROMs that they build.  While this is not prohibited by
the GPL, it is a little impolite.

Add a facility for adding branding messages via two #defines
(PRODUCT_NAME and PRODUCT_SHORT_NAME) in config/general.h.  This
should accommodate all known OEM-mandated branding requirements.
Vendors with branding requirements that cannot be satisfied by using
PRODUCT_NAME and/or PRODUCT_SHORT_NAME should contact us so that we
can extended this facility as necessary.
This commit is contained in:
Michael Brown
2008-10-31 19:10:28 +00:00
parent 32bc76f902
commit 5e6b82104d
4 changed files with 106 additions and 14 deletions

View File

@@ -20,6 +20,7 @@ Literature dealing with the network protocols:
#include <gpxe/shell.h>
#include <gpxe/shell_banner.h>
#include <usr/autoboot.h>
#include <config/general.h>
#define NORMAL "\033[0m"
#define BOLD "\033[1m"
@@ -39,8 +40,19 @@ __cdecl int main ( void ) {
initialise();
startup();
/* Print welcome banner */
printf ( NORMAL "\n\n\n" BOLD "gPXE " VERSION
/*
* Print welcome banner
*
*
* If you wish to brand this build of gPXE, please do so by
* defining the string PRODUCT_NAME in config/general.h.
*
* While nothing in the GPL prevents you from removing all
* references to gPXE or http://etherboot.org, we prefer you
* not to do so.
*
*/
printf ( NORMAL "\n\n" PRODUCT_NAME "\n" BOLD "gPXE " VERSION
NORMAL " -- Open Source Boot Firmware -- "
CYAN "http://etherboot.org" NORMAL "\n"
"Features:" );