Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: f4dfec6ca1ef4354307b8ca8005affe17fc64360
      
https://github.com/tianocore/edk2/commit/f4dfec6ca1ef4354307b8ca8005affe17fc64360
  Author: Li, Yi1 <yi1...@intel.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M BaseTools/Source/Python/AutoGen/AutoGenWorker.py
    M BaseTools/Source/Python/AutoGen/DataPipe.py
    M BaseTools/Source/Python/Workspace/DscBuildData.py
    M BaseTools/Source/Python/Workspace/InfBuildData.py
    M BaseTools/Source/Python/Workspace/WorkspaceCommon.py

  Log Message:
  -----------
  BaseTools: Move gPlatformFinalPcd to Datapipe and optimize size

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3828

This is a bugfix of
bf9230a9f3dde065c3c8b4175ccd32e44e8f0362.

1.In the current code, gPlatformFinalPcd will save all PCDs used at
whole compile process, which wastes runtime memory and is unnecessary.

This patch makes gPlatformFinalPcd save only the PCDes which are
assigned in the DSC file, and the PCD that has not been assigned will
use the default value in DEC.

2.During the compilation process, gPlatformFinalPcd may be lost, and
the current code cannot selectively assign PCD in DSC by specifying ARCH.

This patch moves gPlatformFinalPcd into datapipe and modifies the
assignment logicto fix this.

Cc: Bob Feng <bob.c.f...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>

Signed-off-by: yi1 li <yi1...@intel.com>
Reviewed-by: Bob Feng <bob.c.f...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to