1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/riotboot/Makefile
Gaëtan Harter 13e852c58c
tests/riotboot: use FLASHFILE for the generated file
FLASHFILE is now a generated file when doing `make all`.
This prepares also for when flashers will use `FLASHFILE` as a file to
be flashed.

It currently still needs the hack below for openocd and edbg.

This also fixes the issue when building 'riotboot' in docker that was
being built with the host toolchain.
2019-03-05 11:22:11 +01:00

33 lines
890 B
Makefile

# If no BOARD is found in the environment, use this default:
BOARD ?= samr21-xpro
TEST_ON_CI_WHITELIST += all
# Select the boards with riotboot feature
FEATURES_REQUIRED += riotboot
# Include modules to test the bootloader
USEMODULE += riotboot_slot
USEMODULE += shell
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
# Target 'all' will generate the combined file directly.
# It also makes 'flash' and 'flash-only' work without specific command.
FLASHFILE = $(RIOTBOOT_COMBINED_BIN)
include ../Makefile.tests_common
include $(RIOTBASE)/Makefile.include
# This is currently hacky as the flasher are not using 'FLASHFILE'
# openocd
ELFFILE = $(FLASHFILE)
# edbg
HEXFILE = $(FLASHFILE)