diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-08 19:32:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-13 23:18:59 -0400 |
commit | 71947d6beafe118259ca2805dbb21fac5ab3b165 (patch) | |
tree | 27e5aece7a81832d6512f0eefe6925dccf5e0ed4 /Makefile | |
parent | 220a1e419760e4854f5b4ad9565f1c42e75f7bc2 (diff) | |
download | kutter-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 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,8 +25,8 @@ CPP=cpp PYTHON=python # Source files -src-y=sched.c command.c stepper.c basecmd.c gpiocmds.c spicmds.c endstop.c -dirs-y=src +src-y = +dirs-y = src # Default compiler flags cc-option=$(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`" \ @@ -58,6 +58,7 @@ MAKEFLAGS += --no-print-directory endif # Include board specific makefile +include src/Makefile -include src/$(patsubst "%",%,$(CONFIG_BOARD_DIRECTORY))/Makefile ################ Common build rules |