From 10948189d1c1f044ca51ea6fd9e0e370d7859f84 Mon Sep 17 00:00:00 2001 From: yeaissa <133245269+yeaissa@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:08:08 +0200 Subject: [PATCH] [NXP] Fix Zephyr build produced by logging rework (#34205) --- src/platform/logging/BUILD.gn | 5 +++-- src/platform/nxp/zephyr/BUILD.gn | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) 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" ] +}