aboutsummaryrefslogtreecommitdiff
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-01-12 12:50:14 -0800
committerZach White <skullydazed@drpepper.org>2021-01-13 16:01:21 -0800
commit3c8da5eba8f3e3f3d36fc2a531dd63998272f8ca (patch)
tree1080dbcab12ba51ba75bc2720eefd869b3b9ca65 /build_keyboard.mk
parent70e143e0c1337cd952b763f643f3142b1c46951d (diff)
downloadqmk_firmware-3c8da5eba8f3e3f3d36fc2a531dd63998272f8ca.tar.gz
qmk_firmware-3c8da5eba8f3e3f3d36fc2a531dd63998272f8ca.zip
move the info.json rules above userspace
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk40
1 files changed, 20 insertions, 20 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 9685d1f63..79fe336b4 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -273,26 +273,6 @@ ifneq ("$(wildcard $(KEYBOARD_PATH_5)/post_config.h)","")
273 POST_CONFIG_H += $(KEYBOARD_PATH_5)/post_config.h 273 POST_CONFIG_H += $(KEYBOARD_PATH_5)/post_config.h
274endif 274endif
275 275
276# Userspace setup and definitions
277ifeq ("$(USER_NAME)","")
278 USER_NAME := $(KEYMAP)
279endif
280USER_PATH := users/$(USER_NAME)
281
282-include $(USER_PATH)/rules.mk
283ifneq ("$(wildcard $(USER_PATH)/config.h)","")
284 CONFIG_H += $(USER_PATH)/config.h
285endif
286
287# Object files directory
288# To put object files in current directory, use a dot (.), do NOT make
289# this an empty or blank macro!
290KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET)
291
292ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","")
293 CONFIG_H += $(KEYMAP_PATH)/config.h
294endif
295
296# Pull in stuff from info.json 276# Pull in stuff from info.json
297INFO_JSON_FILES := 277INFO_JSON_FILES :=
298ifneq ("$(wildcard $(KEYBOARD_PATH_1)/info.json)","") 278ifneq ("$(wildcard $(KEYBOARD_PATH_1)/info.json)","")
@@ -323,6 +303,26 @@ generated-files: $(KEYBOARD_OUTPUT)/src/info_config.h $(KEYBOARD_OUTPUT)/src/lay
323 303
324.INTERMEDIATE : generated-files 304.INTERMEDIATE : generated-files
325 305
306# Userspace setup and definitions
307ifeq ("$(USER_NAME)","")
308 USER_NAME := $(KEYMAP)
309endif
310USER_PATH := users/$(USER_NAME)
311
312-include $(USER_PATH)/rules.mk
313ifneq ("$(wildcard $(USER_PATH)/config.h)","")
314 CONFIG_H += $(USER_PATH)/config.h
315endif
316
317# Object files directory
318# To put object files in current directory, use a dot (.), do NOT make
319# this an empty or blank macro!
320KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET)
321
322ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","")
323 CONFIG_H += $(KEYMAP_PATH)/config.h
324endif
325
326# project specific files 326# project specific files
327SRC += $(KEYBOARD_SRC) \ 327SRC += $(KEYBOARD_SRC) \
328 $(KEYMAP_C) \ 328 $(KEYMAP_C) \