diff options
author | Zach White <skullydazed@gmail.com> | 2021-01-12 12:50:14 -0800 |
---|---|---|
committer | Zach White <skullydazed@drpepper.org> | 2021-01-13 16:01:21 -0800 |
commit | 3c8da5eba8f3e3f3d36fc2a531dd63998272f8ca (patch) | |
tree | 1080dbcab12ba51ba75bc2720eefd869b3b9ca65 /build_keyboard.mk | |
parent | 70e143e0c1337cd952b763f643f3142b1c46951d (diff) | |
download | qmk_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.mk | 40 |
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 |
274 | endif | 274 | endif |
275 | 275 | ||
276 | # Userspace setup and definitions | ||
277 | ifeq ("$(USER_NAME)","") | ||
278 | USER_NAME := $(KEYMAP) | ||
279 | endif | ||
280 | USER_PATH := users/$(USER_NAME) | ||
281 | |||
282 | -include $(USER_PATH)/rules.mk | ||
283 | ifneq ("$(wildcard $(USER_PATH)/config.h)","") | ||
284 | CONFIG_H += $(USER_PATH)/config.h | ||
285 | endif | ||
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! | ||
290 | KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET) | ||
291 | |||
292 | ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","") | ||
293 | CONFIG_H += $(KEYMAP_PATH)/config.h | ||
294 | endif | ||
295 | |||
296 | # Pull in stuff from info.json | 276 | # Pull in stuff from info.json |
297 | INFO_JSON_FILES := | 277 | INFO_JSON_FILES := |
298 | ifneq ("$(wildcard $(KEYBOARD_PATH_1)/info.json)","") | 278 | ifneq ("$(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 | ||
307 | ifeq ("$(USER_NAME)","") | ||
308 | USER_NAME := $(KEYMAP) | ||
309 | endif | ||
310 | USER_PATH := users/$(USER_NAME) | ||
311 | |||
312 | -include $(USER_PATH)/rules.mk | ||
313 | ifneq ("$(wildcard $(USER_PATH)/config.h)","") | ||
314 | CONFIG_H += $(USER_PATH)/config.h | ||
315 | endif | ||
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! | ||
320 | KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET) | ||
321 | |||
322 | ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","") | ||
323 | CONFIG_H += $(KEYMAP_PATH)/config.h | ||
324 | endif | ||
325 | |||
326 | # project specific files | 326 | # project specific files |
327 | SRC += $(KEYBOARD_SRC) \ | 327 | SRC += $(KEYBOARD_SRC) \ |
328 | $(KEYMAP_C) \ | 328 | $(KEYMAP_C) \ |