Re: [edk2] [ edk2-BuildSpecification PATCH] Update build report to support -Y HASH option

2017-04-24 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu <yonghong@intel.com> 

Best Regards,
Zhu Yonghong


-Original Message-
From: Kinney, Michael D 
Sent: Tuesday, April 25, 2017 9:58 AM
To: edk2-devel@lists.01.org
Cc: Gao, Liming <liming@intel.com>; Zhu, Yonghong <yonghong@intel.com>; 
Shaw, Kevin W <kevin.w.s...@intel.com>
Subject: [ edk2-BuildSpecification PATCH] Update build report to support -Y 
HASH option

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

Cc: Liming Gao <liming@intel.com>
Cc: Yonghong Zhu <yonghong@intel.com>
Cc: Kevin W Shaw <kevin.w.s...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Kinney <michael.d.kin...@intel.com>
---
 13_build_reports/131_build_report_generation_options.md   |  4 
 13_build_reports/132_sample_launch_steps_nt32_platform.md | 11 ++-
 13_build_reports/133_output.md|  2 +-
 13_build_reports/138_module_section.md|  4 
 README.md |  1 +
 appendix_d_buildexe_command/d4_usage.md   |  7 ---
 6 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/13_build_reports/131_build_report_generation_options.md 
b/13_build_reports/131_build_report_generation_options.md
index fc32590..05d7eb2 100644
--- a/13_build_reports/131_build_report_generation_options.md
+++ b/13_build_reports/131_build_report_generation_options.md
@@ -61,6 +61,10 @@ notification invoking sequence; Also the predicted addresses 
of module image  loading, entry point and notification functions. Generating 
this report does  take a significant amount of time, more than 2x the standard 
build time.
 
+**_Module Information_**
+
+Details of the module, may include the HASH of the `.efi` file.
+
 **
 **Note:** The execution order prediction report output is an html file,  
separate from the rest of the reports. All remaining reports are generated in a 
diff --git a/13_build_reports/132_sample_launch_steps_nt32_platform.md 
b/13_build_reports/132_sample_launch_steps_nt32_platform.md
index 33ca1bf..099dc07 100644
--- a/13_build_reports/132_sample_launch_steps_nt32_platform.md
+++ b/13_build_reports/132_sample_launch_steps_nt32_platform.md
@@ -42,17 +42,18 @@ command. The following steps output the build report for 
NT32 platform:
 5. Run **build.exe -a IA32 -p Nt32Pkg\Nt32Pkg.dsc -y ReportFile.txt**
   * **-y**: This option specifies the output file name for build report.
   * **-Y**: This option specifies flags that control the type of build report.
-It must be from the set of **PCD**, **LIBRARY**, **DEPEX**, 
**BUILD_FLAGS**,
-**FLASH**, **FIXED_ADDRESS** and **EXECUTION_ORDER**. To specify more than
-one flag, repeat the option on the command line. Example of usage:
+It must be from the set of **PCD**, **LIBRARY**, **DEPEX**, **HASH**,
+**BUILD_FLAGS**, **FLASH**, **FIXED_ADDRESS** and **EXECUTION_ORDER**. To
+specify more than one flag, repeat the option on the command line. Example
+of usage:
 
 On the command line, append the following arguments:
 
 **-y report_filename.txt -Y PCD -Y FLASH -Y DEPEX**
 
 The default set of flags (if **-Y** is not specified) is: **PCD**,
-**LIBRARY**, **FLASH**, **DEPEX**, **BUILD_FLAGS** and **FIXED_ADDRESS**.
-
+**LIBRARY**, **FLASH**, **DEPEX**, **HASH**, **BUILD_FLAGS** and
+**FIXED_ADDRESS**.
 
 [^1] On Microsoft Windows 7, you must be an administrator to create a 
directory  in the root of the C: drive. It recommended that you checkout edk2 
into your diff --git a/13_build_reports/133_output.md 
b/13_build_reports/133_output.md index ce64efd..73afb0c 100644
--- a/13_build_reports/133_output.md
+++ b/13_build_reports/133_output.md
@@ -101,7 +101,7 @@ Target: DEBUG
 Output Path:s:\edk2\Build\NT32IA32
 Build Environment:  Windows-7-6.1.7601-SP1
 Build Duration: 00:01:53
-Report Contents:PCD, LIBRARY, BUILD_FLAGS, DEPEX, FLASH, FIXED_ADDRESS
+Report Contents:PCD, LIBRARY, BUILD_FLAGS, DEPEX, HASH, FLASH, 
FIXED_ADDRESS
 >==<
 Firmware Device (FD)
 FD Name:NT32
diff --git a/13_build_reports/138_module_section.md 
b/13_build_reports/138_module_section.md
index 23e039b..d4aa365 100644
--- a/13_build_reports/138_module_section.md
+++ b/13_build_reports/138_module_section.md
@@ -51,6 +51,8 @@ file GUID, module size, module build time stamp and driver 
type.
 
 The following entries are options:
 
+* If using defaults or the `HASH` flag is specified:
+  - SHA1 HASH: %SHA1 HASH% and *%Module .efi file name%
 * UEFI Specification Version: %The UEFI specification
   version:'`UEFI_SPECIFICATION_VERSION`' in INF `[Defines]` section%
 * PI Specification Version: %The PI specification
@@ -75,6 +77,7 @@ Module Name:SmbiosDxe
 Module INF Path:MdeModule\Universal\Smbi

[edk2] [ edk2-BuildSpecification PATCH] Update build report to support -Y HASH option

2017-04-24 Thread Michael Kinney
https://bugzilla.tianocore.org/show_bug.cgi?id=504

Cc: Liming Gao 
Cc: Yonghong Zhu 
Cc: Kevin W Shaw 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Kinney 
---
 13_build_reports/131_build_report_generation_options.md   |  4 
 13_build_reports/132_sample_launch_steps_nt32_platform.md | 11 ++-
 13_build_reports/133_output.md|  2 +-
 13_build_reports/138_module_section.md|  4 
 README.md |  1 +
 appendix_d_buildexe_command/d4_usage.md   |  7 ---
 6 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/13_build_reports/131_build_report_generation_options.md 
b/13_build_reports/131_build_report_generation_options.md
index fc32590..05d7eb2 100644
--- a/13_build_reports/131_build_report_generation_options.md
+++ b/13_build_reports/131_build_report_generation_options.md
@@ -61,6 +61,10 @@ notification invoking sequence; Also the predicted addresses 
of module image
 loading, entry point and notification functions. Generating this report does
 take a significant amount of time, more than 2x the standard build time.
 
+**_Module Information_**
+
+Details of the module, may include the HASH of the `.efi` file.
+
 **
 **Note:** The execution order prediction report output is an html file,
 separate from the rest of the reports. All remaining reports are generated in a
diff --git a/13_build_reports/132_sample_launch_steps_nt32_platform.md 
b/13_build_reports/132_sample_launch_steps_nt32_platform.md
index 33ca1bf..099dc07 100644
--- a/13_build_reports/132_sample_launch_steps_nt32_platform.md
+++ b/13_build_reports/132_sample_launch_steps_nt32_platform.md
@@ -42,17 +42,18 @@ command. The following steps output the build report for 
NT32 platform:
 5. Run **build.exe -a IA32 -p Nt32Pkg\Nt32Pkg.dsc -y ReportFile.txt**
   * **-y**: This option specifies the output file name for build report.
   * **-Y**: This option specifies flags that control the type of build report.
-It must be from the set of **PCD**, **LIBRARY**, **DEPEX**, 
**BUILD_FLAGS**,
-**FLASH**, **FIXED_ADDRESS** and **EXECUTION_ORDER**. To specify more than
-one flag, repeat the option on the command line. Example of usage:
+It must be from the set of **PCD**, **LIBRARY**, **DEPEX**, **HASH**,
+**BUILD_FLAGS**, **FLASH**, **FIXED_ADDRESS** and **EXECUTION_ORDER**. To
+specify more than one flag, repeat the option on the command line. Example
+of usage:
 
 On the command line, append the following arguments:
 
 **-y report_filename.txt -Y PCD -Y FLASH -Y DEPEX**
 
 The default set of flags (if **-Y** is not specified) is: **PCD**,
-**LIBRARY**, **FLASH**, **DEPEX**, **BUILD_FLAGS** and **FIXED_ADDRESS**.
-
+**LIBRARY**, **FLASH**, **DEPEX**, **HASH**, **BUILD_FLAGS** and
+**FIXED_ADDRESS**.
 
 [^1] On Microsoft Windows 7, you must be an administrator to create a directory
 in the root of the C: drive. It recommended that you checkout edk2 into your
diff --git a/13_build_reports/133_output.md b/13_build_reports/133_output.md
index ce64efd..73afb0c 100644
--- a/13_build_reports/133_output.md
+++ b/13_build_reports/133_output.md
@@ -101,7 +101,7 @@ Target: DEBUG
 Output Path:s:\edk2\Build\NT32IA32
 Build Environment:  Windows-7-6.1.7601-SP1
 Build Duration: 00:01:53
-Report Contents:PCD, LIBRARY, BUILD_FLAGS, DEPEX, FLASH, FIXED_ADDRESS
+Report Contents:PCD, LIBRARY, BUILD_FLAGS, DEPEX, HASH, FLASH, 
FIXED_ADDRESS
 >==<
 Firmware Device (FD)
 FD Name:NT32
diff --git a/13_build_reports/138_module_section.md 
b/13_build_reports/138_module_section.md
index 23e039b..d4aa365 100644
--- a/13_build_reports/138_module_section.md
+++ b/13_build_reports/138_module_section.md
@@ -51,6 +51,8 @@ file GUID, module size, module build time stamp and driver 
type.
 
 The following entries are options:
 
+* If using defaults or the `HASH` flag is specified:
+  - SHA1 HASH: %SHA1 HASH% and *%Module .efi file name%
 * UEFI Specification Version: %The UEFI specification
   version:'`UEFI_SPECIFICATION_VERSION`' in INF `[Defines]` section%
 * PI Specification Version: %The PI specification
@@ -75,6 +77,7 @@ Module Name:SmbiosDxe
 Module INF Path:MdeModule\Universal\SmbiosDxe\SmbiosDxe.inf
 File GUID:  F9D88642-0737-49BC-81B5-6889CD57D9EA
 Size:   0x7000 (28.00K)
+SHA1 HASH:  d94c3f180f25d6b562f477bc4a16b286cb66a8b6 *SmbiosDxe.efi
 Build Time Stamp:   1969-12-31 16:00:00
 Driver Type:0x7 (DRIVER)
 
@@ -91,6 +94,7 @@ Module Name:EbcDxe
 Module INF Path:MdeModule\Universal\EbcDxe\EbcDxe.inf
 File GUID:  

[edk2] [ edk2-BuildSpecification PATCH] Update build report to support -Y HASH option

2017-04-24 Thread Michael Kinney
https://bugzilla.tianocore.org/show_bug.cgi?id=504

GitHub branch for review:

* 
https://github.com/mdkinney/edk2-BuildSpecification/tree/Bugzilla_504_AddBuildReportHashFlag

GitHub word diff view of the patches in this series:

* 
https://github.com/mdkinney/edk2-BuildSpecification/commit/20ff478363aa89be7adcf64fd0ba08615354c42b?w=1

Cc: Liming Gao 
Cc: Yonghong Zhu 
Cc: Kevin W Shaw 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Kinney 

Michael Kinney (1):
  Update build report to support -Y HASH option

 13_build_reports/131_build_report_generation_options.md   |  4 
 13_build_reports/132_sample_launch_steps_nt32_platform.md | 11 ++-
 13_build_reports/133_output.md|  2 +-
 13_build_reports/138_module_section.md|  4 
 README.md |  1 +
 appendix_d_buildexe_command/d4_usage.md   |  7 ---
 6 files changed, 20 insertions(+), 9 deletions(-)

-- 
2.6.3.windows.1

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel