SUIT: Update to draft-ietf-v3#13486
Conversation
Co-authored-by: Kaspar Schleiser <[email protected]>
47d4508 to
607d5f5
Compare
|
Here is a gist with putting up to date some things in the README. If you agree with the suggestions you can apply squash. |
Thanks! applied |
Pleas squash! |
Co-authored-by: Kaspar Schleiser <[email protected]>
Co-authored-by: Kaspar Schleiser <[email protected]>
02eebb0 to
9f3bc27
Compare
|
Squashed! |
|
Seem there are some boards needing blacklist, and travis has a couple of complaints, Squash right away when addressed. Otherwise there is still this:
|
9f3bc27 to
67e9279
Compare
Added them |
67e9279 to
9f085e5
Compare
9f085e5 to
ed112a4
Compare
ed112a4 to
50ed7b0
Compare
Co-authored-by: Kaspar Schleiser <[email protected]>
Co-authored-by: Kaspar Schleiser <[email protected]>
Co-authored-by: Kaspar Schleiser <[email protected]>
50ed7b0 to
829f592
Compare
|
@kaspar030, @fjmolinas All green here! |
I added the The suit_manifest test doesn't need to be blacklisted, all the crypto handling is done on build servers and those have a sufficiently modern Openssl. |
fjmolinas
left a comment
There was a problem hiding this comment.
All my change requests have been addressed. I have tested the new test and the example. The Readme and documentation are up to date. ACK!
|
🎉 Thanks! |
|
btw.: I now get when building anything. Maybe something like this? diff --git a/Makefile.dep b/Makefile.dep
index 6c07ef3a2..4dc857eba 100644
--- a/Makefile.dep
+++ b/Makefile.dep
@@ -959,6 +959,9 @@ ifneq (,$(filter suit,$(USEMODULE)))
USEMODULE += libcose_crypt_c25519
USEMODULE += uuid
+ BUILDDEPS += $(SUIT_PUB_HDR)
+ CFLAGS += -I$(SUIT_PUB_HDR_DIR)
+
# tests/suit_manifest has some mock implementations,
# only add the non-mock dependencies if not building that test.
ifeq (,$(filter suit_transport_mock,$(USEMODULE)))
diff --git a/makefiles/suit.base.inc.mk b/makefiles/suit.base.inc.mk
index ab0d84c10..710a3506e 100644
--- a/makefiles/suit.base.inc.mk
+++ b/makefiles/suit.base.inc.mk
@@ -21,8 +21,6 @@ SUIT_SEC ?= $(SUIT_KEY_DIR)/$(SUIT_KEY).pem
SUIT_PUB_HDR = $(BINDIR)/riotbuild/public_key.h
SUIT_PUB_HDR_DIR = $(dir $(SUIT_PUB_HDR))
-CFLAGS += -I$(SUIT_PUB_HDR_DIR)
-BUILDDEPS += $(SUIT_PUB_HDR)
$(SUIT_SEC): $(CLEAN)
@echo suit: generating key in $(SUIT_KEY_DIR) |
Contribution description
This PR:
examples/suit_updateto use the new SUIT firmware update module.Removal of moran-v4 parser
The moran-v4 parser is outdated by now and should be removed as a replacement is provided with this PR. It has always been marked as experimental, so (IMHO) it should not have to go through a deprecation period first.
SUIT draft-ietf-v3 parser
The new parser is based on version 3 of the ietf draft. Compared to the previous version the manifest format is simplified a bit and functionality provided between the two versions is similar. As it is a draft it again is marked experimental and we expect minor (but incompatible) changes in follow up versions.
Tooling
The tool to generate manifests can be used in a similar way as the v4 tools. The tool is based on python code provided by ARM.
Test application
The test application generates a key and a number of correct and incorrect manifests. These are parsed and the expected result is asserted.
For the v4 version I placed the generated manifests in
bin/manifest(it is a binary file) and it conveniently ensures that the files are included in the gitignore, please let me know if this should also be done with this PR.Testing procedure
examples/suit_updateworks.Issues/PRs references
Obsoletes #13440