1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/sys/suit_manifest/Makefile
Frederik Haxel 5ed0bafc92 examples, tests: Changes for the native64 board
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00

46 lines
1.3 KiB
Makefile

include ../Makefile.sys_common
USEMODULE += suit suit_storage_ram
USEMODULE += suit_transport_mock
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
BLOBS += $(MANIFEST_DIR)/manifest4.bin
BLOBS += $(MANIFEST_DIR)/file1.bin
BLOBS += $(MANIFEST_DIR)/file2.bin
CFLAGS += -DCONFIG_SUIT_COMPONENT_MAX=2
# Use a version of 'native' that includes flash page support
ifneq (,$(filter native native64,$(BOARD)))
EXTERNAL_BOARD_DIRS = $(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 $@