From c20f99374701709888644f7a5d849985ac29fdf9 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Jun 2016 19:35:45 -0400 Subject: spicmds: Add Kconfig option to allow boards to disable SPI commands Some boards may not support SPI transfers. Update the build so that those commands do not need to be compiled if they are not available. Signed-off-by: Kevin O'Connor --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 5a640863..5c7dc085 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,5 @@ # Main code build rules -src-y += sched.c command.c stepper.c basecmd.c gpiocmds.c spicmds.c endstop.c +src-y += sched.c command.c stepper.c basecmd.c gpiocmds.c endstop.c src-$(CONFIG_HAVE_GPIO_ADC) += adccmds.c +src-$(CONFIG_HAVE_GPIO_SPI) += spicmds.c -- cgit v1.2.3-70-g09d2