From cf3ba89c46301bb8c0a1eda470c353801117fc0b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 May 2021 13:49:46 +0200 Subject: softi2c driver: move to kconfig-first approach --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3