Open vinorodrigues opened 8 months ago
update from Discord convo.
sigprof —
Apparently the problem here is that when the top-level Makefile invokes make ... -f builddefs/build_keyboard.mk
recursively, it does not pass the QMK_USERSPACE
value to that invocation, and build_keyboard.mk
itself does not read it from qmk config.
sigprof — quick and dirty fix (maybe we should avoid passing QMK_USERSPACE when it's not actually set?):
diff --git a/Makefile b/Makefile
index ab30a17f58..512781e440 100644
--- a/Makefile
+++ b/Makefile
@@ -274,7 +274,7 @@ define PARSE_KEYMAP
# Format it in bold
KB_SP := $(BOLD)$$(KB_SP)$(NO_COLOR)
# Specify the variables that we are passing forward to submake
- MAKE_VARS := KEYBOARD=$$(CURRENT_KB) KEYMAP=$$(CURRENT_KM) QMK_BIN=$$(QMK_BIN)
+ MAKE_VARS := KEYBOARD=$$(CURRENT_KB) KEYMAP=$$(CURRENT_KM) QMK_BIN=$$(QMK_BIN) QMK_USERSPACE=$$(QMK_USERSPACE)
# And the first part of the make command
MAKE_CMD := $$(MAKE) -r -R -C $(ROOT_DIR) -f $(BUILDDEFS_PATH)/build_keyboard.mk $$(MAKE_TARGET)
# The message to display
Describe the Bug
I'm getting errors when compiling with
make
, whilst compiling withqmk compile
works, when building keymaps in the new userspace feature.Example, when using (running from the
qmk_firmware
folder):It compiles successfully.
However, when using:
I get:
(Obviously
xxxx
is in theqmk_userspace
folder, and was created withqmk userspace-add -kb handwired/onekey/kb2040 -km xxxx
.)Keyboard Used
handwired/onekey/kb2040
Link to product page (if applicable)
No response
Operating System
macOS
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response