OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from slave.recipe_configs_util import config_item_context, ConfigGroup | 5 from slave.recipe_configs_util import config_item_context, ConfigGroup |
6 from slave.recipe_configs_util import Single, List, Static | 6 from slave.recipe_configs_util import Single, List, Static |
7 | 7 |
8 def BaseConfig(USE_MIRROR=False): | 8 def BaseConfig(USE_MIRROR=False): |
9 return ConfigGroup( | 9 return ConfigGroup( |
10 lunch_flavor = Single(basestring), | 10 lunch_flavor = Single(basestring), |
11 repo = ConfigGroup( | 11 repo = ConfigGroup( |
12 url = Single(basestring), | 12 url = Single(basestring), |
13 branch = Single(basestring), | 13 branch = Single(basestring), |
14 sync_flags = List(basestring), | 14 sync_flags = List(basestring), |
15 ), | 15 ), |
16 USE_MIRROR = Static(bool(USE_MIRROR)), | 16 USE_MIRROR = Static(bool(USE_MIRROR)), |
17 ) | 17 ) |
18 | 18 |
19 config_ctx = config_item_context( | 19 config_ctx = config_item_context( |
20 BaseConfig, | 20 BaseConfig, |
21 {'USE_MIRROR': (False,)}, | 21 {'USE_MIRROR': (False,)}, |
22 'android') | 22 'android') |
23 | 23 |
24 @config_ctx() | 24 @config_ctx() |
25 def AOSP(c): | 25 def AOSP(c): |
26 c.lunch_flavor = 'full-eng' | 26 c.lunch_flavor = 'full-eng' |
27 c.repo.url = 'https://android.googlesource.com/platform/manifest' | 27 c.repo.url = 'https://android.googlesource.com/platform/manifest' |
28 c.repo.branch = 'android-4.3_r2.1' | 28 c.repo.branch = 'android-4.3_r2.3' |
29 c.repo.sync_flags = ['-j16', '-d', '-f'] | 29 c.repo.sync_flags = ['-j16', '-d', '-f'] |
OLD | NEW |