Skip to content

Commit 2373213

Browse files
serhiiSalamakhapull[bot]
authored andcommitted
[Telink] Add Build example for B91 Mars board (#30495)
1 parent df4f330 commit 2373213

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.github/workflows/examples-telink.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ jobs:
235235
- name: clean out build output
236236
run: rm -rf ./out
237237

238-
- name: Build example Telink (B92 retention) Temperature Measurement App
238+
- name: Build example Telink (B91 Mars) Temperature Measurement App with OTA
239239
run: |
240240
./scripts/run_in_build_env.sh \
241-
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-temperature-measurement' build"
241+
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-temperature-measurement-mars-ota' build"
242242
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
243-
telink tlsr9528a_retention temperature-measurement-app \
244-
out/telink-tlsr9528a_retention-temperature-measurement/zephyr/zephyr.elf \
243+
telink tlsr9518adk80d temperature-measurement-app-mars-ota \
244+
out/telink-tlsr9518adk80d-temperature-measurement-mars-ota/zephyr/zephyr.elf \
245245
/tmp/bloat_reports/
246246
247247
- name: clean out build output

scripts/build/build/targets.py

+1
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ def BuildTelinkTarget():
733733
target.AppendModifier('rpc', enable_rpcs=True)
734734
target.AppendModifier('factory-data', enable_factory_data=True)
735735
target.AppendModifier('4mb', enable_4mb_flash=True)
736+
target.AppendModifier('mars', mars_board_config=True)
736737

737738
return target
738739

scripts/build/builders/telink.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def __init__(self,
144144
enable_shell: bool = False,
145145
enable_rpcs: bool = False,
146146
enable_factory_data: bool = False,
147-
enable_4mb_flash: bool = False):
147+
enable_4mb_flash: bool = False,
148+
mars_board_config: bool = False):
148149
super(TelinkBuilder, self).__init__(root, runner)
149150
self.app = app
150151
self.board = board
@@ -154,6 +155,7 @@ def __init__(self,
154155
self.enable_rpcs = enable_rpcs
155156
self.enable_factory_data = enable_factory_data
156157
self.enable_4mb_flash = enable_4mb_flash
158+
self.mars_board_config = mars_board_config
157159

158160
def get_cmd_prefixes(self):
159161
if not self._runner.dry_run:
@@ -192,6 +194,9 @@ def generate(self):
192194
if self.enable_4mb_flash:
193195
flags.append("-DFLASH_SIZE=4m")
194196

197+
if self.mars_board_config:
198+
flags.append("-DTLNK_MARS_BOARD=y")
199+
195200
if self.options.pregen_dir:
196201
flags.append(f"-DCHIP_CODEGEN_PREGEN_DIR={shlex.quote(self.options.pregen_dir)}")
197202

scripts/build/testdata/all_targets_linux_x64.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ nrf-native-posix-64-tests
2222
qpg-qpg6105-{lock,light,shell,persistent-storage}[-updateimage]
2323
stm32-stm32wb5mm-dk-light
2424
tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light,tests}[-no-ble][-no-thread][-no-wifi][-asan][-ubsan][-with-ui]
25-
telink-{tlsr9518adk80d,tlsr9528a,tlsr9528a_retention}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,resource-monitoring,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb]
25+
telink-{tlsr9518adk80d,tlsr9528a,tlsr9528a_retention}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,resource-monitoring,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb][-mars]
2626
openiotsdk-{shell,lock}[-mbedtls][-psa]

0 commit comments

Comments
 (0)