diff options
| author | Zach White <skullydazed@gmail.com> | 2021-01-31 12:46:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-31 12:46:00 -0800 |
| commit | ef6329af7c7be77b537fbfc5a5cc7105acc679f7 (patch) | |
| tree | 911f2baa834648e09baff1e7cc21cafae47a8ce8 /bin | |
| parent | 6cada2a35f57629f821852ba629e33e9abee3e74 (diff) | |
| download | qmk_firmware-ef6329af7c7be77b537fbfc5a5cc7105acc679f7.tar.gz qmk_firmware-ef6329af7c7be77b537fbfc5a5cc7105acc679f7.zip | |
Create a system to map between info.json and config.h/rules.mk (#11548)
* generate rules.mk from a json mapping
* generate rules.mk from a json mapping
* support for config.h from json maps
* improve the mapping system
* document the mapping system
* move data/maps to data/mappings
* fix flake8 errors
* fixup LED_MATRIX_DRIVER
* remove product and description from the vision_division keymap level
* reduce the complexity of generate-rules-mk
* add tests for the generate commands
* fix qmk doctor when submodules are not clean
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/qmk | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -27,7 +27,8 @@ def _check_modules(requirements): | |||
| 27 | line = line.split('#')[0] | 27 | line = line.split('#')[0] |
| 28 | 28 | ||
| 29 | module = dict() | 29 | module = dict() |
| 30 | module['name'] = module['import'] = line.split('=')[0] if '=' in line else line | 30 | module['name'] = line.split('=')[0] if '=' in line else line |
| 31 | module['import'] = module['name'].replace('-', '_') | ||
| 31 | 32 | ||
| 32 | # Not every module is importable by its own name. | 33 | # Not every module is importable by its own name. |
| 33 | if module['name'] == "pep8-naming": | 34 | if module['name'] == "pep8-naming": |
