Skip to content

Commit

Permalink
[K32W0] Fix third_party paths
Browse files Browse the repository at this point in the history
Change from third_party/k32w_sdk/nxp/k32w/k32w0/ to third_party/nxp/k32w0_sdk

Signed-off-by: Doru Gucea <doru-cristian.gucea@nxp.com>
  • Loading branch information
doru91 committed Nov 5, 2021
1 parent 3f67119 commit 488f535
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion build_overrides/k32w0_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

declare_args() {
# Root directory for K32W SDK build files.
k32w0_sdk_build_root = "//third_party/k32w_sdk/nxp/k32w/k32w0"
k32w0_sdk_build_root = "//third_party/nxp/k32w0_sdk"
}
2 changes: 1 addition & 1 deletion examples/build_overrides/k32w0_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
declare_args() {
# Root directory for k32w SDK.
k32w0_sdk_build_root =
"//third_party/connectedhomeip/third_party/k32w_sdk/nxp/k32w/k32w0"
"//third_party/connectedhomeip/third_party/nxp/k32w0_sdk"
}
2 changes: 1 addition & 1 deletion examples/lighting-app/nxp/k32w/k32w0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ distribution (the demo-application was compiled on Ubuntu 20.04).

```
user@ubuntu:~/Desktop/git/connectedhomeip$ export K32W061_SDK_ROOT=/home/user/Desktop/SDK_2_6_4_K32W061DK6/
user@ubuntu:~/Desktop/git/connectedhomeip$ ./third_party/k32w_sdk/sdk_fixes/patch_k32w_sdk.sh
user@ubuntu:~/Desktop/git/connectedhomeip$ ./third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh
user@ubuntu:~/Desktop/git/connectedhomeip$ source ./scripts/activate.sh
user@ubuntu:~/Desktop/git/connectedhomeip$ cd examples/lighting-app/nxp/k32w/k32w0
user@ubuntu:~/Desktop/git/connectedhomeip/examples/lighting-app/nxp/k32w/k32w0$ gn gen out/debug --args="k32w0_sdk_root=\"${K32W061_SDK_ROOT}\" chip_with_OM15082=1 chip_with_ot_cli=0 is_debug=false chip_crypto=\"mbedtls\" chip_with_se05x=1"
Expand Down
6 changes: 3 additions & 3 deletions examples/lock-app/nxp/k32w/k32w0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ distribution (the demo-application was compiled on Ubuntu 20.04).
- with Secure Element

```
user@ubuntu:~/Desktop/git/connectedhomeip$ export K32W061_SDK_ROOT=/home/user/Desktop/SDK_2_6_4_K32W061DK6/
user@ubuntu:~/Desktop/git/connectedhomeip$ export NXP_K32W0_SDK_ROOT=/home/user/Desktop/SDK_2_6_4_K32W061DK6/
user@ubuntu:~/Desktop/git/connectedhomeip$ ./third_party/k32w_sdk/sdk_fixes/patch_k32w_sdk.sh
user@ubuntu:~/Desktop/git/connectedhomeip$ source ./scripts/activate.sh
user@ubuntu:~/Desktop/git/connectedhomeip$ cd examples/lock-app/nxp/k32w/k32w0/
user@ubuntu:~/Desktop/git/connectedhomeip/examples/lock-app/nxp/k32w/k32w0$ gn gen out/debug --args="k32w0_sdk_root=\"${K32W061_SDK_ROOT}\" chip_with_OM15082=1 chip_with_ot_cli=0 is_debug=false chip_crypto=\"mbedtls\" chip_with_se05x=1"
user@ubuntu:~/Desktop/git/connectedhomeip/examples/lock-app/nxp/k32w/k32w0$ gn gen out/debug --args="k32w0_sdk_root=\"${NXP_K32W0_SDK_ROOT}\" chip_with_OM15082=1 chip_with_ot_cli=0 is_debug=false chip_crypto=\"mbedtls\" chip_with_se05x=1"
user@ubuntu:~/Desktop/git/connectedhomeip/examples/lock-app/nxp/k32w/k32w0$ ninja -C out/debug
user@ubuntu:~/Desktop/git/connectedhomeip/examples/lock-app/nxp/k32w/k32w0$ $K32W061_SDK_ROOT/tools/imagetool/sign_images.sh out/debug/
user@ubuntu:~/Desktop/git/connectedhomeip/examples/lock-app/nxp/k32w/k32w0$ $NXP_K32W0_SDK_ROOT/tools/imagetool/sign_images.sh out/debug/
```

- without Secure element
Expand Down
2 changes: 1 addition & 1 deletion scripts/examples/k32w_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source "$(dirname "$0")/../../scripts/activate.sh"
set -x
env

"$(dirname "$0")"/../../third_party/k32w_sdk/sdk_fixes/patch_k32w_sdk.sh
"$(dirname "$0")"/../../third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh

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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/examples/k32w_se_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source "$(dirname "$0")/../../scripts/activate.sh"
set -x
env

"$(dirname "$0")"/../../third_party/k32w_sdk/sdk_fixes/patch_k32w_sdk.sh
"$(dirname "$0")"/../../third_party/nxp/k32w0_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_crypto=\"mbedtls\" chip_with_se05x=1"
ninja -C "$2"
2 changes: 1 addition & 1 deletion src/platform/nxp/k32w/k32w0/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ chip_build_tests = false

chip_mdns = "platform"

mbedtls_target = "${chip_root}/third_party/k32w_sdk/nxp/k32w/k32w0:mbedtls"
mbedtls_target = "${chip_root}/third_party/nxp/k32w0_sdk:mbedtls"
openthread_external_mbedtls = mbedtls_target

openthread_project_core_config_file = "OpenThreadConfig.h"
Expand Down
19 changes: 0 additions & 19 deletions third_party/k32w_sdk/sdk_fixes/patch_k32w_sdk.sh

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import("${chip_root}/src/platform/nxp/k32w/k32w0/args.gni")

declare_args() {
# Location of the k32w0 SDK.
k32w0_sdk_root = getenv("K32W_SDK_ROOT")
k32w0_sdk_root = getenv("NXP_K32W0_SDK_ROOT")
chip_with_OM15082 = 0
chip_with_ot_cli = 0
chip_with_low_power = 0
Expand Down
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

if [[ ! -d $NXP_K32W0_SDK_ROOT ]]; then
echo "NXP_K32W0_SDK_ROOT is not set"
exit 1
fi

cp ./third_party/nxp/k32w0_sdk/sdk_fixes/gpio_pins.h "$NXP_K32W0_SDK_ROOT"/boards/k32w061dk6/wireless_examples/openthread/reed/bm/
cp ./third_party/nxp/k32w0_sdk/sdk_fixes/pin_mux.c "$NXP_K32W0_SDK_ROOT"/boards/k32w061dk6/wireless_examples/openthread/enablement/

#TODO internal: https://jira.sw.nxp.com/browse/MCB-2678
cp ./third_party/nxp/k32w0_sdk/sdk_fixes/SecLib.h "$NXP_K32W0_SDK_ROOT"/middleware/wireless/framework/SecLib/

# TODO internal: https://jira.sw.nxp.com/browse/MCB-2675
cp -r ./third_party/nxp/k32w0_sdk/sdk_fixes/app_dual_mode_low_power.h "$NXP_K32W0_SDK_ROOT"/boards/k32w061dk6/wireless_examples/hybrid/ble_ot/lped_ble_wuart/ble_802_15_4_common/
cp -r ./third_party/nxp/k32w0_sdk/sdk_fixes/app_dual_mode_switch.h "$NXP_K32W0_SDK_ROOT"/boards/k32w061dk6/wireless_examples/hybrid/ble_ot/lped_ble_wuart/ble_802_15_4_common/

echo "K32W SDK MR3 QP1 was patched!"
exit 0
File renamed without changes.

0 comments on commit 488f535

Please sign in to comment.