aboutsummaryrefslogtreecommitdiffstats
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorGravatar Fred Sundvik <fsundvik@gmail.com>2017-04-01 17:43:38 +0300
committerGravatar Fred Sundvik <fsundvik@gmail.com>2017-04-09 18:34:59 +0300
commitf113f95440f8cd7377930868656caf515dbd609c (patch)
treec5cc985994fc17b8344605d83769882416f7cec4 /build_keyboard.mk
parentbc97413bf70b1906b387dea35bb22575ec57eff8 (diff)
downloadqmk_firmware-f113f95440f8cd7377930868656caf515dbd609c.tar.gz
Move CIE1931 and breathing tables to its own file
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk23
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)
OPT_DEFS += -DRGBLIGHT_ENABLE
SRC += $(QUANTUM_DIR)/light_ws2812.c
SRC += $(QUANTUM_DIR)/rgblight.c
+ CIE1931_CURVE = yes
+ LED_BREATHING_TABLE = yes
endif
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
@@ -223,6 +225,27 @@ ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),)
endif
endif
+ifeq ($(strip $(LCD_ENABLE)), yes)
+CIE1931_CURVE = yes
+endif
+
+ifeq ($(strip $(LED_ENABLE)), yes)
+CIE1931_CURVE = yes
+endif
+
+ifeq ($(strip $(CIE1931_CURVE)), yes)
+ OPT_DEFS += -DUSE_CIE1931_CURVE
+ LED_TABLES = yes
+endif
+ifeq ($(strip $(LED_BREATHING_TABLE)), yes)
+ OPT_DEFS += -DUSE_LED_BREATHING_TABLE
+ LED_TABLES = yes
+endif
+
+ifeq ($(strip $(LED_TABLES)), yes)
+ SRC += $(QUANTUM_DIR)/led_tables.c
+endif
+
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax