aboutsummaryrefslogtreecommitdiffstats
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorGravatar Drashna Jaelre <drashna@live.com>2018-03-31 21:02:40 -0700
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-04-01 00:02:40 -0400
commit162a67cbc567c11c507bfc153d155f5db2dd19bf (patch)
tree87200826601b41a4ad51c4195ec1b0f4a9e5853f /build_keyboard.mk
parentcc323df9ba8f4361660ee2a60c3261da29c1d172 (diff)
downloadqmk_firmware-162a67cbc567c11c507bfc153d155f5db2dd19bf.tar.gz
Add userspace config.h handling to build script (#2640)
* Add userspace 'config.h' file * Add more robust docs * Remove config.h code from drashna userspace * Spelling error * Include links to Config Options page * Remove config.h documentation from userspace doc, as it's no longer needed
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 921159a5d..5a82abd31 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -204,6 +204,10 @@ endif
# User space stuff
USER_PATH := users/$(KEYMAP)
-include $(USER_PATH)/rules.mk
+ifneq ("$(wildcard users/$(KEYMAP)/config.h)","")
+ CONFIG_H += users/$(KEYMAP)/config.h
+endif
+
# Object files directory
# To put object files in current directory, use a dot (.), do NOT make