Commit Graph

8 Commits

Author SHA1 Message Date
LaMont Jones
4ba41f0eff all_flags.pb: Properly handle intermediate files
Bug: 343203557
Test: manual, TH
Ignore-AOSP-First: cherry-pick
Merged-In: I9a4ef39b0c2a641ccd996187ce5f7629520dffc0
Change-Id: I9a4ef39b0c2a641ccd996187ce5f7629520dffc0
2024-05-28 16:23:34 -07:00
LaMont Jones
a2cbf72b2a Generate specific message for build flag declarations artifact
Many of the fields in `flag_artifact` are not valid in
the all_build_flag_definitions artifact.

Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: I00eab1ef76f67f7db2118a6fc0d5771e3dd39fbb
Change-Id: I00eab1ef76f67f7db2118a6fc0d5771e3dd39fbb
2024-05-28 16:21:33 -07:00
LaMont Jones
3ca687a157 Add Factory methods, WriteFormattedMessage
Adds:
 - FlagArtifactFactory()
 - FlagArtifactsFactory()
 - WriteFormattedMessage()

Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: I8b3c1e1e7ea3e52e9e7e8b1f8162fedd3e83dd33
Change-Id: I8b3c1e1e7ea3e52e9e7e8b1f8162fedd3e83dd33
2024-05-28 16:20:20 -07:00
LaMont Jones
73bb4e1e4f Write per-partition build_flags.json
Create build_flags_{partition}-{TARGET_PRODUCT}-{TARGET_RELEASE}.json
in {OUT_DIR}/soong/release-config.

Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: I708c37f9b1216b4283886c98cacaf66bfcd28143
Change-Id: I708c37f9b1216b4283886c98cacaf66bfcd28143
2024-05-08 18:45:59 +00:00
LaMont Jones
4f3ce4919f add flag_value.redacted
When set, this removes all traces of the flag from the release config.

Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: Iab39d06e134bfc020ba4875c1b8e89c5cdf18924
Change-Id: Iab39d06e134bfc020ba4875c1b8e89c5cdf18924
2024-05-08 18:45:55 +00:00
LaMont Jones
f1af88b06a release_config: cleanup how we emit results
- Allow each of the formats (json, pb, textproto) to be individually
   controlled.
 - Include product and release in the name of the aritfact.

Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: Ia08e7224200a48994bea882a61b8199d53576d38
Change-Id: Ia08e7224200a48994bea882a61b8199d53576d38
2024-05-08 18:45:49 +00:00
LaMont Jones
f63c31b304 Print a warning on redundant overrides
Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: I35bff9d6751e9aa304e4c2d7e24b9a44a3994264
Change-Id: I35bff9d6751e9aa304e4c2d7e24b9a44a3994264
2024-05-08 18:45:47 +00:00
LaMont Jones
81ad0b898b release_config: make the code more sharable
This will allow the `build-flag` command to use release_config_lib code.

Bug: 328495189
Test: manual
Ignore-AOSP-First: cherry-pick
Merged-In: If068597b1d68c52c941788931997b7f77c73d2b3
Change-Id: If068597b1d68c52c941788931997b7f77c73d2b3
2024-05-08 18:45:44 +00:00