Skip to content

Commit 277176e

Browse files
committed
Merging from upstream
2 parents a966a28 + 6aee3fd commit 277176e

File tree

199 files changed

+5295
-4111
lines changed

Some content is hidden

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

199 files changed

+5295
-4111
lines changed

.github/workflows/examples-qpg.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ jobs:
6363
--enable-flashbundle \
6464
--target qpg-qpg6105-lock \
6565
--target qpg-qpg6105-light \
66-
--target qpg-qpg6105-shell \
67-
--target qpg-qpg6105-persistent-storage \
6866
--target qpg-qpg6105-light-switch \
6967
--target qpg-qpg6105-thermostat \
7068
build \

.gn

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ script_executable = "python3"
2525

2626
default_args = {
2727
pw_unit_test_AUTOMATIC_RUNNER = "$dir_pigweed/targets/host/run_test"
28+
pw_unit_test_CONFIG = "//config/pw_unit_test:define_overrides"
2829

2930
pw_build_PIP_CONSTRAINTS = [ "//scripts/setup/constraints.txt" ]
3031
pw_build_PIP_REQUIREMENTS = [ "//scripts/setup/requirements.build.txt" ]

.vscode/settings.json

+14-10
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,29 @@
77
"${workspaceFolder}/build/default/src/lib/**",
88
"${workspaceFolder}/config/standalone/",
99
"${workspaceFolder}/config/standalone/**",
10+
"${workspaceFolder}/darwin/Framework/CHIP/**",
1011
"${workspaceFolder}/examples/**",
1112
"${workspaceFolder}/src/**",
13+
"${workspaceFolder}/src/app/**",
14+
"${workspaceFolder}/src/ble/**",
15+
"${workspaceFolder}/src/controller/**",
16+
"${workspaceFolder}/src/credentials/**",
17+
"${workspaceFolder}/src/crypto/**",
18+
"${workspaceFolder}/src/darwin/**",
1219
"${workspaceFolder}/src/include/",
1320
"${workspaceFolder}/src/include/**",
21+
"${workspaceFolder}/src/inet/**",
1422
"${workspaceFolder}/src/lib/**",
15-
"${workspaceFolder}/src/system/**",
16-
"${workspaceFolder}/third_party/nlassert/repo/include/**",
17-
"${workspaceFolder}/third_party/nlio/repo/include/**",
18-
"${workspaceFolder}/darwin/Framework/CHIP/**",
23+
"${workspaceFolder}/src/lwip/**",
1924
"${workspaceFolder}/src/messaging/**",
25+
"${workspaceFolder}/src/platform/**",
2026
"${workspaceFolder}/src/protocols/**",
27+
"${workspaceFolder}/src/setup_payload/**",
28+
"${workspaceFolder}/src/system/**",
2129
"${workspaceFolder}/src/tracing/**",
2230
"${workspaceFolder}/src/transport/**",
23-
"${workspaceFolder}/src/inet/**",
24-
"${workspaceFolder}/src/credentials/**",
25-
"${workspaceFolder}/src/data_model/**",
26-
"${workspaceFolder}/src/app/**",
27-
"${workspaceFolder}/src/crytpo/**",
28-
"${workspaceFolder}/src/platform/**"
31+
"${workspaceFolder}/third_party/nlassert/repo/include/**",
32+
"${workspaceFolder}/third_party/nlio/repo/include/**"
2933
],
3034
"[cpp]": {
3135
"editor.defaultFormatter": "xaver.clang-format"

config/pw_unit_test/BUILD.gn

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright (c) 2024 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import("//build_overrides/build.gni")
16+
import("//build_overrides/chip.gni")
17+
import("//build_overrides/pigweed.gni")
18+
19+
import("${chip_root}/build/chip/tests.gni")
20+
21+
import("$dir_pw_build/target_types.gni")
22+
pw_source_set("define_overrides") {
23+
public_configs = [ ":define_options" ]
24+
}
25+
26+
config("define_options") {
27+
if (chip_fake_platform && chip_link_tests) {
28+
defines = [ "PW_UNIT_TEST_CONFIG_MEMORY_POOL_SIZE=65536" ]
29+
} else {
30+
defines = [ "PW_UNIT_TEST_CONFIG_MEMORY_POOL_SIZE=16384" ]
31+
}
32+
}

config/qpg/chip-gn/build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env
2323
GN_ROOT_TARGET=$(dirname "$0")
2424
CHIP_ROOT=$GN_ROOT_TARGET/../../../
2525
OUTDIR=$CHIP_ROOT/out
26+
GN_ARGS="qpg_target_ic=\"qpg6105\" qpg_flavour=\"_ext_flash\""
2627

2728
mkdir -p "$OUTDIR"
2829
gn \
@@ -33,6 +34,7 @@ gn \
3334
--export-compile-commands \
3435
gen \
3536
--check \
37+
--args="$GN_ARGS" \
3638
--fail-on-unused-args \
3739
"$OUTDIR"
3840
ninja -C "$OUTDIR"

0 commit comments

Comments
 (0)