mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
NetworkPkg: PXE boot option build flag
Currently, the only way to disable PXE boot options is to change the PCD variables PcdIPv4PXESupport and PcdIPv6PXESupport in the source code or use the "--pcd" option in the build script. Other boot options such as HTTP or iSCSI can be disabled using the -D<option> flag. NETWORK_PXE_BOOT_ENABLE will add a consistent way to disable PXE booting. This is the third and final part of a series of patches to enable the NETWORK_PXE_BOOT_ENABLE build flag. At this point, the flag will be able to disable PXE functionality. Signed-off-by: Alexander Gryanko <xpahos@gmail.com>
This commit is contained in:
parent
087a47688c
commit
35706d43c5
@ -39,7 +39,10 @@
|
||||
!endif
|
||||
|
||||
INF NetworkPkg/TcpDxe/TcpDxe.inf
|
||||
INF NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||
|
||||
!if $(NETWORK_PXE_BOOT_ENABLE) == TRUE
|
||||
INF NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||
!endif
|
||||
|
||||
!if $(NETWORK_TLS_ENABLE) == TRUE
|
||||
INF NetworkPkg/TlsDxe/TlsDxe.inf
|
||||
|
@ -41,7 +41,10 @@
|
||||
!endif
|
||||
|
||||
NetworkPkg/TcpDxe/TcpDxe.inf
|
||||
NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||
|
||||
!if $(NETWORK_PXE_BOOT_ENABLE) == TRUE
|
||||
NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
||||
!endif
|
||||
|
||||
!if $(NETWORK_TLS_ENABLE) == TRUE
|
||||
NetworkPkg/TlsDxe/TlsDxe.inf
|
||||
|
@ -21,6 +21,7 @@
|
||||
# DEFINE NETWORK_ISCSI_ENABLE = FALSE
|
||||
# DEFINE NETWORK_ISCSI_MD5_ENABLE = TRUE
|
||||
# DEFINE NETWORK_VLAN_ENABLE = TRUE
|
||||
# DEFINE NETWORK_PXE_BOOT_ENABLE = TRUE
|
||||
#
|
||||
# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
||||
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
|
||||
@ -137,6 +138,13 @@
|
||||
DEFINE NETWORK_ISCSI_MD5_ENABLE = TRUE
|
||||
!endif
|
||||
|
||||
!ifndef NETWORK_PXE_BOOT_ENABLE
|
||||
#
|
||||
# This flag is to enable or disable PXE boot feature.
|
||||
#
|
||||
DEFINE NETWORK_PXE_BOOT_ENABLE = TRUE
|
||||
!endif
|
||||
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
#
|
||||
# Check the flags to see if there is any conflict.
|
||||
|
@ -14,7 +14,7 @@
|
||||
#
|
||||
# IPv4 and IPv6 PXE Boot support.
|
||||
#
|
||||
!if $(NETWORK_ENABLE) == TRUE
|
||||
!if ($(NETWORK_ENABLE) == TRUE) AND ($(NETWORK_PXE_BOOT_ENABLE) == TRUE)
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
|
||||
gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
|
||||
!endif
|
||||
|
@ -83,5 +83,6 @@
|
||||
"BLD_*_NETWORK_HTTP_ENABLE": "FALSE",
|
||||
"BLD_*_NETWORK_HTTP_BOOT_ENABLE": "TRUE",
|
||||
"BLD_*_NETWORK_ISCSI_ENABLE": "TRUE",
|
||||
"BLD_*_NETWORK_PXE_BOOT_ENABLE": "TRUE",
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user