diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-04-01 17:43:38 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-04-09 18:34:59 +0300 |
commit | f113f95440f8cd7377930868656caf515dbd609c (patch) | |
tree | c5cc985994fc17b8344605d83769882416f7cec4 /build_keyboard.mk | |
parent | bc97413bf70b1906b387dea35bb22575ec57eff8 (diff) | |
download | qmk_firmware-f113f95440f8cd7377930868656caf515dbd609c.tar.gz qmk_firmware-f113f95440f8cd7377930868656caf515dbd609c.zip |
Move CIE1931 and breathing tables to its own file
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r-- | build_keyboard.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index ad92892e2..79d2b6b0f 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -196,6 +196,8 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
196 | OPT_DEFS += -DRGBLIGHT_ENABLE | 196 | OPT_DEFS += -DRGBLIGHT_ENABLE |
197 | SRC += $(QUANTUM_DIR)/light_ws2812.c | 197 | SRC += $(QUANTUM_DIR)/light_ws2812.c |
198 | SRC += $(QUANTUM_DIR)/rgblight.c | 198 | SRC += $(QUANTUM_DIR)/rgblight.c |
199 | CIE1931_CURVE = yes | ||
200 | LED_BREATHING_TABLE = yes | ||
199 | endif | 201 | endif |
200 | 202 | ||
201 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | 203 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) |
@@ -223,6 +225,27 @@ ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),) | |||
223 | endif | 225 | endif |
224 | endif | 226 | endif |
225 | 227 | ||
228 | ifeq ($(strip $(LCD_ENABLE)), yes) | ||
229 | CIE1931_CURVE = yes | ||
230 | endif | ||
231 | |||
232 | ifeq ($(strip $(LED_ENABLE)), yes) | ||
233 | CIE1931_CURVE = yes | ||
234 | endif | ||
235 | |||
236 | ifeq ($(strip $(CIE1931_CURVE)), yes) | ||
237 | OPT_DEFS += -DUSE_CIE1931_CURVE | ||
238 | LED_TABLES = yes | ||
239 | endif | ||
240 | ifeq ($(strip $(LED_BREATHING_TABLE)), yes) | ||
241 | OPT_DEFS += -DUSE_LED_BREATHING_TABLE | ||
242 | LED_TABLES = yes | ||
243 | endif | ||
244 | |||
245 | ifeq ($(strip $(LED_TABLES)), yes) | ||
246 | SRC += $(QUANTUM_DIR)/led_tables.c | ||
247 | endif | ||
248 | |||
226 | # Optimize size but this may cause error "relocation truncated to fit" | 249 | # Optimize size but this may cause error "relocation truncated to fit" |
227 | #EXTRALDFLAGS = -Wl,--relax | 250 | #EXTRALDFLAGS = -Wl,--relax |
228 | 251 | ||