diff options
| author | Zach White <skullydazed@gmail.com> | 2020-12-30 10:27:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-30 10:27:37 -0800 |
| commit | 47b9b110097a864d6ab76516b2213afd59948527 (patch) | |
| tree | 44c4e034c71b361af0cf865b735e09162bbc9656 /lib/python/qmk/cli/chibios/confmigrate.py | |
| parent | f231f24ddaac9781201a4ec9d0171c65af788839 (diff) | |
| download | qmk_firmware-47b9b110097a864d6ab76516b2213afd59948527.tar.gz qmk_firmware-47b9b110097a864d6ab76516b2213afd59948527.zip | |
Configure keyboard matrix from info.json (#10817)
* Make parameters from info.json available to the build system
* move all clueboard settings to info.json
* code formatting
* make flake8 happy
* make flake8 happy
* make qmk lint happy
* Add support for specifying led indicators in json
* move led indicators to the clueboard info.json
* Apply suggestions from code review
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* add missing docstring
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Diffstat (limited to 'lib/python/qmk/cli/chibios/confmigrate.py')
| -rw-r--r-- | lib/python/qmk/cli/chibios/confmigrate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/qmk/cli/chibios/confmigrate.py b/lib/python/qmk/cli/chibios/confmigrate.py index eae294a0c..b9cfda961 100644 --- a/lib/python/qmk/cli/chibios/confmigrate.py +++ b/lib/python/qmk/cli/chibios/confmigrate.py | |||
| @@ -13,7 +13,7 @@ def eprint(*args, **kwargs): | |||
| 13 | print(*args, file=sys.stderr, **kwargs) | 13 | print(*args, file=sys.stderr, **kwargs) |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | fileHeader = """\ | 16 | file_header = """\ |
| 17 | /* Copyright 2020 QMK | 17 | /* Copyright 2020 QMK |
| 18 | * | 18 | * |
| 19 | * This program is free software: you can redistribute it and/or modify | 19 | * This program is free software: you can redistribute it and/or modify |
| @@ -77,7 +77,7 @@ def check_diffs(input_defs, reference_defs): | |||
| 77 | 77 | ||
| 78 | 78 | ||
| 79 | def migrate_chconf_h(to_override, outfile): | 79 | def migrate_chconf_h(to_override, outfile): |
| 80 | print(fileHeader.format(cli.args.input.relative_to(QMK_FIRMWARE), cli.args.reference.relative_to(QMK_FIRMWARE)), file=outfile) | 80 | print(file_header.format(cli.args.input.relative_to(QMK_FIRMWARE), cli.args.reference.relative_to(QMK_FIRMWARE)), file=outfile) |
| 81 | 81 | ||
| 82 | for override in to_override: | 82 | for override in to_override: |
| 83 | print("#define %s %s" % (override[0], override[1]), file=outfile) | 83 | print("#define %s %s" % (override[0], override[1]), file=outfile) |
| @@ -87,7 +87,7 @@ def migrate_chconf_h(to_override, outfile): | |||
| 87 | 87 | ||
| 88 | 88 | ||
| 89 | def migrate_halconf_h(to_override, outfile): | 89 | def migrate_halconf_h(to_override, outfile): |
| 90 | print(fileHeader.format(cli.args.input.relative_to(QMK_FIRMWARE), cli.args.reference.relative_to(QMK_FIRMWARE)), file=outfile) | 90 | print(file_header.format(cli.args.input.relative_to(QMK_FIRMWARE), cli.args.reference.relative_to(QMK_FIRMWARE)), file=outfile) |
| 91 | 91 | ||
| 92 | for override in to_override: | 92 | for override in to_override: |
| 93 | print("#define %s %s" % (override[0], override[1]), file=outfile) | 93 | print("#define %s %s" % (override[0], override[1]), file=outfile) |
| @@ -97,7 +97,7 @@ def migrate_halconf_h(to_override, outfile): | |||
| 97 | 97 | ||
| 98 | 98 | ||
| 99 | def migrate_mcuconf_h(to_override, outfile): | 99 | def migrate_mcuconf_h(to_override, outfile): |
| 100 | print(fileHeader.format(cli.args.input.relative_to(QMK_FIRMWARE), cli.args.reference.relative_to(QMK_FIRMWARE)), file=outfile) | 100 | print(file_header.format(cli.args.input.relative_to(QMK_FIRMWARE), cli.args.reference.relative_to(QMK_FIRMWARE)), file=outfile) |
| 101 | 101 | ||
| 102 | print("#include_next <mcuconf.h>\n", file=outfile) | 102 | print("#include_next <mcuconf.h>\n", file=outfile) |
| 103 | 103 | ||
