gpiocmds: Add Kconfig option to allow boards to disable ADC commands
Some boards may not support the ADC hardware. Update the build so that those commands do not need to be compiled if they are not available. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
4
src/Makefile
Normal file
4
src/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
# Main code build rules
|
||||
|
||||
src-y += sched.c command.c stepper.c basecmd.c gpiocmds.c spicmds.c endstop.c
|
||||
src-$(CONFIG_HAVE_GPIO_ADC) += adccmds.c
|
||||
Reference in New Issue
Block a user