aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rwxr-xr-xbin/qmk1
-rw-r--r--lib/python/qmk/commands.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index de0a2d415..80e1a90a1 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ endif
30endif 30endif
31 31
32# Determine which qmk cli to use 32# Determine which qmk cli to use
33ifeq (, $(shell which qmk)) 33ifeq (,$(shell which qmk))
34 QMK_BIN = bin/qmk 34 QMK_BIN = bin/qmk
35else 35else
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
diff --git a/bin/qmk b/bin/qmk
index 28486026f..a2af2951c 100755
--- a/bin/qmk
+++ b/bin/qmk
@@ -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