Kconfig: Add new WANT_ADC option to reduce code size
Make it possible to not compile in support for ADC on chips with small flash sizes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -17,7 +17,7 @@ CFLAGS_pru1.elf := $(CFLAGS)
|
||||
|
||||
# Add source files
|
||||
src-y += pru/main.c pru/gpio.c generic/timer_irq.c
|
||||
src-$(CONFIG_HAVE_GPIO_ADC) += pru/adc.c
|
||||
src-$(CONFIG_WANT_ADC) += pru/adc.c
|
||||
|
||||
pru0-y := pru/pru0.c generic/crc16_ccitt.c command.c
|
||||
pru0-y += ../lib/pru_rpmsg/pru_rpmsg.c ../lib/pru_rpmsg/pru_virtqueue.c
|
||||
|
||||
Reference in New Issue
Block a user