diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-08-03 17:50:37 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-08-03 17:50:38 +0000 |
commit | f0b53115aeb96159ddb493dbe19b587ce612ac07 (patch) | |
tree | 80a2503b5165a7545437d3085f899d7b13447c61 /libc/tools/genversion-scripts.py | |
parent | d7d4937bdc5eaf2f96599c384c12adedbb7ea90a (diff) | |
parent | 37ba9052b0a20499bd88e4ad4f3b834300637912 (diff) |
Merge changes Iecc1b127,Ib67f07db,I7672d34c
* changes:
Run genversion-scripts.py.
Only check arch tag if we have *any* arch tags.
Add pylintrc.
Diffstat (limited to 'libc/tools/genversion-scripts.py')
-rwxr-xr-x | libc/tools/genversion-scripts.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libc/tools/genversion-scripts.py b/libc/tools/genversion-scripts.py index e6c8053f5..53f4db4d5 100755 --- a/libc/tools/genversion-scripts.py +++ b/libc/tools/genversion-scripts.py @@ -33,6 +33,15 @@ bionic_libc_root = os.path.join(os.environ["ANDROID_BUILD_TOP"], "bionic/libc") warning = "Generated by %s. Do not edit." % script_name +def has_arch_tags(tags): + for arch in all_arches: + if arch in tags: + return True + if 'nobrillo' in tags: + return True + return False + + class VersionScriptGenerator(object): def run(self): @@ -52,7 +61,7 @@ class VersionScriptGenerator(object): index = line.find("#") if index != -1: tags = line[index+1:].split() - if arch not in tags: + if arch not in tags and has_arch_tags(tags): continue if brillo and "nobrillo" in tags: has_nobrillo = True |