[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:
@@ -199,6 +199,39 @@ print_pci_busdevfn:
|
||||
ret
|
||||
.size print_pci_busdevfn, . - print_pci_busdevfn
|
||||
|
||||
/*****************************************************************************
|
||||
* Utility function: clear current line
|
||||
*
|
||||
* Parameters:
|
||||
* %ds:di : output buffer (or %di=0 to print to console)
|
||||
* Returns:
|
||||
* %ds:di : next character in output buffer (if applicable)
|
||||
*****************************************************************************
|
||||
*/
|
||||
.section ".prefix.lib"
|
||||
.code16
|
||||
.globl print_kill_line
|
||||
print_kill_line:
|
||||
/* Preserve registers */
|
||||
pushw %ax
|
||||
pushw %cx
|
||||
/* Print CR */
|
||||
movb $'\r', %al
|
||||
call print_character
|
||||
/* Print 79 spaces */
|
||||
movb $' ', %al
|
||||
movw $79, %cx
|
||||
1: call print_character
|
||||
loop 1b
|
||||
/* Print CR */
|
||||
movb $'\r', %al
|
||||
call print_character
|
||||
/* Restore registers and return */
|
||||
popw %cx
|
||||
popw %ax
|
||||
ret
|
||||
.size print_kill_line, . - print_kill_line
|
||||
|
||||
/****************************************************************************
|
||||
* pm_call (real-mode near call)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user