From 8a0224f7fe528426c74c33b745f5d0f774f30e78 Mon Sep 17 00:00:00 2001 From: Doru Gucea Date: Wed, 3 Nov 2021 01:48:50 -0700 Subject: [PATCH] [K32W0] Disable low power build for the shell app Signed-off-by: Doru Gucea --- .github/workflows/examples-k32w.yaml | 2 +- scripts/examples/k32w_example.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index e34c5b1d7d6d06..34bf49e0f436f1 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -69,7 +69,7 @@ jobs: timeout-minutes: 5 run: | scripts/examples/k32w_example.sh \ - examples/shell/nxp/k32w/k32w0 out/shell_app_debug + examples/shell/nxp/k32w/k32w0 out/shell_app_debug no_low_power .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w061+debug shell \ out/shell_app_debug/chip-k32w061-shell-example \ diff --git a/scripts/examples/k32w_example.sh b/scripts/examples/k32w_example.sh index 2923e7e8da94e0..d9614e45026077 100755 --- a/scripts/examples/k32w_example.sh +++ b/scripts/examples/k32w_example.sh @@ -27,5 +27,10 @@ env "$(dirname "$0")"/../../third_party/k32w_sdk/sdk_fixes/patch_k32w_sdk.sh -gn gen --check --fail-on-unused-args --root="$1" "$2" --args="k32w0_sdk_root=\"$K32W061_SDK_ROOT\" is_debug=false chip_with_low_power=1" +if [ -z "$3" ]; then + gn gen --check --fail-on-unused-args --root="$1" "$2" --args="k32w0_sdk_root=\"$K32W061_SDK_ROOT\" is_debug=false chip_with_low_power=1" +else + gn gen --check --fail-on-unused-args --root="$1" "$2" --args="k32w0_sdk_root=\"$K32W061_SDK_ROOT\" is_debug=false chip_with_low_power=0" +fi + ninja -C "$2"