Skip to content

Commit 775cb4d

Browse files
andy31415andreilitvinrestyled-commits
authored
Create CHIP-specific backends for pigweed assert and logs (#36297)
* Add a matter backend for assertions, to not depend on basic assertions in pigweed itself * No nullptr pass * Add a log backend, update copyrights * Restyle * Switch all backends for log and assert to the new chip backends instead of previous built-in/basic ones. Remove old log backend * Update public to fix linter for gn references * Fix dependencies (this should fix boufalolab compile at least * Remove pw_log_basic as we do not use it anymore * Restyle * Remove one more log_basic usage * Fix typo in log type - application is not defined * Avoid infinite recursion on logging now that PW-logging is not used * Remove echo_pb2 from the console as this is already imported by the pw_system.console it seems * Make PWConsole work again * make linter happy * Clean up all usages of CHIP_USE_PW_LOGGING * Mass rename backends to pw_backends * One more rename * Remove some more includes * Allow to keep going and report failed tetsts in local.py * Do not force fabric admin on BLE ... that seems odd * Switch to no wifi on fabric admin/bridge too * More cleanup for sizes for subprocess * More updates, generally switching to textio did not seem to work well, so just set bufsize to 0 * Update logic: apparently readlines is NOT lazy * Remove unused import * Fix unit tests * Even better display and avoid crashes in pw rpc. Sill need to fix mcore test * Fix flag logic * Make MCOREFS_1_5 less racy: window status is updated several times it seems, so wait for the right status (it starts as not open, then switches to open) * Restyled by autopep8 * Ensure elapsed and time remaining is always updated * Make local.py have a less noisy argument since on failures we generally want to read the files not have them in stdout (except for CI where we only see stdout right now) --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 2af51b0 commit 775cb4d

File tree

63 files changed

+525
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+525
-331
lines changed

.github/workflows/tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ jobs:
494494
--target linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test \
495495
--target linux-x64-rvc-ipv6only-no-ble-no-wifi-tsan-clang-test \
496496
--target linux-x64-network-manager-ipv6only-no-ble-no-wifi-tsan-clang-test \
497-
--target linux-x64-fabric-admin-rpc-ipv6only-clang \
497+
--target linux-x64-fabric-admin-rpc-ipv6only-no-ble-no-wifi-clang \
498498
--target linux-x64-fabric-bridge-rpc-ipv6only-no-ble-no-wifi-clang \
499499
--target linux-x64-light-data-model-no-unique-id-ipv6only-no-ble-no-wifi-clang \
500500
--target linux-x64-python-bindings \
@@ -511,7 +511,7 @@ jobs:
511511
echo "CHIP_MICROWAVE_OVEN_APP: out/linux-x64-microwave-oven-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-microwave-oven-app" >> /tmp/test_env.yaml
512512
echo "CHIP_RVC_APP: out/linux-x64-rvc-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-rvc-app" >> /tmp/test_env.yaml
513513
echo "NETWORK_MANAGEMENT_APP: out/linux-x64-network-manager-ipv6only-no-ble-no-wifi-tsan-clang-test/matter-network-manager-app" >> /tmp/test_env.yaml
514-
echo "FABRIC_ADMIN_APP: out/linux-x64-fabric-admin-rpc-ipv6only-clang/fabric-admin" >> /tmp/test_env.yaml
514+
echo "FABRIC_ADMIN_APP: out/linux-x64-fabric-admin-rpc-ipv6only-no-ble-no-wifi-clang/fabric-admin" >> /tmp/test_env.yaml
515515
echo "FABRIC_BRIDGE_APP: out/linux-x64-fabric-bridge-rpc-ipv6only-no-ble-no-wifi-clang/fabric-bridge-app" >> /tmp/test_env.yaml
516516
echo "LIGHTING_APP_NO_UNIQUE_ID: out/linux-x64-light-data-model-no-unique-id-ipv6only-no-ble-no-wifi-clang/chip-lighting-app" >> /tmp/test_env.yaml
517517
echo "TRACE_APP: out/trace_data/app-{SCRIPT_BASE_NAME}" >> /tmp/test_env.yaml

.gn

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ default_args = {
3535

3636
# Required for pw_unit_test
3737
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
38-
pw_assert_BACKEND = "$dir_pw_assert_log"
39-
pw_log_BACKEND = "$dir_pw_log_basic"
38+
pw_assert_BACKEND = "//src/pw_backends/assert"
39+
pw_log_BACKEND = "//src/pw_backends/log"
4040

4141
# TODO: Make sure only unit tests link against this
4242
pw_build_LINK_DEPS = [

config/bouffalolab/common/lib/pw_rpc/pw_rpc.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/pigweed.gni")
1717

18-
pw_log_BACKEND = "$dir_pw_log_basic"
19-
pw_assert_BACKEND = "$dir_pw_assert_log"
18+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
19+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2020
pw_sys_io_BACKEND =
2121
"${chip_root}/examples/platform/bouffalolab/common/rpc/pw_sys_io:pw_sys_io"
2222

config/efr32/lib/pw_rpc/pw_rpc.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/pigweed.gni")
1717

18-
pw_log_BACKEND = "$dir_pw_log_basic"
19-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
18+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
19+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2020
pw_rpc_CONFIG = "$dir_pw_rpc:disable_global_mutex"
2121
pw_sys_io_BACKEND =
2222
"${chip_root}/examples/platform/silabs/pw_sys_io:pw_sys_io_silabs"

config/mbed/chip-gn/lib/pw_rpc/pw_rpc.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/pigweed.gni")
1717

18-
pw_log_BACKEND = "$dir_pw_log_basic"
19-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
18+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
19+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2020
pw_sys_io_BACKEND =
2121
"${chip_root}/examples/platform/mbed/pw_sys_io:pw_sys_io_mbed"
2222
pw_rpc_system_server_BACKEND =

config/nxp/lib/pw_rpc/pw_rpc.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/pigweed.gni")
1717

18-
pw_log_BACKEND = "$dir_pw_log_basic"
19-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
18+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
19+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2020
pw_rpc_CONFIG = "$dir_pw_rpc:disable_global_mutex"
2121
pw_sys_io_BACKEND = "${chip_root}/examples/platform/nxp/pw_sys_io:pw_sys_io_nxp"
2222

config/qpg/lib/pw_rpc/pw_rpc.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/pigweed.gni")
1717

18-
pw_log_BACKEND = "$dir_pw_log_basic"
19-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
18+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
19+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2020
pw_sys_io_BACKEND = "${chip_root}/examples/platform/qpg/pw_sys_io:pw_sys_io_qpg"
2121

2222
pw_build_LINK_DEPS = [

examples/all-clusters-app/linux/with_pw_rpc.gni

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import("${chip_root}/config/standalone/args.gni")
2121

2222
import("//build_overrides/pigweed.gni")
2323

24-
pw_log_BACKEND = "$dir_pw_log_basic"
25-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
24+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
25+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2626
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
2727
pw_trace_BACKEND = "$dir_pw_trace_tokenized"
2828
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main"
@@ -39,4 +39,3 @@ pw_build_LINK_DEPS = [
3939
]
4040

4141
chip_enable_pw_rpc = true
42-
chip_use_pw_logging = true

examples/android/CHIPTest/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ chip_monolithic_tests = false
2828

2929
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
3030

31-
pw_assert_BACKEND = "$dir_pw_assert_log"
32-
pw_log_BACKEND = "$dir_pw_log_basic"
31+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
32+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
3333

3434
pw_unit_test_BACKEND = "$dir_pw_unit_test:light"
3535

examples/chef/linux/with_pw_rpc.gni

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import("${chip_root}/config/standalone/args.gni")
2121

2222
import("//build_overrides/pigweed.gni")
2323

24-
pw_log_BACKEND = "$dir_pw_log_basic"
25-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
24+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
25+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2626
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
2727
pw_trace_BACKEND = "$dir_pw_trace_tokenized"
2828
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main"
@@ -39,4 +39,3 @@ pw_build_LINK_DEPS = [
3939
]
4040

4141
chip_enable_pw_rpc = true
42-
chip_use_pw_logging = true

examples/common/pigweed/RpcService.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "pw_hdlc/decoder.h"
2626
#include "pw_hdlc/default_addresses.h"
2727
#include "pw_hdlc/rpc_channel.h"
28-
#include "pw_log/log.h"
2928
#include "pw_rpc/channel.h"
3029
#include "pw_status/status.h"
3130
#include "pw_stream/sys_io_stream.h"
@@ -96,20 +95,6 @@ void Start(void (*RegisterServices)(pw::rpc::Server &), ::chip::rpc::Mutex * uar
9695
PW_DASSERT(RegisterServices != nullptr);
9796
uart_mutex = uart_mutex_;
9897

99-
// Send log messages to HDLC address 1. This prevents logs from interfering
100-
// with pw_rpc communications.
101-
pw::log_basic::SetOutput([](std::string_view log) {
102-
if (uart_mutex)
103-
{
104-
uart_mutex->Lock();
105-
}
106-
pw::hdlc::WriteUIFrame(1, pw::as_bytes(pw::span(log)), sysIoWriter);
107-
if (uart_mutex)
108-
{
109-
uart_mutex->Unlock();
110-
}
111-
});
112-
11398
// Set up the server and start processing data.
11499
RegisterServices(server);
115100

examples/common/pigweed/rpc_console/py/chip_rpc/console.py

+2-16
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import argparse
4040
import sys
4141
from pathlib import Path
42-
from typing import Any, Collection
42+
from typing import Collection
4343

4444
import pw_system.console
4545
from pw_hdlc import rpc
@@ -52,7 +52,6 @@
5252
from button_service import button_service_pb2
5353
from descriptor_service import descriptor_service_pb2
5454
from device_service import device_service_pb2
55-
from echo_service import echo_pb2
5655
from fabric_admin_service import fabric_admin_service_pb2
5756
from fabric_bridge_service import fabric_bridge_service_pb2
5857
from lighting_service import lighting_service_pb2
@@ -72,13 +71,6 @@ def _parse_args():
7271
type=int,
7372
default=115200,
7473
help='the baud rate to use')
75-
parser.add_argument(
76-
'-o',
77-
'--output',
78-
type=argparse.FileType('wb'),
79-
default=sys.stdout.buffer,
80-
help=('The file to which to write device output (HDLC channel 1); '
81-
'provide - or omit for stdout.'))
8274
parser.add_argument(
8375
'-r',
8476
'--raw_serial',
@@ -99,7 +91,7 @@ def _parse_args():
9991

10092
def show_console(device: str, baudrate: int,
10193
token_databases: Collection[Path],
102-
socket_addr: str, output: Any, raw_serial: bool) -> int:
94+
socket_addr: str, raw_serial: bool) -> int:
10395

10496
# TODO: this shows a default console with little customization
10597
# Ideally we should at least customize the default messages
@@ -114,30 +106,24 @@ def show_console(device: str, baudrate: int,
114106
device=device,
115107
baudrate=baudrate,
116108
socket_addr=socket_addr,
117-
output=output,
118109
hdlc_encoding=not raw_serial,
119110
token_databases=token_databases,
120111
logfile="",
121112
device_logfile="",
122113
channel_id=rpc.DEFAULT_CHANNEL_ID,
123114

124115
# Defaults beyond the original console
125-
proto_globs=[],
126116
ticks_per_second=None,
127117
host_logfile="",
128118
json_logfile="",
129119
rpc_logging=False,
130-
# the pt-python based console seems to break on python 3.1 with
131-
# "set_wakeup_fd only works in main thread of the main interpreter"
132-
use_ipython=True,
133120
compiled_protos=[
134121
actions_service_pb2,
135122
attributes_service_pb2,
136123
boolean_state_service_pb2,
137124
button_service_pb2,
138125
descriptor_service_pb2,
139126
device_service_pb2,
140-
echo_pb2,
141127
fabric_admin_service_pb2,
142128
fabric_bridge_service_pb2,
143129
lighting_service_pb2,

examples/common/pigweed/system_rpc_server.cc

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "pw_hdlc/decoder.h"
2121
#include "pw_hdlc/default_addresses.h"
2222
#include "pw_hdlc/rpc_channel.h"
23-
#include "pw_log/log.h"
2423
#include "pw_rpc_system_server/rpc_server.h"
2524
#include "pw_stream/sys_io_stream.h"
2625

@@ -40,12 +39,7 @@ rpc::Server server(channels);
4039

4140
} // namespace
4241

43-
void Init()
44-
{
45-
// Send log messages to HDLC address 1. This prevents logs from interfering
46-
// with pw_rpc communications.
47-
pw::log_basic::SetOutput([](std::string_view log) { pw::hdlc::WriteUIFrame(1, pw::as_bytes(pw::span(log)), writer); });
48-
}
42+
void Init() {}
4943

5044
rpc::Server & Server()
5145
{

examples/fabric-admin/args.gni

-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ matter_log_json_payload_decode_full = true
3232
# make fabric-admin very strict by default
3333
chip_tlv_validate_char_string_on_read = true
3434
chip_tlv_validate_char_string_on_write = true
35-
chip_enable_ble = true

examples/fabric-admin/scripts/fabric-sync-app.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async def forward_f(prefix: bytes, f_in: asyncio.StreamReader,
3232
3333
This function can optionally feed received lines to a callback function.
3434
"""
35+
3536
while line := await f_in.readline():
3637
if cb is not None:
3738
cb(line)

examples/fabric-admin/with_pw_rpc.gni

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import("${chip_root}/config/standalone/args.gni")
2121

2222
import("//build_overrides/pigweed.gni")
2323

24-
pw_log_BACKEND = "$dir_pw_log_basic"
25-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
24+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
25+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2626
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
2727
pw_trace_BACKEND = "$dir_pw_trace_tokenized"
2828
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main"
@@ -39,4 +39,3 @@ pw_build_LINK_DEPS = [
3939
]
4040

4141
chip_enable_pw_rpc = true
42-
chip_use_pw_logging = true

examples/fabric-bridge-app/linux/with_pw_rpc.gni

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import("${chip_root}/config/standalone/args.gni")
2121

2222
import("//build_overrides/pigweed.gni")
2323

24-
pw_log_BACKEND = "$dir_pw_log_basic"
25-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
24+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
25+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2626
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
2727
pw_trace_BACKEND = "$dir_pw_trace_tokenized"
2828
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main"
@@ -38,5 +38,4 @@ pw_build_LINK_DEPS = [
3838
"$dir_pw_log:impl",
3939
]
4040

41-
chip_use_pw_logging = true
4241
bridge_enable_pw_rpc = true

examples/light-switch-app/genio/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import("${chip_root}/src/platform/mt793x/args.gni")
1818

1919
mt793x_sdk_target = get_label_info(":sdk", "label_no_toolchain")
2020

21-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
22-
pw_assert_BACKEND = "$dir_pw_assert_log"
21+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
22+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2323

2424
chip_enable_ble = true
2525

examples/light-switch-app/genio/build_for_wifi_args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ mt793x_sdk_target = get_label_info(":sdk", "label_no_toolchain")
1818
chip_enable_openthread = false
1919
import("${chip_root}/src/platform/MT793X/wifi_args.gni")
2020

21-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
22-
pw_assert_BACKEND = "$dir_pw_assert_log"
21+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
22+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"

examples/light-switch-app/qpg/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ chip_stack_lock_tracking = "none"
3232
matter_device_vid = "0xFFF1"
3333
matter_device_pid = "0x8004"
3434

35-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
36-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
35+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
36+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"

examples/lighting-app-data-mode-no-unique-id/linux/with_pw_rpc.gni

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import("${chip_root}/config/standalone/args.gni")
2121

2222
import("//build_overrides/pigweed.gni")
2323

24-
pw_log_BACKEND = "$dir_pw_log_basic"
25-
pw_assert_BACKEND = "$dir_pw_assert_log:check_backend"
24+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
25+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2626
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
2727
pw_trace_BACKEND = "$dir_pw_trace_tokenized"
2828
pw_unit_test_MAIN = "$dir_pw_unit_test:logging_main"
@@ -39,4 +39,3 @@ pw_build_LINK_DEPS = [
3939
]
4040

4141
chip_enable_pw_rpc = true
42-
chip_use_pw_logging = true

examples/lighting-app/bouffalolab/bl602/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import("${chip_root}/src/platform/bouffalolab/BL602/args.gni")
1919

2020
bl_iot_sdk_target = get_label_info(":sdk", "label_no_toolchain")
2121

22-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
23-
pw_assert_BACKEND = "$dir_pw_assert_log"
22+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
23+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2424
pw_rpc_CONFIG = "$dir_pw_rpc:disable_global_mutex"
2525

2626
chip_detail_logging = false

examples/lighting-app/bouffalolab/bl702/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import("${chip_root}/src/platform/bouffalolab/BL702/args.gni")
1919

2020
bl_iot_sdk_target = get_label_info(":sdk", "label_no_toolchain")
2121

22-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
23-
pw_assert_BACKEND = "$dir_pw_assert_log"
22+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
23+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2424
pw_rpc_CONFIG = "$dir_pw_rpc:disable_global_mutex"
2525

2626
chip_detail_logging = false

examples/lighting-app/bouffalolab/bl702l/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import("${chip_root}/src/platform/bouffalolab/BL702L/args.gni")
1919

2020
bl_iot_sdk_target = get_label_info(":sdk", "label_no_toolchain")
2121

22-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
23-
pw_assert_BACKEND = "$dir_pw_assert_log"
22+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
23+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2424
pw_rpc_CONFIG = "$dir_pw_rpc:disable_global_mutex"
2525

2626
chip_detail_logging = false

examples/lighting-app/genio/args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import("${chip_root}/src/platform/mt793x/args.gni")
1919

2020
mt793x_sdk_target = get_label_info(":sdk", "label_no_toolchain")
2121

22-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
23-
pw_assert_BACKEND = "$dir_pw_assert_log"
22+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
23+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"
2424

2525
chip_enable_ble = true
2626

examples/lighting-app/genio/build_for_wifi_args.gni

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ mt793x_sdk_target = get_label_info(":sdk", "label_no_toolchain")
1818
chip_enable_openthread = false
1919
import("${chip_root}/src/platform/MT793X/wifi_args.gni")
2020

21-
pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
22-
pw_assert_BACKEND = "$dir_pw_assert_log"
21+
pw_log_BACKEND = "${chip_root}/src/pw_backends/log"
22+
pw_assert_BACKEND = "${chip_root}/src/pw_backends/assert"

0 commit comments

Comments
 (0)