aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-08 19:32:06 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-13 23:18:59 -0400
commit71947d6beafe118259ca2805dbb21fac5ab3b165 (patch)
tree27e5aece7a81832d6512f0eefe6925dccf5e0ed4 /src/Makefile
parent220a1e419760e4854f5b4ad9565f1c42e75f7bc2 (diff)
downloadkutter-71947d6beafe118259ca2805dbb21fac5ab3b165.tar.gz
kutter-71947d6beafe118259ca2805dbb21fac5ab3b165.tar.xz
kutter-71947d6beafe118259ca2805dbb21fac5ab3b165.zip
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>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 00000000..5a640863
--- /dev/null
+++ b/src/Makefile
@@ -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