aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-07-19 23:59:35 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-07-20 10:44:31 -0400
commit4a6254fac3ae27d5c17a7d0acb94a263aeed4da1 (patch)
tree03600085489176409f34d7f9e1ad7d51b18ec62d /src/Makefile
parent649d26e093497991ebc1a89f4a5cfeb29d4602d4 (diff)
downloadkutter-4a6254fac3ae27d5c17a7d0acb94a263aeed4da1.tar.gz
kutter-4a6254fac3ae27d5c17a7d0acb94a263aeed4da1.tar.xz
kutter-4a6254fac3ae27d5c17a7d0acb94a263aeed4da1.zip
build: Allow boards to disable digital input/output support
Allow the micro-controller code to be built without support for regular gpio pins. In this case, the code for endstops, steppers, and gpiocmds will be disabled. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index b61e8100..ce626faa 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,7 @@
# Main code build rules
-src-y += sched.c command.c stepper.c basecmd.c debugcmds.c gpiocmds.c endstop.c
+src-y += sched.c command.c basecmd.c debugcmds.c
+src-$(CONFIG_HAVE_GPIO) += gpiocmds.c stepper.c endstop.c
src-$(CONFIG_HAVE_GPIO_ADC) += adccmds.c
src-$(CONFIG_HAVE_GPIO_SPI) += spicmds.c
src-$(CONFIG_HAVE_GPIO_HARD_PWM) += pwmcmds.c