|
@@ -2,7 +2,7 @@
|
|
|
Driver Binding functions implementationfor for UefiPxeBc Driver.
|
|
|
|
|
|
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
|
|
|
- Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
+ Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
|
|
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
|
@@ -1242,6 +1242,10 @@ PxeBcDriverEntryPoint (
|
|
|
{
|
|
|
EFI_STATUS Status;
|
|
|
|
|
|
+ if ((PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) && (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED)) {
|
|
|
+ return EFI_UNSUPPORTED;
|
|
|
+ }
|
|
|
+
|
|
|
Status = EfiLibInstallDriverBindingComponentName2 (
|
|
|
ImageHandle,
|
|
|
SystemTable,
|
|
@@ -1301,9 +1305,15 @@ PxeBcSupported (
|
|
|
EFI_GUID *MtftpServiceBindingGuid;
|
|
|
|
|
|
if (IpVersion == IP_VERSION_4) {
|
|
|
+ if (PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) {
|
|
|
+ return EFI_UNSUPPORTED;
|
|
|
+ }
|
|
|
DhcpServiceBindingGuid = &gEfiDhcp4ServiceBindingProtocolGuid;
|
|
|
MtftpServiceBindingGuid = &gEfiMtftp4ServiceBindingProtocolGuid;
|
|
|
} else {
|
|
|
+ if (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED) {
|
|
|
+ return EFI_UNSUPPORTED;
|
|
|
+ }
|
|
|
DhcpServiceBindingGuid = &gEfiDhcp6ServiceBindingProtocolGuid;
|
|
|
MtftpServiceBindingGuid = &gEfiMtftp6ServiceBindingProtocolGuid;
|
|
|
}
|