summaryrefslogtreecommitdiff
path: root/tools/warn/java_warn_patterns.py
diff options
context:
space:
mode:
author Yo Chiang <yochiang@google.com> 2020-05-10 19:28:31 +0800
committer Yo Chiang <yochiang@google.com> 2020-05-13 20:42:07 +0800
commitb85a140c3c0f7b2ff2123acd12fccac12ea3891a (patch)
tree2029dfbfa8bae30af1918114e7686e3cc64694f0 /tools/warn/java_warn_patterns.py
parente9ab85956f38c3bcdbfd273048bed51e52a9616f (diff)
Refactor bitness resolving logic of product-installed-files
* Add get-modules-for-2nd-arch helper function Add a generic function to retrieve second arch variant module names for TARGET, HOST and HOST_CROSS modules. It uses ALL_MODULES.<module>.FOR_2ND_ARCH to make sure that we are really returning second arch variant module names. Unlike `get-32-bit-modules` this function doesn't sort its output so it potentially saves us a tiny bit of makefile parsing time. * Add resolve-bitness-for-modules Factor out the common bitness-resolving logic of `product-installed-files` and `host-installed-files` to a helper function. When resolving HOST_CROSS modules, the primary arch is 32-bit and secondary arch is 64-bit. Bug: 155869107 Test: TH Test: check the value of product_target_FILES and product_host_FILES Change-Id: I0fdea2e8c55e5b8edf960dbf5e17bb789abb0bf8
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions