Import userspace config.h according to USER_NAME (#2983) 0.6.40
authorWillyPillow <WillyPillow@users.noreply.github.com>
Tue, 22 May 2018 19:47:28 +0000 (03:47 +0800)
committerDrashna Jaelre <drashna@live.com>
Tue, 22 May 2018 19:47:28 +0000 (12:47 -0700)
* Import userspace config.h according to USER_NAME

* Use USER_PATH instead of directly using USER_NAME

build_keyboard.mk

index 4781f4a..b257123 100644 (file)
@@ -210,8 +210,8 @@ endif
 USER_PATH := users/$(USER_NAME)
 
 -include $(USER_PATH)/rules.mk
-ifneq ("$(wildcard users/$(KEYMAP)/config.h)","")
-    CONFIG_H += users/$(KEYMAP)/config.h
+ifneq ("$(wildcard $(USER_PATH)/config.h)","")
+    CONFIG_H += $(USER_PATH)/config.h
 endif