1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/suit_manifest/Makefile
Koen Zandberg 413b91326f
tests/suit_v3_manifest: Add draft-ietf-v3 manifest parser test
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00

41 lines
1.1 KiB
Makefile

include ../Makefile.tests_common
USEMODULE += suit
USEMODULE += riotboot_hdr
USEMODULE += embunit
# Lots of structs on the stack and crypto verification
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(8*THREAD_STACKSIZE_DEFAULT\)
# Add a macro for the board name without quotes to use in the include file
# generator macro
CFLAGS += -DBOARD_NAME_UNQ=$(BOARD)
# BINDIR is not included until Makefile.include is parsed
MANIFEST_DIR ?= bin/$(BOARD)/manifests
BLOBS += $(MANIFEST_DIR)/manifest0.bin
BLOBS += $(MANIFEST_DIR)/manifest1.bin
BLOBS += $(MANIFEST_DIR)/manifest2.bin
BLOBS += $(MANIFEST_DIR)/manifest3.bin
USEMODULE += suit_transport_mock
# Use a version of 'native' that includes flash page support
ifeq (native, $(BOARD))
BOARDSDIR = $(CURDIR)/native_flashpage
endif
FEATURES_REQUIRED += periph_flashpage
TEST_DATA = $(MANIFEST_DIR)/created
BUILDDEPS += $(TEST_DATA)
include $(RIOTBASE)/Makefile.include
$(call target-export-variables,all,SUIT_TOOL SUIT_SEC MANIFEST_DIR)
$(TEST_DATA): $(SUIT_SEC) $(SUIT_PUB_HDR)
@mkdir -p $(MANIFEST_DIR)
sh create_test_data.sh
@touch $@