Skip to content

Commit

Permalink
telink: Add boards option tl3218x_retention
Browse files Browse the repository at this point in the history
     - Add boards option tl3218x_retention

Signed-off-by: Lingzhi Chen <lingzhi.chen@telink-semi.com>
  • Loading branch information
charlie-ai committed Feb 11, 2025
1 parent 40d3c36 commit 6e864af
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
platform: telink
- name: Update Zephyr to specific revision (for developers purpose)
shell: bash
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py efcd3b739cb18dbad11428bda90e419fad5650c7"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 9b7fb466eacaea7fe8599b1174f19e15c69b293b"
- name: CI Examples Telink
shell: bash
run: |
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
gh-context: ${{ toJson(github) }}

- name: Update Zephyr to specific revision (for developers purpose)
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py efcd3b739cb18dbad11428bda90e419fad5650c7"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 9b7fb466eacaea7fe8599b1174f19e15c69b293b"

- name: Build example Telink (B92 retention) Air Quality Sensor App
# Run test for master and s07641069 PRs
Expand Down Expand Up @@ -177,6 +177,16 @@ jobs:
out/telink-tl3218x-light-ota-compress-lzma-shell-factory-data/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: Build example Telink (tl321x_retention) Light Switch App with OTA, Shell, Factory Data
# Run test for master and all PRs
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tl3218x_retention-light-switch-ota-shell-factory-data' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tl3218x_retention light-switch-app-ota-shell-factory-data \
out/telink-tl3218x_retention-light-switch-ota-shell-factory-data/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output (keep tools)
run: rm -rf ./out/telink*

Expand Down
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ def BuildTelinkTarget():
TargetPart('tlsr9528a', board=TelinkBoard.TLSR9528A),
TargetPart('tlsr9528a_retention', board=TelinkBoard.TLSR9528A_RETENTION),
TargetPart('tl3218x', board=TelinkBoard.TL3218X),
TargetPart('tl3218x_retention', board=TelinkBoard.TL3218X_RETENTION),
TargetPart('tl7218x', board=TelinkBoard.TL7218X),
TargetPart('tl7218x_retention', board=TelinkBoard.TL7218X_RETENTION),
])
Expand Down
3 changes: 3 additions & 0 deletions scripts/build/builders/telink.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class TelinkBoard(Enum):
TLSR9528A = auto()
TLSR9528A_RETENTION = auto()
TL3218X = auto()
TL3218X_RETENTION = auto()
TL7218X = auto()
TL7218X_RETENTION = auto()

Expand All @@ -134,6 +135,8 @@ def GnArgName(self):
return 'tlsr9528a_retention'
elif self == TelinkBoard.TL3218X:
return 'tl3218x'
elif self == TelinkBoard.TL3218X_RETENTION:
return 'tl3218x_retention'
elif self == TelinkBoard.TL7218X:
return 'tl7218x'
elif self == TelinkBoard.TL7218X_RETENTION:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/testdata/all_targets_linux_x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ nuttx-x64-light
qpg-qpg6105-{lock,light,shell,persistent-storage,light-switch,thermostat}[-updateimage]
stm32-stm32wb5mm-dk-light
tizen-arm-{all-clusters,chip-tool,light,tests}[-no-ble][-no-thread][-no-wifi][-asan][-ubsan][-coverage][-with-ui]
telink-{tlsr9118bdk40d,tlsr9518adk80d,tlsr9528a,tlsr9528a_retention,tl3218x,tl7218x,tl7218x_retention}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb][-mars][-usb][-compress-lzma][-thread-analyzer]
telink-{tlsr9118bdk40d,tlsr9518adk80d,tlsr9528a,tlsr9528a_retention,tl3218x,tl3218x_retention,tl7218x,tl7218x_retention}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb][-mars][-usb][-compress-lzma][-thread-analyzer]
openiotsdk-{shell,lock}[-mbedtls][-psa]

0 comments on commit 6e864af

Please sign in to comment.