Skip to content

Commit 437309c

Browse files
committedDec 2, 2024
[Telink] Update Zephyr revision & SDK
1 parent 368924c commit 437309c

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed
 

‎.github/workflows/chef.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
platform: telink
113113
- name: Update Zephyr to specific revision (for developers purpose)
114114
shell: bash
115-
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 46ac12b997d6f1ced2c5cc86a7e21d880d4b114e"
115+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ed365fdadcf380a0b2e543a7d4ba88ed4f227466"
116116
- name: CI Examples Telink
117117
shell: bash
118118
run: |

‎.github/workflows/examples-telink.yaml

+19-10
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ jobs:
4747
steps:
4848
- name: Checkout
4949
uses: actions/checkout@v4
50+
51+
- name: Update Zephyr SDK (for developers purpose)
52+
run: |
53+
set -e
54+
cd /opt/telink
55+
rm -rf zephyr-sdk-0.16.1
56+
curl --location https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.0/zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz --output zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz
57+
tar xvf zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz
58+
rm -rf zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz
59+
zephyr-sdk-0.17.0/setup.sh -t riscv64-zephyr-elf
60+
export TELINK_ZEPHYR_SDK_DIR=/opt/telink/zephyr-sdk-0.17.0
61+
export ZEPHYR_SDK_INSTALL_DIR=$TELINK_ZEPHYR_SDK_DIR
62+
echo "Zephyr SDK updated"
63+
5064
- name: Checkout submodules & Bootstrap
5165
uses: ./.github/actions/checkout-submodules-and-bootstrap
5266
with:
@@ -58,17 +72,12 @@ jobs:
5872
with:
5973
gh-context: ${{ toJson(github) }}
6074

61-
- name: Update Zephyr SDK (Temporary change for debugging purpose)
62-
run: |
63-
cd /opt/telink \
64-
rm -rf zephyr-sdk-0.16.1 \
65-
curl --location https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.0/zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz --output zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz \
66-
tar xvf zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz \
67-
rm -rf zephyr-sdk-0.17.0_linux-x86_64_minimal.tar.xz \
68-
zephyr-sdk-0.17.0/setup.sh -t riscv64-zephyr-elf
69-
7075
- name: Update Zephyr to specific revision (for developers purpose)
71-
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 46ac12b997d6f1ced2c5cc86a7e21d880d4b114e"
76+
run: |
77+
echo $TELINK_ZEPHYR_SDK_DIR
78+
echo $ZEPHYR_SDK_INSTALL_DIR
79+
ls -la /opt/telink
80+
scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ed365fdadcf380a0b2e543a7d4ba88ed4f227466"
7281
7382
- name: Build example Telink (B92 retention) Air Quality Sensor App
7483
# Run test for master and s07641069 PRs

0 commit comments

Comments
 (0)