Skip to content

Commit c0e9224

Browse files
yeaissaaustina-csa
authored andcommitted
[NXP] Fix Zephyr build produced by logging rework (project-chip#34205)
1 parent 020ef75 commit c0e9224

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/platform/logging/BUILD.gn

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ source_set("default") {
4444
deps += [ "${chip_root}/src/platform/ASR:logging" ]
4545
} else if (chip_device_platform == "webos") {
4646
deps += [ "${chip_root}/src/platform/webos:logging" ]
47-
} else if (chip_device_platform == "zephyr" ||
48-
chip_device_platform == "nxp_zephyr") {
47+
} else if (chip_device_platform == "zephyr") {
4948
deps += [ "${chip_root}/src/platform/Zephyr:logging" ]
49+
} else if (chip_device_platform == "nxp_zephyr") {
50+
deps += [ "${chip_root}/src/platform/nxp/zephyr:logging" ]
5051
} else if (chip_device_platform == "nrfconnect") {
5152
deps += [ "${chip_root}/src/platform/nrfconnect:logging" ]
5253
} else if (chip_device_platform == "telink") {

src/platform/nxp/zephyr/BUILD.gn

+8
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,11 @@ static_library("nxp_zephyr") {
108108

109109
cflags = [ "-Wconversion" ]
110110
}
111+
112+
source_set("logging") {
113+
deps = [
114+
"${chip_root}/src/platform:platform_base",
115+
"${chip_root}/src/platform/logging:headers",
116+
]
117+
sources = [ "../../Zephyr/Logging.cpp" ]
118+
}

0 commit comments

Comments
 (0)