Skip to content

Commit

Permalink
Revert "[Core] Re-order user space rules inclusion (#17459)" (#18032)
Browse files Browse the repository at this point in the history
  • Loading branch information
spidey3 authored Aug 13, 2022
1 parent b1c7df9 commit 2f87abd
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions builddefs/build_keyboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ MAIN_KEYMAP_PATH_5 := $(KEYBOARD_PATH_5)/keymaps/$(KEYMAP)
INFO_RULES_MK = $(shell $(QMK_BIN) generate-rules-mk --quiet --escape --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/info_rules.mk)
include $(INFO_RULES_MK)

# Userspace setup and definitions
ifeq ("$(USER_NAME)","")
USER_NAME := $(KEYMAP)
endif
USER_PATH := users/$(USER_NAME)

# Pull in user level rules.mk
-include $(USER_PATH)/rules.mk

# Check for keymap.json first, so we can regenerate keymap.c
include $(BUILDDEFS_PATH)/build_json.mk

Expand Down Expand Up @@ -365,7 +356,14 @@ generated-files: $(KEYBOARD_OUTPUT)/src/info_config.h $(KEYBOARD_OUTPUT)/src/def

.INTERMEDIATE : generated-files

# Include user level config
# Userspace setup and definitions
ifeq ("$(USER_NAME)","")
USER_NAME := $(KEYMAP)
endif
USER_PATH := users/$(USER_NAME)

# Pull in user level rules.mk
-include $(USER_PATH)/rules.mk
ifneq ("$(wildcard $(USER_PATH)/config.h)","")
CONFIG_H += $(USER_PATH)/config.h
endif
Expand Down

0 comments on commit 2f87abd

Please sign in to comment.