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: I3cdb60f4444f2c1a9be565aecb0fd8e1193ddc9c
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:16:40 +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",