Skip to content

Commit 820bf9d

Browse files
adigiemaciejbaczmanski
authored andcommitted
[nrf fromtree] Fix condition for building test vectors
Don't build test vectors if not building tests. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no> (cherry picked from commit a38f2aa)
1 parent 9dc1fc2 commit 820bf9d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/credentials/BUILD.gn

+4-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ static_library("credentials") {
108108
# is changed to generate it's own credentials instead of using Test credentials.
109109
# For some platforms test builds, which are bilding monolithic test library these files are not needed.
110110
import("${chip_root}/build/chip/tests.gni")
111-
if (!(chip_build_tests && (chip_device_platform == "mbed" ||
112-
chip_device_platform == "openiotsdk" ||
113-
chip_device_platform == "nrfconnect"))) {
111+
if (chip_build_tests && !(chip_device_platform == "mbed" ||
112+
chip_device_platform == "openiotsdk" ||
113+
chip_device_platform == "nrfconnect" ||
114+
chip_device_platform == "esp32")) {
114115
sources += [
115116
"tests/CHIPAttCert_test_vectors.cpp",
116117
"tests/CHIPAttCert_test_vectors.h",

0 commit comments

Comments
 (0)