diff options
author | Michael Brown | 2008-10-31 20:10:28 +0100 |
---|---|---|
committer | Michael Brown | 2008-10-31 20:10:28 +0100 |
commit | 5e6b82104df452bb7f6d2feed67a1d2079ddc4ce (patch) | |
tree | 40df662f3546833d506578f76009b18d49476d64 /src/core/main.c | |
parent | [phantom] Assume one net device per PCI function (diff) | |
download | ipxe-5e6b82104df452bb7f6d2feed67a1d2079ddc4ce.tar.gz ipxe-5e6b82104df452bb7f6d2feed67a1d2079ddc4ce.tar.xz ipxe-5e6b82104df452bb7f6d2feed67a1d2079ddc4ce.zip |
[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.
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c index d5892261..aaf8111b 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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:" ); |