1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/mcuboot/Makefile
Gaëtan Harter 24a54fe853
tests/mcuboot: handle building 'mcuboot' in docker
When using BUILD_IN_DOCKER only make 'all' execute 'mcuboot' target when
inside the container. Otherwise it will execute it using your host
toolchain.

This is a hack and could be prevented by having a file target put in
FLASHFILE.

This does currently not allow flashing after building in docker as
flashing should be done with `mcuboot-flash` which will not be done in
docker. It would require the `FLASHFILE` fix to be done properly.
2019-06-03 18:09:32 +02:00

16 lines
334 B
Makefile

BOARD ?= nrf52dk
include ../Makefile.tests_common
BOARD_WHITELIST := nrf52dk
export IMAGE_VERSION = 1.1.1+1
# this test is supposed to always build the mcuboot image
ifneq ($(BUILD_IN_DOCKER),1)
# HACK: When building with docker, mcuboot target must be done only in docker
all: mcuboot
endif
include $(RIOTBASE)/Makefile.include