diff options
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | bin/qmk | 1 | ||||
-rw-r--r-- | lib/python/qmk/commands.py | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -30,7 +30,7 @@ endif | |||
30 | endif | 30 | endif |
31 | 31 | ||
32 | # Determine which qmk cli to use | 32 | # Determine which qmk cli to use |
33 | ifeq (, $(shell which qmk)) | 33 | ifeq (,$(shell which qmk)) |
34 | QMK_BIN = bin/qmk | 34 | QMK_BIN = bin/qmk |
35 | else | 35 | else |
36 | QMK_BIN = qmk | 36 | QMK_BIN = qmk |
@@ -391,7 +391,7 @@ define PARSE_KEYMAP | |||
391 | # Format it in bold | 391 | # Format it in bold |
392 | KB_SP := $(BOLD)$$(KB_SP)$(NO_COLOR) | 392 | KB_SP := $(BOLD)$$(KB_SP)$(NO_COLOR) |
393 | # Specify the variables that we are passing forward to submake | 393 | # Specify the variables that we are passing forward to submake |
394 | MAKE_VARS := KEYBOARD=$$(CURRENT_KB) KEYMAP=$$(CURRENT_KM) REQUIRE_PLATFORM_KEY=$$(REQUIRE_PLATFORM_KEY) | 394 | MAKE_VARS := KEYBOARD=$$(CURRENT_KB) KEYMAP=$$(CURRENT_KM) REQUIRE_PLATFORM_KEY=$$(REQUIRE_PLATFORM_KEY) QMK_BIN=$$(QMK_BIN) |
395 | # And the first part of the make command | 395 | # And the first part of the make command |
396 | MAKE_CMD := $$(MAKE) -r -R -C $(ROOT_DIR) -f build_keyboard.mk $$(MAKE_TARGET) | 396 | MAKE_CMD := $$(MAKE) -r -R -C $(ROOT_DIR) -f build_keyboard.mk $$(MAKE_TARGET) |
397 | # The message to display | 397 | # The message to display |
@@ -73,6 +73,7 @@ def main(): | |||
73 | """ | 73 | """ |
74 | # Change to the root of our checkout | 74 | # Change to the root of our checkout |
75 | os.environ['ORIG_CWD'] = os.getcwd() | 75 | os.environ['ORIG_CWD'] = os.getcwd() |
76 | os.environ['DEPRECATED_BIN_QMK'] = '1' | ||
76 | os.chdir(qmk_dir) | 77 | os.chdir(qmk_dir) |
77 | 78 | ||
78 | print('Warning: The bin/qmk script is being deprecated. Please install the QMK CLI: python3 -m pip install qmk', file=sys.stderr) | 79 | print('Warning: The bin/qmk script is being deprecated. Please install the QMK CLI: python3 -m pip install qmk', file=sys.stderr) |
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index ac9837695..4809365af 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py | |||
@@ -180,7 +180,7 @@ def compile_configurator_json(user_keymap, bootloader=None, parallel=1, **env_va | |||
180 | f'VERBOSE={verbose}', | 180 | f'VERBOSE={verbose}', |
181 | f'COLOR={color}', | 181 | f'COLOR={color}', |
182 | 'SILENT=false', | 182 | 'SILENT=false', |
183 | 'QMK_BIN=qmk', | 183 | f'QMK_BIN={"bin/qmk" if "DEPRECATED_BIN_QMK" in os.environ else "qmk"}', |
184 | ]) | 184 | ]) |
185 | 185 | ||
186 | return make_command | 186 | return make_command |