Browse Source

Add a skeleton for the library

There are now a few extra lines in the Makefile that make the PD Buddy
firmware library's makefile get included, and the variables it defines
get used.  There's no code to compile or include yet though.
Clara Hobbs 7 years ago
parent
commit
499275a826
2 changed files with 9 additions and 0 deletions
  1. 4
    0
      Makefile
  2. 5
    0
      lib/pd-buddy.mk

+ 4
- 0
Makefile View File

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

+ 5
- 0
lib/pd-buddy.mk View File

1
+# Source files for the PD Buddy firmware library
2
+PDBSRC = $(wildcard $(PDBLIB)/src/*.c)
3
+
4
+# Include directories
5
+PDBINC = $(PDBLIB)/inc

Loading…
Cancel
Save