diff options
author | Zach White <skullydazed@gmail.com> | 2021-01-16 15:13:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 15:13:04 -0800 |
commit | d9785ec31339d7f80279fd3d1005f76689ed2f6a (patch) | |
tree | 01f9e771367cfcd18d347eef7f85ce78a3b5ba50 /lib/python/qmk/constants.py | |
parent | c628408688306ed3e970505268cc4a235af8a5ff (diff) | |
download | qmk_firmware-d9785ec31339d7f80279fd3d1005f76689ed2f6a.tar.gz qmk_firmware-d9785ec31339d7f80279fd3d1005f76689ed2f6a.zip |
Improve the compile and flash subcommands (#11334)
* add support for --clean to compile and flash
* compile standalone JSON keymaps without polluting the tree
* Add support for passing environment vars to make
* make flake8 happy
* document changes to qmk compile and flash
* add -e support to json export compiling
* Fix python 3.6
* honor $MAKE
* add support for parallel builds
Diffstat (limited to 'lib/python/qmk/constants.py')
-rw-r--r-- | lib/python/qmk/constants.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/qmk/constants.py b/lib/python/qmk/constants.py index 94ab68e5e..2ddaa568a 100644 --- a/lib/python/qmk/constants.py +++ b/lib/python/qmk/constants.py | |||
@@ -1,5 +1,6 @@ | |||
1 | """Information that should be available to the python library. | 1 | """Information that should be available to the python library. |
2 | """ | 2 | """ |
3 | from os import environ | ||
3 | from pathlib import Path | 4 | from pathlib import Path |
4 | 5 | ||
5 | # The root of the qmk_firmware tree. | 6 | # The root of the qmk_firmware tree. |
@@ -17,3 +18,7 @@ VUSB_PROCESSORS = 'atmega32a', 'atmega328p', 'atmega328', 'attiny85' | |||
17 | DATE_FORMAT = '%Y-%m-%d' | 18 | DATE_FORMAT = '%Y-%m-%d' |
18 | DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S %Z' | 19 | DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S %Z' |
19 | TIME_FORMAT = '%H:%M:%S' | 20 | TIME_FORMAT = '%H:%M:%S' |
21 | |||
22 | # Constants that should match their counterparts in make | ||
23 | BUILD_DIR = environ.get('BUILD_DIR', '.build') | ||
24 | KEYBOARD_OUTPUT_PREFIX = f'{BUILD_DIR}/obj_' | ||