diff options
author | 2024-12-13 16:40:02 -0800 | |
---|---|---|
committer | 2024-12-13 16:40:02 -0800 | |
commit | fe976c4fb2540b871ccae39b0dad430404265590 (patch) | |
tree | bb4859da3f754b0841bb556787611477c07adb03 /scripts | |
parent | 32d38a0eae5a7fcae8879007892a617b3b273269 (diff) | |
parent | 57cd0fd6a73a57ddb0210ca79e726c383e17e2e5 (diff) |
Merge "Normalize filepath comment for gen files in build.prop" into main am: 71340584f8 am: 57cd0fd6a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3412618
Change-Id: Ife3063ab0cad6d4364982bac65f0095650fdc535
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gen_build_prop.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/gen_build_prop.py b/scripts/gen_build_prop.py index b2c63a358..d98f01476 100644 --- a/scripts/gen_build_prop.py +++ b/scripts/gen_build_prop.py @@ -108,7 +108,7 @@ def parse_args(): def generate_common_build_props(args): print("####################################") - print("# from generate_common_build_props") + print("# from generate-common-build-props") print("# These properties identify this partition image.") print("####################################") @@ -246,9 +246,15 @@ def generate_build_info(args): print(f"# end build properties") def write_properties_from_file(file): + # Make and Soong use different intermediate files to build vendor/build.prop. + # Although the sysprop contents are same, the absolute paths of these + # intermediate files are different. + # Print the filename for the intermediate files (files in OUT_DIR). + # This helps with validating mk->soong migration of android partitions. + filename = os.path.basename(file.name) if file.name.startswith(os.environ.get("OUT_DIR")) else file.name print() print("####################################") - print(f"# from {file.name}") + print(f"# from {filename}") print("####################################") print(file.read(), end="") |