]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Adjust StructurePcd List Order.
authorChen, Christine <Yuwei.Chen@intel.com>
Thu, 17 Dec 2020 00:53:48 +0000 (08:53 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Mar 2021 03:14:35 +0000 (03:14 +0000)
commitdd6c0a0ba3a042808cc54a4db27ff27089c2d766
treec8d15bbed67674307933c917fa5d3195b2ae8f50
parent8c61f1934d473e9477fecc38ec1b9771f9c9d23e
BaseTools: Adjust StructurePcd List Order.

Currently StructurePcd.dsc have the list order issue. For a Pcd
with several elements, the list indexs are used to distinguish
these elements like this:

PcdName.name.offset_name[0]|0x0
PcdName.name.offset_name[10]|0x0
PcdName.name.offset_name[11]|0x0
...
PcdName.name.offset_name[2]|0x0
...

However, the index is not strictly sorted by decimal numerical order,
which is not user friendly. One more sort rule for index is added to
the current rules to support for decimal numerical order in this patch.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Scripts/ConvertFceToStructurePcd.py