diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2017-11-14 16:11:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-14 16:11:29 -0500 |
| commit | ec3e065f0d2c65175384699cb11fa388250fa914 (patch) | |
| tree | e66837d6af1a30b739303bfa06043edf12f9fcc1 /build_keyboard.mk | |
| parent | 3c15c48e6a5c584d225d369ea458f9a3f9cd3d57 (diff) | |
| download | qmk_firmware-ec3e065f0d2c65175384699cb11fa388250fa914.tar.gz qmk_firmware-ec3e065f0d2c65175384699cb11fa388250fa914.zip | |
QMK DFU bootloader generation (#2009)
* adds :bootloader target
* update planck and preonic revisions
* remove references to .h files for planck
* update preonic keymap
* only add keyboard.h files that exist
* add production target
* hook things up with the new lufa variables
* update rules for planck/preonic
* back backlight key turn of status led when pressed
* add manufacturer/product strings to bootloader
Diffstat (limited to 'build_keyboard.mk')
| -rw-r--r-- | build_keyboard.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index 2c86fe55e..df025714d 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
| @@ -94,6 +94,23 @@ endif | |||
| 94 | 94 | ||
| 95 | OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE) | 95 | OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE) |
| 96 | 96 | ||
| 97 | |||
| 98 | ifneq ("$(wildcard $(KEYBOARD_PATH_1)/$(KEYBOARD_FOLDER_1).h)","") | ||
| 99 | QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_1).h | ||
| 100 | endif | ||
| 101 | ifneq ("$(wildcard $(KEYBOARD_PATH_2)/$(KEYBOARD_FOLDER_2).h)","") | ||
| 102 | QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_2).h | ||
| 103 | endif | ||
| 104 | ifneq ("$(wildcard $(KEYBOARD_PATH_3)/$(KEYBOARD_FOLDER_3).h)","") | ||
| 105 | QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_3).h | ||
| 106 | endif | ||
| 107 | ifneq ("$(wildcard $(KEYBOARD_PATH_4)/$(KEYBOARD_FOLDER_4).h)","") | ||
| 108 | QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_4).h | ||
| 109 | endif | ||
| 110 | ifneq ("$(wildcard $(KEYBOARD_PATH_5)/$(KEYBOARD_FOLDER_5).h)","") | ||
| 111 | QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_5).h | ||
| 112 | endif | ||
| 113 | |||
| 97 | # We can assume a ChibiOS target When MCU_FAMILY is defined , since it's not used for LUFA | 114 | # We can assume a ChibiOS target When MCU_FAMILY is defined , since it's not used for LUFA |
| 98 | ifdef MCU_FAMILY | 115 | ifdef MCU_FAMILY |
| 99 | PLATFORM=CHIBIOS | 116 | PLATFORM=CHIBIOS |
| @@ -233,10 +250,12 @@ ifeq ($(strip $(VISUALIZER_ENABLE)), yes) | |||
| 233 | include $(VISUALIZER_PATH)/visualizer.mk | 250 | include $(VISUALIZER_PATH)/visualizer.mk |
| 234 | endif | 251 | endif |
| 235 | 252 | ||
| 253 | ALL_CONFIGS := $(PROJECT_CONFIG) $(CONFIG_H) | ||
| 254 | |||
| 236 | OUTPUTS := $(KEYMAP_OUTPUT) $(KEYBOARD_OUTPUT) | 255 | OUTPUTS := $(KEYMAP_OUTPUT) $(KEYBOARD_OUTPUT) |
| 237 | $(KEYMAP_OUTPUT)_SRC := $(SRC) | 256 | $(KEYMAP_OUTPUT)_SRC := $(SRC) |
| 238 | $(KEYMAP_OUTPUT)_DEFS := $(OPT_DEFS) $(GFXDEFS) \ | 257 | $(KEYMAP_OUTPUT)_DEFS := $(OPT_DEFS) $(GFXDEFS) \ |
| 239 | -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYBOARD_H=\"$(KEYBOARD_FOLDER_1).h\" -DQMK_KEYBOARD_CONFIG_H=\"$(KEYBOARD_PATH_1)/config.h\" \ | 258 | -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYBOARD_H=\"$(QMK_KEYBOARD_H)\" -DQMK_KEYBOARD_CONFIG_H=\"$(KEYBOARD_PATH_1)/config.h\" \ |
| 240 | -DQMK_KEYMAP=\"$(KEYMAP)\" -DQMK_KEYMAP_H=\"$(KEYMAP).h\" -DQMK_KEYMAP_CONFIG_H=\"$(KEYMAP_PATH)/config.h\" \ | 259 | -DQMK_KEYMAP=\"$(KEYMAP)\" -DQMK_KEYMAP_H=\"$(KEYMAP).h\" -DQMK_KEYMAP_CONFIG_H=\"$(KEYMAP_PATH)/config.h\" \ |
| 241 | -DQMK_SUBPROJECT -DQMK_SUBPROJECT_H -DQMK_SUBPROJECT_CONFIG_H | 260 | -DQMK_SUBPROJECT -DQMK_SUBPROJECT_H -DQMK_SUBPROJECT_CONFIG_H |
| 242 | $(KEYMAP_OUTPUT)_INC := $(VPATH) $(EXTRAINCDIRS) | 261 | $(KEYMAP_OUTPUT)_INC := $(VPATH) $(EXTRAINCDIRS) |
