mirror of https://github.com/acidanthera/audk.git
[PATHC] ShellPkg: control code flow with a PCD
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16342 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4d3b9d332d
commit
9b58952287
|
@ -651,13 +651,6 @@ DevPathSerialIScsi (
|
||||||
IN DEVICE_CONSIST_MAPPING_INFO *MappingItem
|
IN DEVICE_CONSIST_MAPPING_INFO *MappingItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
///@todo make this a PCD
|
|
||||||
//
|
|
||||||
// As Csd of ISCSI node is quite long, we comment
|
|
||||||
// the code below to keep the consistent mapping
|
|
||||||
// short. Uncomment if you really need it.
|
|
||||||
//
|
|
||||||
/*
|
|
||||||
ISCSI_DEVICE_PATH *IScsi;
|
ISCSI_DEVICE_PATH *IScsi;
|
||||||
UINT8 *IScsiTargetName;
|
UINT8 *IScsiTargetName;
|
||||||
CHAR16 *TargetName;
|
CHAR16 *TargetName;
|
||||||
|
@ -667,6 +660,7 @@ DevPathSerialIScsi (
|
||||||
ASSERT(DevicePathNode != NULL);
|
ASSERT(DevicePathNode != NULL);
|
||||||
ASSERT(MappingItem != NULL);
|
ASSERT(MappingItem != NULL);
|
||||||
|
|
||||||
|
if (PcdGetBool(PcdShellDecodeIScsiMapNames)) {
|
||||||
IScsi = (ISCSI_DEVICE_PATH *) DevicePathNode;
|
IScsi = (ISCSI_DEVICE_PATH *) DevicePathNode;
|
||||||
AppendCSDNum (MappingItem, IScsi->NetworkProtocol);
|
AppendCSDNum (MappingItem, IScsi->NetworkProtocol);
|
||||||
AppendCSDNum (MappingItem, IScsi->LoginOption);
|
AppendCSDNum (MappingItem, IScsi->LoginOption);
|
||||||
|
@ -684,7 +678,7 @@ DevPathSerialIScsi (
|
||||||
FreePool (TargetName);
|
FreePool (TargetName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
[Pcd.common]
|
[Pcd.common]
|
||||||
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel ## ALWAYS_CONSUMED
|
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel ## ALWAYS_CONSUMED
|
||||||
gEfiShellPkgTokenSpaceGuid.PcdShellMapNameLength ## ALWAYS_CONSUMED
|
gEfiShellPkgTokenSpaceGuid.PcdShellMapNameLength ## ALWAYS_CONSUMED
|
||||||
|
gEfiShellPkgTokenSpaceGuid.PcdShellDecodeIScsiMapNames ## SOMETIMES_CONSUMED
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
gEfiUnicodeCollation2ProtocolGuid
|
gEfiUnicodeCollation2ProtocolGuid
|
||||||
|
|
|
@ -128,3 +128,7 @@
|
||||||
|
|
||||||
## Unicode string of the shell supplier
|
## Unicode string of the shell supplier
|
||||||
gEfiShellPkgTokenSpaceGuid.PcdShellSupplier|L"EDK II"|VOID*|0x00000010
|
gEfiShellPkgTokenSpaceGuid.PcdShellSupplier|L"EDK II"|VOID*|0x00000010
|
||||||
|
|
||||||
|
## Do iSCSI decode for map names.
|
||||||
|
# This is disabled by default due to the length of generated strings
|
||||||
|
gEfiShellPkgTokenSpaceGuid.PcdShellDecodeIScsiMapNames|FALSE|BOOLEAN|0x00000012
|
||||||
|
|
Loading…
Reference in New Issue