diff options
author | Dan Albert <danalbert@google.com> | 2015-01-22 22:00:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-22 22:00:37 +0000 |
commit | d280675405e605d47c74c037b0d2b4f06826ed4d (patch) | |
tree | 446ceb69136857319be6b1efa824a64662c2e005 /tools | |
parent | 53df4bfce81d8a6cfd4b5d991f5299f18dc4c958 (diff) | |
parent | 64390f940c321201fb8a866e80f44ced11ff07c8 (diff) | |
download | bionic-d280675405e605d47c74c037b0d2b4f06826ed4d.zip bionic-d280675405e605d47c74c037b0d2b4f06826ed4d.tar.gz bionic-d280675405e605d47c74c037b0d2b4f06826ed4d.tar.bz2 |
Merge "Add support for building other architectures."
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bionicbb/gmail_listener.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/bionicbb/gmail_listener.py b/tools/bionicbb/gmail_listener.py index f4936d6..0cd31c9 100644 --- a/tools/bionicbb/gmail_listener.py +++ b/tools/bionicbb/gmail_listener.py @@ -140,7 +140,7 @@ def clean_project(gerrit_info, dry_run): return True -def build_project(gerrit_info, dry_run): +def build_project(gerrit_info, dry_run, lunch_target=None): project_to_jenkins_map = { 'platform/bionic': 'bionic-presubmit', 'platform/build': 'bionic-presubmit', @@ -187,6 +187,8 @@ def build_project(gerrit_info, dry_run): 'CHANGE_ID': change_id, 'PROJECT': project_path } + if lunch_target is not None: + params['LUNCH_TARGET'] = lunch_target if not dry_run: job = jenkins[build].invoke(build_params=params) url = job.get_build().baseurl @@ -249,6 +251,19 @@ def handle_comment(gerrit_info, body, dry_run): command_map = { 'clean': lambda: clean_project(gerrit_info, dry_run), 'retry': lambda: build_project(gerrit_info, dry_run), + + 'arm': lambda: build_project(gerrit_info, dry_run, + lunch_target='aosp_arm-eng'), + 'aarch64': lambda: build_project(gerrit_info, dry_run, + lunch_target='aosp_arm64-eng'), + 'mips': lambda: build_project(gerrit_info, dry_run, + lunch_target='aosp_mips-eng'), + 'mips64': lambda: build_project(gerrit_info, dry_run, + lunch_target='aosp_mips64-eng'), + 'x86': lambda: build_project(gerrit_info, dry_run, + lunch_target='aosp_x86-eng'), + 'x86_64': lambda: build_project(gerrit_info, dry_run, + lunch_target='aosp_x86_64-eng'), } def handle_unknown_command(): |