diff options
| author | Nick Brassel <nick@tzarc.org> | 2021-01-04 08:45:43 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 08:45:43 +1100 |
| commit | 34446b79d7a17ba6e753d39956ebb5e871618d84 (patch) | |
| tree | b752b7a080dc8465245592f036433cf5c199e1fa /drivers | |
| parent | b7d4a9dc25052807cfbdf351819bb47f1808128d (diff) | |
| download | qmk_firmware-34446b79d7a17ba6e753d39956ebb5e871618d84.tar.gz qmk_firmware-34446b79d7a17ba6e753d39956ebb5e871618d84.zip | |
Split up QWIIC_ENABLE to use QWIIC_DRIVERS as well, with yes/no for enable flag. (#11426)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/qwiic/qwiic.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/qwiic/qwiic.mk b/drivers/qwiic/qwiic.mk index b23c25657..164bd7210 100644 --- a/drivers/qwiic/qwiic.mk +++ b/drivers/qwiic/qwiic.mk | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | ifneq ($(strip $(QWIIC_ENABLE)),) | 1 | ifeq ($(strip $(QWIIC_ENABLE)),yes) |
| 2 | COMMON_VPATH += $(DRIVER_PATH)/qwiic | 2 | COMMON_VPATH += $(DRIVER_PATH)/qwiic |
| 3 | OPT_DEFS += -DQWIIC_ENABLE | 3 | OPT_DEFS += -DQWIIC_ENABLE |
| 4 | SRC += qwiic.c | 4 | SRC += qwiic.c |
| 5 | QUANTUM_LIB_SRC += i2c_master.c | 5 | QUANTUM_LIB_SRC += i2c_master.c |
| 6 | endif | ||
| 7 | 6 | ||
| 8 | ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),) | 7 | ifneq ($(filter JOYSTIIC, $(QWIIC_DRIVERS)),) |
| 9 | OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE | 8 | OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE |
| 10 | SRC += joystiic.c | 9 | SRC += joystiic.c |
| 11 | endif | 10 | endif |
| 12 | 11 | ||
| 13 | ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),) | 12 | ifneq ($(filter MICRO_OLED, $(QWIIC_DRIVERS)),) |
| 14 | OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE | 13 | OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE |
| 15 | SRC += micro_oled.c | 14 | SRC += micro_oled.c |
| 16 | endif | 15 | endif |
| 16 | |||
| 17 | endif | ||
