Skip to content

Commit 1189363

Browse files
authored
Merge 8d494f6 into b082219
2 parents b082219 + 8d494f6 commit 1189363

File tree

6 files changed

+39
-10
lines changed

6 files changed

+39
-10
lines changed

.github/workflows/chef.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ jobs:
109109
uses: ./.github/actions/checkout-submodules-and-bootstrap
110110
with:
111111
platform: telink
112-
# - name: Update Zephyr to specific revision (for developers purpose)
113-
# shell: bash
114-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py c05c461b1119782cc839cf436fa04ec5e1fb2c8c"
112+
- name: Update Zephyr to specific revision (for developers purpose)
113+
shell: bash
114+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 3186756b6338a3b1cad5b86037f3c5331ba8b4a8"
115115
- name: CI Examples Telink
116116
shell: bash
117117
run: |

.github/workflows/examples-telink.yaml

+19-6
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
with:
5858
gh-context: ${{ toJson(github) }}
5959

60-
# - name: Update Zephyr to specific revision (for developers purpose)
61-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py c05c461b1119782cc839cf436fa04ec5e1fb2c8c"
60+
- name: Update Zephyr to specific revision (for developers purpose)
61+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 3186756b6338a3b1cad5b86037f3c5331ba8b4a8"
6262

6363
- name: Build example Telink (B92 retention) Air Quality Sensor App
6464
# Run test for master and s07641069 PRs
@@ -167,14 +167,14 @@ jobs:
167167
- name: clean out build output (keep tools)
168168
run: rm -rf ./out/telink*
169169

170-
- name: Build example Telink (tl321x) Lighting App with OTA (LZMA), Shell, Factory Data
170+
- name: Build example Telink (tl321x) Lighting App with OTA, Shell, Factory Data
171171
# Run test for master and all PRs
172172
run: |
173173
./scripts/run_in_build_env.sh \
174-
"./scripts/build/build_examples.py --target 'telink-tl3218x-light-ota-compress-lzma-shell-factory-data' build"
174+
"./scripts/build/build_examples.py --target 'telink-tl3218x-light-ota-shell-factory-data' build"
175175
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
176-
telink tl3218x light-app-ota-compress-lzma-shell-factory-data \
177-
out/telink-tl3218x-light-ota-compress-lzma-shell-factory-data/zephyr/zephyr.elf \
176+
telink tl3218x light-app-ota-shell-factory-data \
177+
out/telink-tl3218x-light-ota-shell-factory-data/zephyr/zephyr.elf \
178178
/tmp/bloat_reports/
179179
180180
- name: clean out build output (keep tools)
@@ -193,6 +193,19 @@ jobs:
193193
- name: clean out build output (keep tools)
194194
run: rm -rf ./out/telink*
195195

196+
- name: Build example Telink (tl721x retention) Light Switch App with OTA (LZMA), Factory Data
197+
# Run test for master and all PRs
198+
run: |
199+
./scripts/run_in_build_env.sh \
200+
"./scripts/build/build_examples.py --target 'telink-tl7218x_retention-light-switch-ota-compress-lzma-factory-data' build"
201+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
202+
telink tl7218x_retention light-switch-app-ota-compress-lzma-factory-data \
203+
out/telink-tl7218x_retention-light-switch-ota-compress-lzma-factory-data/zephyr/zephyr.elf \
204+
/tmp/bloat_reports/
205+
206+
- name: clean out build output (keep tools)
207+
run: rm -rf ./out/telink*
208+
196209
- name: Build example Telink (B92) Light Switch App with OTA (LZMA), Shell, Factory Data
197210
# Run test for master and all PRs
198211
run: |

config/telink/chip-module/Kconfig.defaults

+12
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ config PWM
218218

219219
endif
220220

221+
if BOARD_TL7218X_RETENTION || BOARD_TL3218X_RETENTION || BOARD_TL3218X
222+
config SOC_SERIES_RISCV_TELINK_TLX_NON_RETENTION_RAM_CODE
223+
default n if PM
224+
225+
config TELINK_TLX_MATTER_RETENTION_LAYOUT
226+
default y if PM || BOARD_TL3218X
227+
228+
config PWM
229+
default n if PM
230+
231+
endif
232+
221233
# Board non-retention config
222234
if BOARD_TLSR9118BDK40D || BOARD_TLSR9118BDK40D_V1 || \
223235
BOARD_TLSR9528A || BOARD_TLSR9258A || BOARD_TLSR9518ADK80D || BOARD_TL3218X || BOARD_TL7218X

scripts/build/build/targets.py

+1
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ def BuildTelinkTarget():
782782
TargetPart('tlsr9258a_retention', board=TelinkBoard.TLSR9258A_RETENTION),
783783
TargetPart('tl3218x', board=TelinkBoard.TL3218X),
784784
TargetPart('tl7218x', board=TelinkBoard.TL7218X),
785+
TargetPart('tl7218x_retention', board=TelinkBoard.TL7218X_RETENTION),
785786
])
786787

787788
target.AppendFixedTargets([

scripts/build/builders/telink.py

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ class TelinkBoard(Enum):
123123
TLSR9258A_RETENTION = auto()
124124
TL3218X = auto()
125125
TL7218X = auto()
126+
TL7218X_RETENTION = auto()
126127

127128
def GnArgName(self):
128129
if self == TelinkBoard.TLRS9118BDK40D:
@@ -141,6 +142,8 @@ def GnArgName(self):
141142
return 'tl3218x'
142143
elif self == TelinkBoard.TL7218X:
143144
return 'tl7218x'
145+
elif self == TelinkBoard.TL7218X_RETENTION:
146+
return 'tl7218x_retention'
144147
else:
145148
raise Exception('Unknown board type: %r' % self)
146149

scripts/build/testdata/all_targets_linux_x64.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ nuttx-x64-light
2222
qpg-qpg6105-{lock,light,shell,persistent-storage,light-switch,thermostat}[-updateimage]
2323
stm32-stm32wb5mm-dk-light
2424
tizen-arm-{all-clusters,chip-tool,light,tests}[-no-ble][-no-thread][-no-wifi][-asan][-ubsan][-coverage][-with-ui]
25-
telink-{tlsr9118bdk40d,tlsr9518adk80d,tlsr9528a,tlsr9528a_retention,tlsr9258a,tlsr9258a_retention,tl3218x,tl7218x}-{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]
25+
telink-{tlsr9118bdk40d,tlsr9518adk80d,tlsr9528a,tlsr9528a_retention,tlsr9258a,tlsr9258a_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]
2626
openiotsdk-{shell,lock}[-mbedtls][-psa]

0 commit comments

Comments
 (0)