]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Remove the redundant __FLEXIBLE_SIZE from PcdValueInit.c
authorBob Feng <bob.c.feng@intel.com>
Tue, 15 Mar 2022 12:16:54 +0000 (20:16 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 26 Mar 2022 02:32:06 +0000 (02:32 +0000)
commit3115377bf0c50780dc9b05e33847fcd563d4ebb2
treed9241cc57b3bd8f336864711e7b0e589be17de2c
parentbf9230a9f3dde065c3c8b4175ccd32e44e8f0362
BaseTools: Remove the redundant __FLEXIBLE_SIZE from PcdValueInit.c

For the multiple SKU case, basetools generates multiple redundant
__FLEXIBLE_SIZE statement that is from the same line in dsc file.

This behavior causes the generated PcdValueInit.c file to have huge size,
and the compilation time is very long.

This patch is going to fix this issue.

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