Skip generating care_map for non-AB updates

Bug: 186097910
Test: build a non-AB update merged target using Forrest,
      No errors reported and no META/care_map.pb is generated.

Change-Id: I74990b0aa7f46d4c4d40098a4b102f7e04166c39
This commit is contained in:
Iavor-Valentin Iftime
2022-01-27 16:29:37 +00:00
committed by Robin Lee
parent ee5ceff61e
commit b837b7170b

View File

@@ -1618,8 +1618,9 @@ def merge_target_files(temp_dir, framework_target_files, framework_item_list,
if not output_target_files:
return
# Create the merged META/care_map.bp
generate_care_map(partition_map.keys(), output_target_files_temp_dir)
# Create the merged META/care_map.pb if A/B update
if 'ab_update' in framework_misc_info_keys:
generate_care_map(partition_map.keys(), output_target_files_temp_dir)
output_zip = create_target_files_archive(output_target_files,
output_target_files_temp_dir,