mirror of
https://github.com/ipxe/ipxe
synced 2026-02-02 07:52:48 +03:00
[config] Make PXE stack a compile-time option
For extremely tight space requirements and specific applications, it is sometimes desirable to create gPXE images that cannot provide the PXE API functionality to client programs. Add a configuration header option, PXE_STACK, that can be removed to remove this stack. Also add PXE_MENU to control the PXE boot menu, which most uses of gPXE do not need. Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
committed by
Marty Connor
parent
9e9cc8c60f
commit
fa4aec8f03
@@ -151,7 +151,7 @@ static int netboot ( struct net_device *netdev ) {
|
||||
buf, sizeof ( buf ) );
|
||||
pxe_discovery_control =
|
||||
fetch_uintz_setting ( NULL, &pxe_discovery_control_setting );
|
||||
if ( ( strcmp ( buf, "PXEClient" ) == 0 ) &&
|
||||
if ( ( strcmp ( buf, "PXEClient" ) == 0 ) && pxe_menu_boot != NULL &&
|
||||
setting_exists ( NULL, &pxe_boot_menu_setting ) &&
|
||||
( ! ( ( pxe_discovery_control & PXEBS_SKIP ) &&
|
||||
setting_exists ( NULL, &filename_setting ) ) ) ) {
|
||||
|
||||
Reference in New Issue
Block a user