summaryrefslogtreecommitdiff
path: root/scripts/construct_context.py
diff options
context:
space:
mode:
authorUlya Trafimovich <skvadrik@google.com>2021-03-12 12:12:12 +0000
committerUlya Trafimovich <skvadrik@google.com>2021-03-22 10:49:31 +0000
commitbd6b076f8062432ff955614fda7d2c9222025b36 (patch)
tree29ec594f909a5a7af66dd0f92d96d6fd3c2cc12b /scripts/construct_context.py
parent3d5f6a1034d0c2e864d9819b9dd4eab57cdb09be (diff)
Allow modules that don't run verify_uses_libraries to have nonempty CLC.
There are modules that would have passed verify_uses_library check, but don't run it for some reason (the check gets enabled either with an explicit setting, or if the module has nonempty <ues-library> lists in the build properties). Previously all such modules were assumed to have empty CLC, which is not always true. In particular, compatibility libraries are ignored, which affected e.g. Calendar and messaging apps. This CL gives such apps a chance to have correct CLC. The goal for the future is to enforce verify_library_check by default. Bug: 132357300 Test: lunch aosp_cf_x86_64_phone-userdebug && m Change-Id: Iea3be0fc9d7775c52950848b5a3fd3b7fcd36c53
Diffstat (limited to 'scripts/construct_context.py')
-rwxr-xr-xscripts/construct_context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/construct_context.py b/scripts/construct_context.py
index 6f9edc429..f0658baa2 100755
--- a/scripts/construct_context.py
+++ b/scripts/construct_context.py
@@ -66,9 +66,9 @@ def main():
if not args.sdk:
raise SystemExit('target sdk version is not set')
if not args.host_contexts:
- raise SystemExit('host context is not set')
+ args.host_contexts = []
if not args.target_contexts:
- raise SystemExit('target context is not set')
+ args.target_contexts = []
print(construct_contexts(args))