@@ -16,13 +16,12 @@ import("//build_overrides/build.gni")
16
16
import (" //build_overrides/chip.gni" )
17
17
import (" //build_overrides/psoc6.gni" )
18
18
import (" ${ build_root } /config/defaults.gni" )
19
+ import (" ${ chip_root } /src/crypto/crypto.gni" )
20
+ import (" ${ chip_root } /src/platform/Infineon/crypto/infineon_crypto.gni" )
19
21
import (" ${ chip_root } /src/platform/device.gni" )
22
+ import (" ${ chip_root } /third_party/infineon/trustm/trustm_config.gni" )
20
23
import (" ${ psoc6_sdk_build_root } /psoc6_executable.gni" )
21
24
import (" ${ psoc6_sdk_build_root } /psoc6_sdk.gni" )
22
- import (" ${ chip_root } /third_party/infineon/trustm/trustm_config.gni" )
23
- import (" ${ chip_root } /src/crypto/crypto.gni" )
24
- import (" ${ chip_root } /src/platform/Infineon/crypto/infineon_crypto.gni" )
25
-
26
25
27
26
assert (current_os == " freertos" )
28
27
@@ -122,16 +121,14 @@ psoc6_executable("lock_app") {
122
121
123
122
if (chip_crypto == " platform" ) {
124
123
include_dirs += [ " ${ chip_root } /third_party/infineon/trustm" ]
125
- include_dirs += [ " ${ chip_root } /examples/platform/infineon/trustm" ]
126
- include_dirs += [ " ${ chip_root } /src/platform/Infineon/crypto/trustm" ]
124
+ include_dirs += [ " ${ chip_root } /examples/platform/infineon/trustm" ]
125
+ include_dirs += [ " ${ chip_root } /src/platform/Infineon/crypto/trustm" ]
126
+
127
+ defines = [ " ENABLE_DEVICE_ATTESTATION=1" ]
127
128
128
- defines = [
129
- " ENABLE_DEVICE_ATTESTATION=1" ,
130
- ]
131
-
132
129
public_deps += [
133
- " ${ chip_root } /third_party/infineon/trustm:optiga-trust-m" ,
134
130
" ${ chip_root } /src/platform/Infineon/crypto/${ infineon_crypto_impl } :infineon_crypto_lib" ,
131
+ " ${ chip_root } /third_party/infineon/trustm:optiga-trust-m" ,
135
132
]
136
133
}
137
134
0 commit comments