initial_pins: Only build when CONFIG_HAVE_GPIO is enabled

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-07-24 01:09:45 -04:00
parent 79bd13dba7
commit 634ec46813
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Main code build rules
src-y += sched.c command.c basecmd.c debugcmds.c initial_pins.c
src-$(CONFIG_HAVE_GPIO) += gpiocmds.c stepper.c endstop.c
src-y += sched.c command.c basecmd.c debugcmds.c
src-$(CONFIG_HAVE_GPIO) += initial_pins.c gpiocmds.c stepper.c endstop.c
src-$(CONFIG_HAVE_GPIO_ADC) += adccmds.c
src-$(CONFIG_HAVE_GPIO_SPI) += spicmds.c thermocouple.c
src-$(CONFIG_HAVE_GPIO_I2C) += i2ccmds.c