回复: Non-reproducible binaries generated by GenFw


gaoliming
 

RELEASE_*_*_GENFW_FLAGS = -z means this option is applied on RELEASE build.

*_*_*_GANFW_FLAGS = -z can apply this option to all target builds.

When you build, you can build -j build.log. Then, build log will dump into build.log file. You can search GenFw command in build.log and check whether GenFw has -e option.

Thanks
Liming

-----邮件原件-----
发件人: Ross Burton <ross@burtonini.com>
发送时间: 2021年3月12日 0:16
收件人: gaoliming <gaoliming@byosoft.com.cn>
抄送: discuss@edk2.groups.io; bob.c.feng@intel.com; yuwei.chen@intel.com
主题: Re: Non-reproducible binaries generated by GenFw

On Thu, 11 Mar 2021 at 04:44, gaoliming <gaoliming@byosoft.com.cn> wrote:

Ross:
I verify -z option. It can remove DEBUG entry and make sure the
generated image be reproduced.

PlatformPkg.dsc:

[BuildOptions]
RELEASE_*_*_GENFW_FLAGS = -z
I tried adding that to ShellPkg.dsc but I can't seem to make the value
actually get into the build. Is there anything else I need to do
apart from:

+++ b/ShellPkg/ShellPkg.dsc
@@ -154,3 +154,4 @@
[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
+ RELEASE_*_*_GENFW_FLAGS = -z

Thanks,
Ross

Join discuss@edk2.groups.io to automatically receive all group messages.