Merge "Add sdk modules list in build artifacts root." am: b0f9a59a58
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2625854 Change-Id: Ie69cb3523f817e8be2445860348c9d2e60d891fe Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1281,6 +1281,13 @@ class SdkDistProducer:
|
||||
shutil.copy(sdk_gantry_metadata_json_path,
|
||||
sdk_dist_gantry_metadata_json_path)
|
||||
|
||||
def dist_generate_sdk_supported_modules_file(self, modules):
|
||||
sdk_modules_file = os.path.join(self.dist_dir, "sdk-modules.txt")
|
||||
with open(sdk_modules_file, "w", encoding="utf8") as file:
|
||||
for module in modules:
|
||||
if module in MAINLINE_MODULES:
|
||||
file.write(aosp_to_google_name(module.apex) + "\n")
|
||||
|
||||
def populate_unbundled_dist(self, build_release, modules, snapshots_dir):
|
||||
build_release_dist_dir = os.path.join(self.mainline_sdks_dir,
|
||||
build_release.sub_dir)
|
||||
@@ -1544,6 +1551,7 @@ def main(args):
|
||||
modules += PLATFORM_SDKS_FOR_MAINLINE
|
||||
|
||||
producer = create_producer(args.tool_path)
|
||||
producer.dist_generate_sdk_supported_modules_file(modules)
|
||||
producer.produce_dist(modules, build_releases)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user