mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 05:56:34 +00:00
Merge "bump.py: modify the phony system_compatibility_matrix.xml module" into main am: 36470a4400
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3261369 Change-Id: I226e868c106c545d289aeac1a33dd67fe4ab6ddf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -111,6 +111,25 @@ class Bump(object):
|
||||
"kernel_configs", "-a", " ".join(next_kernel_configs), android_bp
|
||||
])
|
||||
|
||||
# update the SYSTEM_MATRIX_DEPS variable and the phony module's
|
||||
# product_variables entry.
|
||||
lines = []
|
||||
with open(android_bp) as f:
|
||||
for line in f:
|
||||
if f" \"{self.device_module_name}\",\n" in line:
|
||||
lines.append(f" \"{self.current_module_name}\",\n")
|
||||
|
||||
if f" \"{self.current_module_name}\",\n" in line:
|
||||
lines.append(f" \"{self.next_module_name}\",\n")
|
||||
else:
|
||||
lines.append(line)
|
||||
|
||||
with open(android_bp, "w") as f:
|
||||
f.write("".join(lines))
|
||||
|
||||
|
||||
# This Android.mk file may be deprecated soon and the functionality is
|
||||
# replaced by the soong phony module system_compatibility_matrix.xml.
|
||||
def edit_android_mk(self):
|
||||
android_mk = self.interfaces_dir / "compatibility_matrices/Android.mk"
|
||||
lines = []
|
||||
|
||||
Reference in New Issue
Block a user