]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/GenFds/EfiSection.py
BaseTools: Set section alignment as zero if its type is Auto
authorBob Feng <bob.c.feng@intel.com>
Tue, 22 Sep 2020 11:27:54 +0000 (19:27 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 25 Sep 2020 02:27:35 +0000 (02:27 +0000)
commitd8be01079b3c7b554ac8126e97e73fba8894e519
treeb540e84262292dabdb5abe4afdeb7c6e356b1868
parent3a7a6761143a4840faea0bd84daada3ac0f1bd22
BaseTools: Set section alignment as zero if its type is Auto

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

Currently, the build tool try to read the section alignment
from efi file if the section alignment type is Auto.
If there is no efi generated, the section alignment will
be set to zero. This behavior causes the Makefile to be different
between the full build and the incremental build.

Since the Genffs can auto get the section alignment from
efi file during Genffs procedure, the build tool can just set section
alignment as zero. This change can make the autogen makefile
consistent for the full build and the incremental build.

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: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Yuwei Chen<yuwei.chen@intel.com>
BaseTools/Source/Python/GenFds/DataSection.py
BaseTools/Source/Python/GenFds/EfiSection.py