|
@@ -82,6 +82,7 @@ PROJECT = pd-buddy-firmware
|
82
|
82
|
|
83
|
83
|
# Imported source files and paths
|
84
|
84
|
CHIBIOS = ChibiOS
|
|
85
|
+PDBLIB = lib
|
85
|
86
|
# Startup files.
|
86
|
87
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk
|
87
|
88
|
# HAL-OSAL files (optional).
|
|
@@ -94,6 +95,7 @@ include $(CHIBIOS)/os/rt/rt.mk
|
94
|
95
|
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
|
95
|
96
|
# Other files (optional).
|
96
|
97
|
include $(CHIBIOS)/test/rt/test.mk
|
|
98
|
+include $(PDBLIB)/pd-buddy.mk
|
97
|
99
|
|
98
|
100
|
# Define linker script file here
|
99
|
101
|
LDSCRIPT=$(CHIBIOS)/../ld/STM32F072x8.ld
|
|
@@ -109,6 +111,7 @@ CSRC = $(STARTUPSRC) \
|
109
|
111
|
$(BOARDSRC) \
|
110
|
112
|
$(TESTSRC) \
|
111
|
113
|
$(CHIBIOS)/os/hal/lib/streams/chprintf.c \
|
|
114
|
+ $(PDBSRC) \
|
112
|
115
|
$(wildcard src/*.c)
|
113
|
116
|
|
114
|
117
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
|
@@ -141,6 +144,7 @@ ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
141
|
144
|
INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
142
|
145
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
143
|
146
|
$(CHIBIOS)/os/hal/lib/streams $(CHIBIOS)/os/various \
|
|
147
|
+ $(PDBINC) \
|
144
|
148
|
config
|
145
|
149
|
|
146
|
150
|
#
|