Skip to content

Commit 288cf40

Browse files
luoji-nxpMaximus
authored and
Maximus
committed
MA-21007 integrate libtrustymatter
the libtrustymatter third-party lib contains the Trusty IPC infrastructure and client application in the Non-secure side. Change-Id: Id2cb5ccc0006d9f51cab06ed971174a94aa0111f Signed-off-by: Ji Luo <ji.luo@nxp.com> Reviewed-on: http://androidsource.nxp.com/project/21249 Reviewed-by: Elven Wang <elven.wang@nxp.com> Reviewed-on: http://androidsource.nxp.com/project/23003
1 parent 06edeee commit 288cf40

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,6 @@
354354
url = https://github.com/paullouisageneau/libdatachannel.git
355355
platforms = linux
356356
recursive = true
357+
[submodule "third_party/libtrustymatter/repo"]
358+
path = third_party/libtrustymatter/repo
359+
url = https://github.com/nxp-imx/libtrustymatter

third_party/libtrustymatter/BUILD.gn

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright (c) 2023 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import("//build_overrides/chip.gni")
16+
17+
config("libtrustymatter_config") {
18+
include_dirs = [
19+
"repo/matter_client/include",
20+
"repo/libtrusty/include",
21+
]
22+
}
23+
24+
source_set("libtrustymatter") {
25+
sources = [
26+
"repo/matter_client/trusty_matter.cpp",
27+
"repo/matter_client/trusty_matter_ipc.cpp",
28+
"repo/matter_client/matter_messages.cpp",
29+
"repo/matter_client/serializable.cpp",
30+
"repo/matter_client/include/mem.h",
31+
"repo/matter_client/include/matter_defs.h",
32+
"repo/matter_client/include/matter_ipc.h",
33+
"repo/matter_client/include/matter_messages.h",
34+
"repo/matter_client/include/serializable.h",
35+
"repo/matter_client/include/trusty_matter.h",
36+
"repo/matter_client/include/trusty_matter_ipc.h",
37+
"repo/matter_client/include/UniquePtr.h",
38+
"repo/libtrusty/trusty.c",
39+
"repo/libtrusty/include/trusty/ipc.h",
40+
"repo/libtrusty/include/trusty/tipc.h",
41+
]
42+
43+
cflags = [ "-Wno-implicit-fallthrough" ]
44+
cflags_cc = [ "-std=c++17" ]
45+
46+
public_configs = [ ":libtrustymatter_config" ]
47+
}

0 commit comments

Comments
 (0)