You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subject: [PATCH] Merged PR 11601893: add build flags to prevent stripping and
5
+
post processing
5
6
7
+
## Description:
8
+
Add build flags to prevent stripping and post processing of binary after building. This is useful to fit in to different package build systems.
9
+
10
+
----
11
+
#### AI description (iteration 1)
12
+
#### PR Classification
13
+
New feature
14
+
15
+
#### PR Summary
16
+
This pull request introduces build flags to control binary stripping and FIPS postprocessing.
17
+
- `CMakeLists.txt`: Added options `SYMCRYPT_STRIP_BINARY` and `SYMCRYPT_FIPS_POSTPROCESS` with default values set to `ON`.
18
+
- `scripts/build.py`: Added command-line arguments `--no-strip-binary` and `--no-fips-postprocess` to control the new build options.
19
+
- `BUILD.md`: Updated documentation to include the new build options.
20
+
- `modules/linux/common/ModuleCommon.cmake`: Modified conditions to respect the new build flags for stripping and FIPS postprocessing.
6
21
---
7
22
BUILD.md | 2 ++
8
23
CMakeLists.txt | 14 ++++++++++++++
@@ -11,10 +26,10 @@ Subject: [PATCH] add build flags to prevent stripping and post processing
11
26
4 files changed, 26 insertions(+), 2 deletions(-)
12
27
13
28
diff --git a/BUILD.md b/BUILD.md
14
-
index e7f0618..a4984da 100644
29
+
index f6c781d..e8eaa88 100644
15
30
--- a/BUILD.md
16
31
+++ b/BUILD.md
17
-
@@ -63,6 +63,8 @@ and building the Linux modules with FIPS integrity checks.
32
+
@@ -74,6 +74,8 @@ and building the Linux modules with FIPS integrity checks.
18
33
* To cross-compile for Linux ARM64, you must also use `--toolchain=cmake-configs/Toolchain-Clang-ARM64.cmake`
19
34
* `-DSYMCRYPT_USE_ASM=<ON|OFF>` to choose whether to use assembly optimizations. Defaults to `ON`.
20
35
* `-DSYMCRYPT_FIPS_BUILD=<ON|OFF>` to choose whether to enable FIPS self-tests in the SymCrypt shared object module. Defaults to `ON`. Currently only affects Linux builds.
@@ -24,11 +39,11 @@ index e7f0618..a4984da 100644
24
39
1. `cmake --build bin`
25
40
* Optionally, for a release build on Windows, specify `--config Release`
parser_cmake.add_argument("--cxx", type = str, help = "Specify the C++ compiler to use. If not provided, uses platform default.")
99
114
parser_cmake.add_argument("--no-asm", action = "store_false", dest = "asm", help = "Disable handwritten ASM optimizations.", default = True)
100
115
parser_cmake.add_argument("--no-fips", action = "store_false", dest = "fips", help = "Disable FIPS selftests and postprocessing of binary. Currently only affects Linux targets.", default = True)
Subject: [PATCH] Merged PR 11618838: add parameter to version script to print
5
+
the commit info environment variables
6
+
7
+
Add parameter to version script to print the commit info environment variables. This makes it easier to get those right for builds based on the source tarball rather than from a git clone.
8
+
9
+
----
10
+
#### AI description (iteration 1)
11
+
#### PR Classification
12
+
New feature
13
+
14
+
#### PR Summary
15
+
Added a new parameter to the version script to print commit information as environment variables.
16
+
- `scripts/version.py`: Introduced `--commit-info` argument to print commit hash and timestamp as environment variables. Added `print_commit_info` function to handle this new feature.
parser = argparse.ArgumentParser(description = "Versioning helper script for SymCrypt.")
44
+
+ parser.add_argument("--no-print-version-number", dest = "print_version_number", help = "Do not print the version number", action = "store_false", default = True)
45
+
group = parser.add_mutually_exclusive_group()
46
+
group.add_argument("-b", "--build-info", help = "Generate buildInfo.h", action = "store_true")
47
+
group.add_argument("--devops", help = "Format output to set Azure DevOps variables", action = "store_true")
48
+
+ group.add_argument("--commit-info",
49
+
+ help = "Format commit info as environment variables that would override the commit hash and timestamp, which can then be used when building from the source tarball rather than a git clone.",
50
+
+ action = "store_true")
51
+
52
+
args = parser.parse_args()
53
+
54
+
# Parse the version information from the SymCrypt headers
0 commit comments