aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-07-09 07:57:14 -0700
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-07-09 07:57:14 -0700
commit6cccc22be933d0ee59368979bc58c3a7d02e3d7b (patch)
tree435cd8dc45d7264f59806f2aaf36b25542137fe6 /common_features.mk
parent3184303037ed3344c145d2cd8751a2c550631a78 (diff)
downloadqmk_firmware-6cccc22be933d0ee59368979bc58c3a7d02e3d7b.tar.gz
qmk_firmware-6cccc22be933d0ee59368979bc58c3a7d02e3d7b.zip
Use QUANTUM_LIB_SRC for i2c_master.c inclusion (#5617)
Using QUANTUM_LIB_SRC prevents the warning when multiple sources add the i2c_master.c file. Boards such as the Ergodox EZ Glow see this warning every time they compile because the board uses the file in general, and because the RGB LED Matrix requires it, as well.
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/common_features.mk b/common_features.mk
index 7c35f07d5..3296424a1 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -133,7 +133,7 @@ ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731)
133 OPT_DEFS += -DIS31FL3731 133 OPT_DEFS += -DIS31FL3731
134 COMMON_VPATH += $(DRIVER_PATH)/issi 134 COMMON_VPATH += $(DRIVER_PATH)/issi
135 SRC += is31fl3731-simple.c 135 SRC += is31fl3731-simple.c
136 SRC += i2c_master.c 136 QUANTUM_LIB_SRC += i2c_master.c
137endif 137endif
138 138
139RGB_MATRIX_ENABLE ?= no 139RGB_MATRIX_ENABLE ?= no
@@ -157,21 +157,21 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
157 OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE 157 OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE
158 COMMON_VPATH += $(DRIVER_PATH)/issi 158 COMMON_VPATH += $(DRIVER_PATH)/issi
159 SRC += is31fl3731.c 159 SRC += is31fl3731.c
160 SRC += i2c_master.c 160 QUANTUM_LIB_SRC += i2c_master.c
161endif 161endif
162 162
163ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3733) 163ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3733)
164 OPT_DEFS += -DIS31FL3733 -DSTM32_I2C -DHAL_USE_I2C=TRUE 164 OPT_DEFS += -DIS31FL3733 -DSTM32_I2C -DHAL_USE_I2C=TRUE
165 COMMON_VPATH += $(DRIVER_PATH)/issi 165 COMMON_VPATH += $(DRIVER_PATH)/issi
166 SRC += is31fl3733.c 166 SRC += is31fl3733.c
167 SRC += i2c_master.c 167 QUANTUM_LIB_SRC += i2c_master.c
168endif 168endif
169 169
170ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3737) 170ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3737)
171 OPT_DEFS += -DIS31FL3737 -DSTM32_I2C -DHAL_USE_I2C=TRUE 171 OPT_DEFS += -DIS31FL3737 -DSTM32_I2C -DHAL_USE_I2C=TRUE
172 COMMON_VPATH += $(DRIVER_PATH)/issi 172 COMMON_VPATH += $(DRIVER_PATH)/issi
173 SRC += is31fl3737.c 173 SRC += is31fl3737.c
174 SRC += i2c_master.c 174 QUANTUM_LIB_SRC += i2c_master.c
175endif 175endif
176 176
177ifeq ($(strip $(RGB_MATRIX_ENABLE)), WS2812) 177ifeq ($(strip $(RGB_MATRIX_ENABLE)), WS2812)
@@ -271,7 +271,7 @@ ifeq ($(strip $(HAPTIC_ENABLE)), DRV2605L)
271 COMMON_VPATH += $(DRIVER_PATH)/haptic 271 COMMON_VPATH += $(DRIVER_PATH)/haptic
272 SRC += haptic.c 272 SRC += haptic.c
273 SRC += DRV2605L.c 273 SRC += DRV2605L.c
274 SRC += i2c_master.c 274 QUANTUM_LIB_SRC += i2c_master.c
275 OPT_DEFS += -DHAPTIC_ENABLE 275 OPT_DEFS += -DHAPTIC_ENABLE
276 OPT_DEFS += -DDRV2605L 276 OPT_DEFS += -DDRV2605L
277endif 277endif