kata-os-camkes: export C bindings for better CAmkES integration

In particular this exports the CAP_RELEASE flag so there is a single
source for it's definition and KataOS-specific support in the CAmkES
templates is enabled only for KataOS components.

Specific changes:
- adds cbindgen-generated CamkesBindings.h
- adds include of CamkesBindings.h in component cbindgen files
- add a dep on cbindgen.toml in all Makefiles
- update generated interface files

Change-Id: Ib6239d3ac0036b7a04bb36afccf25a05737b0e56
GitOrigin-RevId: af10117fa253f0c7c67969a5852ced9d992c6274
This commit is contained in:
Sam Leffler
2022-06-23 17:33:32 +00:00
parent f67ae5616c
commit 67442dc8f0
21 changed files with 85 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
INTERFACES=../../../interfaces
${INTERFACES}/MlCoordBindings.h: src/lib.rs
cbindgen -c cbindgen.toml $? -o $@
${INTERFACES}/MlCoordBindings.h: src/lib.rs cbindgen.toml
cbindgen -c cbindgen.toml src/lib.rs -o $@

View File

@@ -2,6 +2,9 @@ language = "C"
include_guard = "__ML_COORDINATOR_BINDINGS_H__"
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
no_includes = true
includes = ["CamkesBindings.h"]
[export]
include = ["MlCoordError"]
include = [
"MlCoordError",
]