Revision 2c89d7e2
modules/DiWheelDrive_1-1/Makefile | ||
---|---|---|
294 | 294 |
# End of user defines # |
295 | 295 |
################################################################################ |
296 | 296 |
|
297 |
################################################################################ |
|
298 |
# Start of targets section # |
|
299 |
# # |
|
297 | 300 |
|
301 |
# all and its dependencies |
|
302 |
BUILDDIR = ./build |
|
298 | 303 |
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC |
299 | 304 |
include $(RULESPATH)/rules.mk |
300 | 305 |
|
301 |
include ../flash.mk |
|
306 |
# flash |
|
307 |
include $(AMIROOS)/bootloader/bootloader.mk |
|
308 |
FLASH_MODULES = $(PROJECT) |
|
309 |
FLASH_FILES = $(BUILDDIR)/$(PROJECT).$(FLASHTOOL_EXT) |
|
310 |
|
|
311 |
flash: $(FLASH_FILES) |
|
312 |
$(info ) |
|
313 |
ifeq ($(FLASHTOOL),SerialBoot) |
|
314 |
$(info Flashing ($(FLASHTOOL)):) |
|
315 |
$(FLASHTOOL_CMD) $(FLASHTOOL_ARGS) |
|
316 |
else |
|
317 |
$(info ERROR: unable to flash the module (SerialBoot unavailable)) |
|
318 |
endif |
|
319 |
|
|
320 |
# # |
|
321 |
# End of targets section # |
|
322 |
################################################################################ |
|
323 |
|
modules/LightRing_1-0/Makefile | ||
---|---|---|
294 | 294 |
# End of user defines # |
295 | 295 |
################################################################################ |
296 | 296 |
|
297 |
################################################################################ |
|
298 |
# Start of targets section # |
|
299 |
# # |
|
297 | 300 |
|
301 |
# all and its dependencies |
|
302 |
BUILDDIR = ./build |
|
298 | 303 |
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC |
299 | 304 |
include $(RULESPATH)/rules.mk |
300 | 305 |
|
301 |
include ../flash.mk |
|
306 |
# flash |
|
307 |
include $(AMIROOS)/bootloader/bootloader.mk |
|
308 |
FLASH_MODULES = $(PROJECT) |
|
309 |
FLASH_FILES = $(BUILDDIR)/$(PROJECT).$(FLASHTOOL_EXT) |
|
310 |
|
|
311 |
flash: $(FLASH_FILES) |
|
312 |
$(info ) |
|
313 |
ifeq ($(FLASHTOOL),SerialBoot) |
|
314 |
$(info Flashing ($(FLASHTOOL)):) |
|
315 |
$(FLASHTOOL_CMD) $(FLASHTOOL_ARGS) |
|
316 |
else |
|
317 |
$(info ERROR: unable to flash the module (SerialBoot unavailable)) |
|
318 |
endif |
|
319 |
|
|
320 |
# # |
|
321 |
# End of targets section # |
|
322 |
################################################################################ |
|
323 |
|
modules/PowerManagement_1-1/Makefile | ||
---|---|---|
294 | 294 |
# End of user defines # |
295 | 295 |
################################################################################ |
296 | 296 |
|
297 |
################################################################################ |
|
298 |
# Start of targets section # |
|
299 |
# # |
|
297 | 300 |
|
301 |
# all and its dependencies |
|
302 |
BUILDDIR = ./build |
|
298 | 303 |
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC |
299 | 304 |
include $(RULESPATH)/rules.mk |
300 | 305 |
|
301 |
include ../flash.mk |
|
306 |
# flash |
|
307 |
include $(AMIROOS)/bootloader/bootloader.mk |
|
308 |
FLASH_MODULES = $(PROJECT) |
|
309 |
FLASH_FILES = $(BUILDDIR)/$(PROJECT).$(FLASHTOOL_EXT) |
|
310 |
|
|
311 |
flash: $(FLASH_FILES) |
|
312 |
$(info ) |
|
313 |
ifeq ($(FLASHTOOL),SerialBoot) |
|
314 |
$(info Flashing ($(FLASHTOOL)):) |
|
315 |
$(FLASHTOOL_CMD) $(FLASHTOOL_ARGS) |
|
316 |
else |
|
317 |
$(info ERROR: unable to flash the module (SerialBoot unavailable)) |
|
318 |
endif |
|
319 |
|
|
320 |
# # |
|
321 |
# End of targets section # |
|
322 |
################################################################################ |
|
323 |
|
modules/STM32F4Discovery/Makefile | ||
---|---|---|
294 | 294 |
# End of user defines # |
295 | 295 |
################################################################################ |
296 | 296 |
|
297 |
################################################################################ |
|
298 |
# Start of targets section # |
|
299 |
# # |
|
297 | 300 |
|
301 |
# all and its dependencies |
|
302 |
BUILDDIR = ./build |
|
298 | 303 |
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC |
299 | 304 |
include $(RULESPATH)/rules.mk |
300 | 305 |
|
306 |
# flash |
|
301 | 307 |
include $(AMIROOS)/bootloader/bootloader.mk |
302 | 308 |
|
303 |
flash: build/$(PROJECT).elf
|
|
309 |
flash: $(BUILDDIR)/$(PROJECT).elf
|
|
304 | 310 |
openocd -f interface/stlink-v2-1.cfg -c "set WORKAREASIZE 0x2000" -f target/stm32f4x.cfg -c "program build/$(PROJECT).elf verify reset exit" |
305 | 311 |
|
312 |
# # |
|
313 |
# End of targets section # |
|
314 |
################################################################################ |
|
315 |
|
modules/flash.mk | ||
---|---|---|
1 |
################################################################################ |
|
2 |
# AMiRo-OS is an operating system designed for the Autonomous Mini Robot # |
|
3 |
# (AMiRo) platform. # |
|
4 |
# Copyright (C) 2016..2018 Thomas Schöpping et al. # |
|
5 |
# # |
|
6 |
# This program is free software: you can redistribute it and/or modify # |
|
7 |
# it under the terms of the GNU General Public License as published by # |
|
8 |
# the Free Software Foundation, either version 3 of the License, or # |
|
9 |
# (at your option) any later version. # |
|
10 |
# # |
|
11 |
# This program is distributed in the hope that it will be useful, # |
|
12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
|
13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
|
14 |
# GNU General Public License for more details. # |
|
15 |
# # |
|
16 |
# You should have received a copy of the GNU General Public License # |
|
17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. # |
|
18 |
# # |
|
19 |
# This research/work was supported by the Cluster of Excellence Cognitive # |
|
20 |
# Interaction Technology 'CITEC' (EXC 277) at Bielefeld University, which is # |
|
21 |
# funded by the German Research Foundation (DFG). # |
|
22 |
################################################################################ |
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
# the path to this makefile |
|
27 |
FLASH_DIR := $(dir $(lastword $(MAKEFILE_LIST))) |
|
28 |
|
|
29 |
include $(FLASH_DIR)../bootloader/bootloader.mk |
|
30 |
|
|
31 |
# the files to flash |
|
32 |
ifdef PROJECT |
|
33 |
FLASH_MODULES = $(PROJECT) |
|
34 |
FLASH_FILES = build/$(PROJECT).$(FLASHTOOL_EXT) |
|
35 |
else |
|
36 |
FLASH_MODULES = $(MODULES) |
|
37 |
FLASH_FILES = $(foreach module,$(MODULES),$(module)/build/$(module).$(FLASHTOOL_EXT)) |
|
38 |
endif |
|
39 |
|
|
40 |
flash: $(FLASH_FILES) |
|
41 |
$(info ) |
|
42 |
ifeq ($(FLASHTOOL),SerialBoot) |
|
43 |
$(info Flashing ($(FLASHTOOL)):) |
|
44 |
$(FLASHTOOL_CMD) $(FLASHTOOL_ARGS) |
|
45 |
else |
|
46 |
$(info ERROR: unable to flash the module (SerialBoot unavailable)) |
|
47 |
endif |
|
48 |
|
Also available in: Unified diff