aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-09 12:36:24 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-04-16 13:54:44 -0400
commit04e7eb20fd9b65addcbb4773fdb7b6be9dbf6195 (patch)
tree5a57fe1f0a283e8b5e07a257fdd2af85c493cd50 /src/lpc176x/Makefile
parent868760f5b1013843aff7390bb94adfb4cb3fe679 (diff)
downloadkutter-04e7eb20fd9b65addcbb4773fdb7b6be9dbf6195.tar.gz
kutter-04e7eb20fd9b65addcbb4773fdb7b6be9dbf6195.tar.xz
kutter-04e7eb20fd9b65addcbb4773fdb7b6be9dbf6195.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'src/lpc176x/Makefile')
-rw-r--r--src/lpc176x/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc176x/Makefile b/src/lpc176x/Makefile
index 9a6ecac4..a36e6778 100644
--- a/src/lpc176x/Makefile
+++ b/src/lpc176x/Makefile
@@ -17,7 +17,7 @@ src-y += generic/armcm_boot.c generic/armcm_irq.c generic/armcm_timer.c
src-y += generic/armcm_reset.c generic/crc16_ccitt.c
src-y += ../lib/lpc176x/device/system_LPC17xx.c
src-$(CONFIG_HAVE_GPIO_ADC) += lpc176x/adc.c
-src-$(CONFIG_HAVE_GPIO_I2C) += lpc176x/i2c.c
+src-$(CONFIG_WANT_I2C) += lpc176x/i2c.c
src-$(CONFIG_WANT_SPI) += lpc176x/spi.c
src-$(CONFIG_USBSERIAL) += lpc176x/usbserial.c lpc176x/chipid.c
src-$(CONFIG_USBSERIAL) += generic/usb_cdc.c