-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
91 lines (80 loc) · 2.61 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
if (CONFIG_MCUX_COMPONENT_middleware.secure-subsystem)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
SOURCES src/sscp/fsl_sss_sscp.c
inc/fsl_sss_config.h
inc/fsl_sss_config.h
inc/fsl_sss_sscp.h
inc/fsl_sscp.h
inc/fsl_sscp_commands.h
inc/fsl_sscp_config.h
inc/fsl_sss_sscp_config.h
inc/fsl_sss_api.h
)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
INCLUDES ./inc
./src/sscp
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.secure-subsystem.mu)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
SOURCES inc/fsl_sscp_mu.h
src/sscp/fsl_sscp_mu.c
)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
INCLUDES ./inc
./src/sscp
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.secure-subsystem.elemu)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
SOURCES inc/elemu/fsl_sss_config_elemu.h
inc/elemu/fsl_sscp_config_elemu.h
src/sscp/fsl_sss_mgmt.c
inc/fsl_sss_mgmt.h
)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
INCLUDES inc
inc/elemu
src/sscp
)
mcux_add_configuration(
CC "-DSSS_CONFIG_FILE=\\\"fsl_sss_config_elemu.h\\\" -DSSCP_CONFIG_FILE=\\\"fsl_sscp_config_elemu.h\\\""
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.secure-subsystem.firmware)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
SOURCES firmware/ele_200_fw.h
)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
INCLUDES firmware
)
mcux_add_configuration(
CC "-DELEMU_HAS_LOADABLE_FW"
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.secure-subsystem.elemu.port_kw45_k4w1)
mcux_add_source(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
SOURCES port/kw45_k4w1/sss_aes.c
port/kw45_k4w1/sss_aes_cmac.c
port/kw45_k4w1/sss_ccm.c
port/kw45_k4w1/sss_crypto.h
port/kw45_k4w1/sss_ecdh.c
port/kw45_k4w1/sss_hmac_sha256.c
port/kw45_k4w1/sss_init.c
port/kw45_k4w1/sss_sha256.c
)
mcux_add_include(
BASE_PATH ${SdkRootDirPath}/middleware/secure-subsystem
INCLUDES port
port/kw45_k4w1
)
endif()