Revision 1678f270 modules/DiWheelDrive_1-1/Makefile

View differences:

modules/DiWheelDrive_1-1/Makefile
1 1
################################################################################
2 2
# AMiRo-OS is an operating system designed for the Autonomous Mini Robot       #
3 3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2016..2018  Thomas Schöpping et al.                            #
4
# Copyright (C) 2016..2019  Thomas Schöpping et al.                            #
5 5
#                                                                              #
6 6
# This program is free software: you can redistribute it and/or modify         #
7 7
# it under the terms of the GNU General Public License as published by         #
......
119 119
include ../../kernel/kernel.mk
120 120
CHIBIOS := $(AMIROOS_KERNEL)
121 121
AMIROOS = ../..
122
# Licensing files
123
include $(CHIBIOS)/os/license/license.mk
122 124
# Startup files
123 125
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
124 126
# HAL-OSAL files
125 127
include $(CHIBIOS)/os/hal/hal.mk
126 128
include $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/platform.mk
127
include ./board.mk
128 129
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
129 130
# RTOS files
130 131
include $(CHIBIOS)/os/rt/rt.mk
......
132 133
# Other files (optional).
133 134
include $(CHIBIOS)/test/lib/test.mk
134 135
include $(CHIBIOS)/test/rt/rt_test.mk
136
include $(CHIBIOS)/test/oslib/oslib_test.mk
135 137
# AMiRo-BLT files
136 138
include ../../bootloader/bootloader.mk
137 139
# AMiRo-LLD files
......
142 144
include $(AMIROOS)/unittests/unittests.mk
143 145

  
144 146
# Define linker script file here
145
LDSCRIPT= $(BOARDLD)/STM32F103xE.ld
147
LDSCRIPT= STM32F103xE.ld
146 148

  
147 149
# C sources that can be compiled in ARM or THUMB mode depending on the global
148 150
# setting.
149
CSRC = $(STARTUPSRC) \
151
CSRC = $(LICSRC) \
152
       $(STARTUPSRC) \
150 153
       $(KERNSRC) \
151 154
       $(PORTSRC) \
152 155
       $(OSALSRC) \
153 156
       $(HALSRC) \
154 157
       $(PLATFORMSRC) \
155
       $(BOARDSRC) \
156 158
       $(MODULESCSRC) \
157 159
       $(TESTSRC) \
158 160
       $(PERIPHERYLLDCSRC) \
......
161 163
       $(CHIBIOS)/os/various/evtimer.c \
162 164
       $(CHIBIOS)/os/various/syscalls.c \
163 165
       $(CHIBIOS)/os/hal/lib/streams/chprintf.c \
166
       board.c \
164 167
       module.c \
165 168
       $(APPSCSRC)
166 169

  
167 170
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
168 171
# setting.
169 172
CPPSRC = $(AMIROOSCORECPPSRC) \
173
         $(CHIBIOS)/os/various/cpp_wrappers/syscalls_cpp.cpp \
170 174
         $(APPSCPPSRC)
171 175

  
172 176
# C sources to be compiled in ARM mode regardless of the global setting.
......
196 200
          $(OSALASM) \
197 201
          $(APPSASMXSRC)
198 202

  
199
INCDIR = $(CHIBIOS)/os/license \
203
INCDIR = $(LICINC) \
200 204
         $(STARTUPINC) \
201 205
         $(KERNINC) \
202 206
         $(PORTINC) \
203 207
         $(OSALINC) \
204 208
         $(HALINC) \
205 209
         $(PLATFORMINC) \
206
         $(BOARDINC) \
207 210
         $(MODULESINC) \
208 211
         $(TESTINC) \
209 212
         $(BOOTLOADERINC) \
......
290 293
# End of user defines                                                          #
291 294
################################################################################
292 295

  
296
################################################################################
297
# Start of targets section                                                     #
298
#                                                                              #
293 299

  
300
# all and its dependencies
301
BUILDDIR = ./build
294 302
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
295 303
include $(RULESPATH)/rules.mk
296 304

  
297
include ../flash.mk
305
# flash
306
include $(AMIROOS)/bootloader/bootloader.mk
307
FLASH_MODULES = $(PROJECT)
308
FLASH_FILES = $(BUILDDIR)/$(PROJECT).$(FLASHTOOL_EXT)
309

  
310
flash: $(FLASH_FILES)
311
	$(info )
312
ifeq ($(FLASHTOOL),SerialBoot)
313
	$(info Flashing ($(FLASHTOOL)):)
314
	$(FLASHTOOL_CMD) $(FLASHTOOL_ARGS)
315
else
316
	$(info ERROR: unable to flash the module (SerialBoot unavailable))
317
endif
318

  
319
#                                                                              #
320
# End of targets section                                                       #
321
################################################################################
322

  

Also available in: Unified diff