mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f1c57b21ec
The tests overrides the target all to be tested by the CI. All the instructions how to use it are in README.md The test is successful if the image boots and displays information about the image and running slot. Co-authored-by: Federico Pellegrin <fede@evolware.org>
35 lines
1000 B
Makefile
35 lines
1000 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
|
|
|
|
all: riotboot
|
|
|
|
include ../Makefile.tests_common
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# Make 'flash' and 'flash-only' work without specific command.
|
|
# This is currently hacky as there is no way of specifiying a FLASHFILE
|
|
all: riotboot/combined-slot0
|
|
# openocd
|
|
ELFFILE = $(BINDIR_APP)-slot0-combined.bin
|
|
# edbg
|
|
HEXFILE = $(BINDIR_APP)-slot0-combined.bin
|
|
# murdock uses ':=' to get the flashfile variable so should also be overwritten
|
|
FLASHFILE = $(BINDIR_APP)-slot0-combined.bin
|