summaryrefslogtreecommitdiff
path: root/src/Makefile.proto
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-06 20:56:25 -0800
committerKeith Packard <keithp@keithp.com>2011-03-16 15:57:37 -0700
commit02611efea0c485d78fad08c696c1f56e868d36b8 (patch)
treef51ef97cbc62c88a9084c4de05d4446de58e7142 /src/Makefile.proto
parentfdd15a254c6fab5ba2d02320ba0ceb3e6a56354c (diff)
altos: Make serial, usb, beeper and accelerometer optional components
Not all boards will have these, so fix places that use them to deal with that. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/Makefile.proto')
-rw-r--r--src/Makefile.proto23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/Makefile.proto b/src/Makefile.proto
index 709cbca7..30cd5798 100644
--- a/src/Makefile.proto
+++ b/src/Makefile.proto
@@ -42,11 +42,15 @@ ALTOS_SRC = \
# Shared AltOS drivers
#
ALTOS_DRIVER_SRC = \
- ao_beep.c \
ao_config.c \
ao_led.c \
ao_radio.c \
- ao_stdio.c \
+ ao_stdio.c
+
+BEEP_DRIVER_SRC = \
+ ao_beep.c
+
+USB_DRIVER_SRC = \
ao_usb.c
TELE_COMMON_SRC = \
@@ -68,7 +72,12 @@ TELE_RECEIVER_SRC =\
#
TELE_DRIVER_SRC = \
- ao_convert.c \
+ ao_convert.c
+
+#
+# Serial port driver
+#
+SERIAL_DRIVER_SRC = \
ao_serial.c
#
@@ -89,7 +98,9 @@ DBG_SRC = \
TM_DRIVER_SRC = \
ao_adc.c \
ao_gps_report.c \
- ao_ignite.c
+ ao_ignite.c \
+ $(BEEP_DRIVER_SRC) \
+ $(USB_DRIVER_SRC)
#
# 25LC1024 driver source
@@ -142,6 +153,7 @@ TM_BASE_SRC = \
$(ALTOS_SRC) \
$(ALTOS_DRIVER_SRC) \
$(TELE_DRIVER_SRC) \
+ $(SERIAL_DRIVER_SRC) \
$(TELE_COMMON_SRC) \
$(TM_DRIVER_SRC) \
$(TM_TASK_SRC) \
@@ -158,6 +170,7 @@ TI_SRC = \
$(ALTOS_DRIVER_SRC) \
$(TELE_RECEIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(USB_DRIVER_SRC) \
$(TI_MAIN_SRC) \
$(DBG_SRC)
@@ -172,6 +185,7 @@ TT_SRC = \
$(TELE_RECEIVER_SRC) \
$(TELE_DRIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(USB_DRIVER_SRC) \
$(TT_MAIN_SRC)
@@ -187,6 +201,7 @@ TD_SRC = \
$(ALTOS_DRIVER_SRC) \
$(TELE_RECEIVER_SRC) \
$(TELE_COMMON_SRC) \
+ $(USB_DRIVER_SRC) \
$(TD_MAIN_SRC)
include Makefile.defs