diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-16 21:34:01 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-18 21:10:42 +0300 |
| commit | 7424261dae180d1cc0e4e46b4ee2d51ef5524e0a (patch) | |
| tree | c2180efd00452bfca7dfd9754a66d17d5efdd751 /build_keyboard.mk | |
| parent | 30f22d450da19c65584e6deb8515a1fa5b074e07 (diff) | |
| download | qmk_firmware-7424261dae180d1cc0e4e46b4ee2d51ef5524e0a.tar.gz qmk_firmware-7424261dae180d1cc0e4e46b4ee2d51ef5524e0a.zip | |
Try to build tmk_common
Diffstat (limited to 'build_keyboard.mk')
| -rw-r--r-- | build_keyboard.mk | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index 36eab3a9e..f13d5b6d6 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
| @@ -131,128 +131,6 @@ ifndef CUSTOM_MATRIX | |||
| 131 | SRC += $(QUANTUM_DIR)/matrix.c | 131 | SRC += $(QUANTUM_DIR)/matrix.c |
| 132 | endif | 132 | endif |
| 133 | 133 | ||
| 134 | ifeq ($(strip $(API_SYSEX_ENABLE)), yes) | ||
| 135 | OPT_DEFS += -DAPI_SYSEX_ENABLE | ||
| 136 | SRC += $(QUANTUM_DIR)/api/api_sysex.c | ||
| 137 | OPT_DEFS += -DAPI_ENABLE | ||
| 138 | SRC += $(QUANTUM_DIR)/api.c | ||
| 139 | MIDI_ENABLE=yes | ||
| 140 | endif | ||
| 141 | |||
| 142 | MUSIC_ENABLE := 0 | ||
| 143 | |||
| 144 | ifeq ($(strip $(AUDIO_ENABLE)), yes) | ||
| 145 | OPT_DEFS += -DAUDIO_ENABLE | ||
| 146 | MUSIC_ENABLE := 1 | ||
| 147 | SRC += $(QUANTUM_DIR)/process_keycode/process_audio.c | ||
| 148 | SRC += $(QUANTUM_DIR)/audio/audio.c | ||
| 149 | SRC += $(QUANTUM_DIR)/audio/voices.c | ||
| 150 | SRC += $(QUANTUM_DIR)/audio/luts.c | ||
| 151 | endif | ||
| 152 | |||
| 153 | ifeq ($(strip $(MIDI_ENABLE)), yes) | ||
| 154 | OPT_DEFS += -DMIDI_ENABLE | ||
| 155 | MUSIC_ENABLE := 1 | ||
| 156 | SRC += $(QUANTUM_DIR)/process_keycode/process_midi.c | ||
| 157 | endif | ||
| 158 | |||
| 159 | ifeq ($(MUSIC_ENABLE), 1) | ||
| 160 | SRC += $(QUANTUM_DIR)/process_keycode/process_music.c | ||
| 161 | endif | ||
| 162 | |||
| 163 | ifeq ($(strip $(COMBO_ENABLE)), yes) | ||
| 164 | OPT_DEFS += -DCOMBO_ENABLE | ||
| 165 | SRC += $(QUANTUM_DIR)/process_keycode/process_combo.c | ||
| 166 | endif | ||
| 167 | |||
| 168 | ifeq ($(strip $(VIRTSER_ENABLE)), yes) | ||
| 169 | OPT_DEFS += -DVIRTSER_ENABLE | ||
| 170 | endif | ||
| 171 | |||
| 172 | ifeq ($(strip $(FAUXCLICKY_ENABLE)), yes) | ||
| 173 | OPT_DEFS += -DFAUXCLICKY_ENABLE | ||
| 174 | SRC += $(QUANTUM_DIR)/fauxclicky.c | ||
| 175 | endif | ||
| 176 | |||
| 177 | ifeq ($(strip $(UCIS_ENABLE)), yes) | ||
| 178 | OPT_DEFS += -DUCIS_ENABLE | ||
| 179 | UNICODE_COMMON = yes | ||
| 180 | SRC += $(QUANTUM_DIR)/process_keycode/process_ucis.c | ||
| 181 | endif | ||
| 182 | |||
| 183 | ifeq ($(strip $(UNICODEMAP_ENABLE)), yes) | ||
| 184 | OPT_DEFS += -DUNICODEMAP_ENABLE | ||
| 185 | UNICODE_COMMON = yes | ||
| 186 | SRC += $(QUANTUM_DIR)/process_keycode/process_unicodemap.c | ||
| 187 | endif | ||
| 188 | |||
| 189 | ifeq ($(strip $(UNICODE_ENABLE)), yes) | ||
| 190 | OPT_DEFS += -DUNICODE_ENABLE | ||
| 191 | UNICODE_COMMON = yes | ||
| 192 | SRC += $(QUANTUM_DIR)/process_keycode/process_unicode.c | ||
| 193 | endif | ||
| 194 | |||
| 195 | ifeq ($(strip $(UNICODE_COMMON)), yes) | ||
| 196 | SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c | ||
| 197 | endif | ||
| 198 | |||
| 199 | ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | ||
| 200 | OPT_DEFS += -DRGBLIGHT_ENABLE | ||
| 201 | SRC += $(QUANTUM_DIR)/light_ws2812.c | ||
| 202 | SRC += $(QUANTUM_DIR)/rgblight.c | ||
| 203 | CIE1931_CURVE = yes | ||
| 204 | LED_BREATHING_TABLE = yes | ||
| 205 | endif | ||
| 206 | |||
| 207 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | ||
| 208 | OPT_DEFS += -DTAP_DANCE_ENABLE | ||
| 209 | SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c | ||
| 210 | endif | ||
| 211 | |||
| 212 | ifeq ($(strip $(PRINTING_ENABLE)), yes) | ||
| 213 | OPT_DEFS += -DPRINTING_ENABLE | ||
| 214 | SRC += $(QUANTUM_DIR)/process_keycode/process_printer.c | ||
| 215 | SRC += $(TMK_DIR)/protocol/serial_uart.c | ||
| 216 | endif | ||
| 217 | |||
| 218 | ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes) | ||
| 219 | SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC)) | ||
| 220 | OPT_DEFS += $(SERIAL_DEFS) | ||
| 221 | VAPTH += $(SERIAL_PATH) | ||
| 222 | endif | ||
| 223 | |||
| 224 | ifneq ($(strip $(VARIABLE_TRACE)),) | ||
| 225 | SRC += $(QUANTUM_DIR)/variable_trace.c | ||
| 226 | OPT_DEFS += -DNUM_TRACED_VARIABLES=$(strip $(VARIABLE_TRACE)) | ||
| 227 | ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),) | ||
| 228 | OPT_DEFS += -DMAX_VARIABLE_TRACE_SIZE=$(strip $(MAX_VARIABLE_TRACE_SIZE)) | ||
| 229 | endif | ||
| 230 | endif | ||
| 231 | |||
| 232 | ifeq ($(strip $(LCD_ENABLE)), yes) | ||
| 233 | CIE1931_CURVE = yes | ||
| 234 | endif | ||
| 235 | |||
| 236 | ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) | ||
| 237 | ifeq ($(strip $(VISUALIZER_ENABLE)), yes) | ||
| 238 | CIE1931_CURVE = yes | ||
| 239 | endif | ||
| 240 | endif | ||
| 241 | |||
| 242 | ifeq ($(strip $(CIE1931_CURVE)), yes) | ||
| 243 | OPT_DEFS += -DUSE_CIE1931_CURVE | ||
| 244 | LED_TABLES = yes | ||
| 245 | endif | ||
| 246 | |||
| 247 | ifeq ($(strip $(LED_BREATHING_TABLE)), yes) | ||
| 248 | OPT_DEFS += -DUSE_LED_BREATHING_TABLE | ||
| 249 | LED_TABLES = yes | ||
| 250 | endif | ||
| 251 | |||
| 252 | ifeq ($(strip $(LED_TABLES)), yes) | ||
| 253 | SRC += $(QUANTUM_DIR)/led_tables.c | ||
| 254 | endif | ||
| 255 | |||
| 256 | # Optimize size but this may cause error "relocation truncated to fit" | 134 | # Optimize size but this may cause error "relocation truncated to fit" |
| 257 | #EXTRALDFLAGS = -Wl,--relax | 135 | #EXTRALDFLAGS = -Wl,--relax |
| 258 | 136 | ||
