summaryrefslogtreecommitdiff
path: root/drivers/qwiic
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-01-04 08:45:43 +1100
committerGitHub <noreply@github.com>2021-01-04 08:45:43 +1100
commit34446b79d7a17ba6e753d39956ebb5e871618d84 (patch)
treeb752b7a080dc8465245592f036433cf5c199e1fa /drivers/qwiic
parentb7d4a9dc25052807cfbdf351819bb47f1808128d (diff)
Split up QWIIC_ENABLE to use QWIIC_DRIVERS as well, with yes/no for enable flag. (#11426)
Diffstat (limited to 'drivers/qwiic')
-rw-r--r--drivers/qwiic/qwiic.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/qwiic/qwiic.mk b/drivers/qwiic/qwiic.mk
index b23c25657d..164bd72108 100644
--- a/drivers/qwiic/qwiic.mk
+++ b/drivers/qwiic/qwiic.mk
@@ -1,16 +1,17 @@
-ifneq ($(strip $(QWIIC_ENABLE)),)
+ifeq ($(strip $(QWIIC_ENABLE)),yes)
COMMON_VPATH += $(DRIVER_PATH)/qwiic
OPT_DEFS += -DQWIIC_ENABLE
SRC += qwiic.c
QUANTUM_LIB_SRC += i2c_master.c
-endif
-ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),)
+ifneq ($(filter JOYSTIIC, $(QWIIC_DRIVERS)),)
OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE
SRC += joystiic.c
endif
-ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),)
+ifneq ($(filter MICRO_OLED, $(QWIIC_DRIVERS)),)
OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
SRC += micro_oled.c
endif
+
+endif