|
7 | 7 | from typing import Dict
|
8 | 8 | from typing import Union
|
9 | 9 |
|
10 |
| -GENERATORS: Dict[str, Union[str, Dict, list]] = collections.OrderedDict([ |
11 |
| - # - command: build command line |
12 |
| - # - version: version command line |
13 |
| - # - dry_run: command to run in dry run mode |
14 |
| - # - verbose_flag: verbose flag |
15 |
| - # - force_progression: one liner status of the progress |
16 |
| - ('Ninja', { |
17 |
| - 'command': ['ninja'], |
18 |
| - 'version': ['ninja', '--version'], |
19 |
| - 'dry_run': ['ninja', '-n'], |
20 |
| - 'verbose_flag': '-v', |
21 |
| - # as opposed to printing the status updates each in a in new line |
22 |
| - 'force_progression': True, |
23 |
| - }), |
24 |
| -]) |
| 10 | +GENERATORS: Dict[str, Union[str, Dict, list]] = collections.OrderedDict( |
| 11 | + [ |
| 12 | + # - command: build command line |
| 13 | + # - version: version command line |
| 14 | + # - dry_run: command to run in dry run mode |
| 15 | + # - verbose_flag: verbose flag |
| 16 | + # - force_progression: one liner status of the progress |
| 17 | + ( |
| 18 | + 'Ninja', |
| 19 | + { |
| 20 | + 'command': ['ninja'], |
| 21 | + 'version': ['ninja', '--version'], |
| 22 | + 'dry_run': ['ninja', '-n'], |
| 23 | + 'verbose_flag': '-v', |
| 24 | + # as opposed to printing the status updates each in a in new line |
| 25 | + 'force_progression': True, |
| 26 | + }, |
| 27 | + ), |
| 28 | + ] |
| 29 | +) |
25 | 30 |
|
26 | 31 | if os.name != 'nt':
|
27 | 32 | MAKE_CMD = 'gmake' if platform.system() == 'FreeBSD' else 'make'
|
28 |
| - GENERATORS['Unix Makefiles'] = {'command': [MAKE_CMD, '-j', str(multiprocessing.cpu_count() + 2)], |
29 |
| - 'version': [MAKE_CMD, '--version'], |
30 |
| - 'dry_run': [MAKE_CMD, '-n'], |
31 |
| - 'verbose_flag': 'VERBOSE=1', |
32 |
| - 'force_progression': False} |
| 33 | + GENERATORS['Unix Makefiles'] = { |
| 34 | + 'command': [MAKE_CMD, '-j', str(multiprocessing.cpu_count() + 2)], |
| 35 | + 'version': [MAKE_CMD, '--version'], |
| 36 | + 'dry_run': [MAKE_CMD, '-n'], |
| 37 | + 'verbose_flag': 'VERBOSE=1', |
| 38 | + 'force_progression': False, |
| 39 | + } |
33 | 40 |
|
34 | 41 | URL_TO_DOC = 'https://docs.espressif.com/projects/esp-idf'
|
35 | 42 |
|
36 |
| -SUPPORTED_TARGETS = ['esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2', 'esp32c6', 'esp32h2', 'esp32p4'] |
37 |
| -PREVIEW_TARGETS = ['linux', 'esp32c5', 'esp32c61', 'esp32h21', 'esp32h4'] |
| 43 | +SUPPORTED_TARGETS = [ |
| 44 | + 'esp32', |
| 45 | + 'esp32s2', |
| 46 | + 'esp32c3', |
| 47 | + 'esp32s3', |
| 48 | + 'esp32c2', |
| 49 | + 'esp32c6', |
| 50 | + 'esp32h2', |
| 51 | + 'esp32p4', |
| 52 | + 'esp32c5', |
| 53 | + 'esp32c61', |
| 54 | +] |
| 55 | +PREVIEW_TARGETS = ['linux', 'esp32h21', 'esp32h4'] |
0 commit comments