From 04e7eb20fd9b65addcbb4773fdb7b6be9dbf6195 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 9 Apr 2025 12:36:24 -0400 Subject: Kconfig: Add new WANT_I2C option to reduce code size Make it possible to not compile in support for I2C on chips with small flash sizes. Signed-off-by: Kevin O'Connor --- src/rp2040/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rp2040') diff --git a/src/rp2040/Makefile b/src/rp2040/Makefile index e9884f0e..359d99c1 100644 --- a/src/rp2040/Makefile +++ b/src/rp2040/Makefile @@ -30,7 +30,7 @@ src-$(CONFIG_USBCANBUS) += generic/canserial.c generic/usb_canbus.c src-$(CONFIG_USBCANBUS) += ../lib/fast-hash/fasthash.c rp2040/usbserial.c src-$(CONFIG_WANT_HARD_PWM) += rp2040/hard_pwm.c src-$(CONFIG_WANT_SPI) += rp2040/spi.c -src-$(CONFIG_HAVE_GPIO_I2C) += rp2040/i2c.c +src-$(CONFIG_WANT_I2C) += rp2040/i2c.c # rp2040 stage2 building STAGE2_FILE := $(shell echo $(CONFIG_RP2040_STAGE2_FILE)) -- cgit v1.2.3-70-g09d2