Use module specific soong variable when last_optional_release is set. am: 25a6a5df1b

Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2766466

Change-Id: I82f9698c898ea8285bb0bc0b5b3f643a31424e8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Alyssa Ketpreechasawat
2023-09-28 15:22:26 +00:00
committed by Automerger Merge Worker
3 changed files with 140 additions and 2 deletions

View File

@@ -922,8 +922,7 @@ class MainlineModule:
# If the module is optional then it needs its own Soong config
# variable to allow it to be managed separately from other modules.
if (self.last_optional_release and
self.last_optional_release > build_release):
if self.last_optional_release:
config_var = ConfigVar(
namespace=f"{self.short_name}_module",
name="source_build",