diff --git a/src/platform/logging/BUILD.gn b/src/platform/logging/BUILD.gn index 2865f53c03c9a5..6d54ca897a4ac6 100644 --- a/src/platform/logging/BUILD.gn +++ b/src/platform/logging/BUILD.gn @@ -44,9 +44,10 @@ source_set("default") { deps += [ "${chip_root}/src/platform/ASR:logging" ] } else if (chip_device_platform == "webos") { deps += [ "${chip_root}/src/platform/webos:logging" ] - } else if (chip_device_platform == "zephyr" || - chip_device_platform == "nxp_zephyr") { + } else if (chip_device_platform == "zephyr") { deps += [ "${chip_root}/src/platform/Zephyr:logging" ] + } else if (chip_device_platform == "nxp_zephyr") { + deps += [ "${chip_root}/src/platform/nxp/zephyr:logging" ] } else if (chip_device_platform == "nrfconnect") { deps += [ "${chip_root}/src/platform/nrfconnect:logging" ] } else if (chip_device_platform == "telink") { diff --git a/src/platform/nxp/zephyr/BUILD.gn b/src/platform/nxp/zephyr/BUILD.gn index 291b84d3b03b29..91a746e1e4b41f 100644 --- a/src/platform/nxp/zephyr/BUILD.gn +++ b/src/platform/nxp/zephyr/BUILD.gn @@ -108,3 +108,11 @@ static_library("nxp_zephyr") { cflags = [ "-Wconversion" ] } + +source_set("logging") { + deps = [ + "${chip_root}/src/platform:platform_base", + "${chip_root}/src/platform/logging:headers", + ] + sources = [ "../../Zephyr/Logging.cpp" ] +}