summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-05-28 13:49:46 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-05-28 13:49:46 +0200
commitcf3ba89c46301bb8c0a1eda470c353801117fc0b (patch)
tree4b9c954fc1af7fce01bbae8106a56a586a2d170c /Makefile
parent060efcf52cb596194a037b4e11f5035fc969efd6 (diff)
softi2c driver: move to kconfig-first approach
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index dde01f3..acd8aef 100644
--- a/Makefile
+++ b/Makefile
@@ -279,7 +279,7 @@ endif
ifdef CONFIG_driver_softi2c
CXX_TARGETS += src/driver/soft_i2c.cc
- COMMON_FLAGS += -DDRIVER_SOFTI2C
+ COMMON_FLAGS += -DCONFIG_driver_softi2c
endif
ifdef CONFIG_meta_driver_hardware_i2c
@@ -318,25 +318,25 @@ ifdef CONFIG_driver_softi2c_pullup_dynamic_internal
softi2c_pullup=internal
endif
ifeq (${softi2c_pullup}, internal)
- COMMON_FLAGS += -DSOFTI2C_PULLUP_INTERNAL
+ COMMON_FLAGS += -DCONFIG_driver_softi2c_pullup_dynamic_internal
endif
ifdef CONFIG_driver_softi2c_pullup_dynamic_external
softi2c_pullup=external
endif
ifeq (${softi2c_pullup}, external)
- COMMON_FLAGS += -DSOFTI2C_PULLUP_EXTERNAL
+ COMMON_FLAGS += -DCONFIG_driver_softi2c_pullup_dynamic_external
endif
ifdef CONFIG_driver_softi2c_pullup_external
softi2c_pullup=gpio
endif
ifeq (${softi2c_pullup}, gpio)
- COMMON_FLAGS += -DSOFTI2C_PULLUP_FIXED_GPIO
+ COMMON_FLAGS += -DCONFIG_driver_softi2c_pullup_external
endif
ifeq (${i2c_pullup}, gpio)
- COMMON_FLAGS += -DI2C_PULLUP_FIXED_GPIO
+ COMMON_FLAGS += -DCONFIG_I2C_PULLUP_FIXED_GPIO
endif
ifeq (${softi2c_timer}, 1)