Skip to content

Commit 145122f

Browse files
committed
[Telink] Add Build example for TL7218X ML7-G board
Signed-off-by: Hao Wu <[email protected]>
1 parent 4a50a1b commit 145122f

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.github/workflows/examples-telink.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,20 @@ jobs:
316316
- name: clean out build output
317317
run: rm -rf ./out
318318

319+
- name: Build example Telink (tl7218x ml7g) Lighting App
320+
# Run test for master and s07641069 PRs
321+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
322+
run: |
323+
./scripts/run_in_build_env.sh \
324+
"./scripts/build/build_examples.py --target 'telink-tl7218x-ml7g' build"
325+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
326+
telink tl7218x_ml7g lighting-app \
327+
out/telink-tl7218x_ml7g-lighting-app/zephyr/zephyr.elf \
328+
/tmp/bloat_reports/
329+
330+
- name: clean out build output
331+
run: rm -rf ./out
332+
319333
- name: Build example Telink (B91) Thermostat App
320334
# Run test for master and s07641069 PRs
321335
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'

scripts/build/build/targets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ def BuildTelinkTarget():
818818
target.AppendModifier('factory-data', enable_factory_data=True)
819819
target.AppendModifier('4mb', enable_4mb_flash=True)
820820
target.AppendModifier('mars', mars_board_config=True)
821+
target.AppendModifier('tl7218x_ml7g', tl7218x_ml7g_board_config=True)
821822
target.AppendModifier('usb', usb_board_config=True)
822823
target.AppendModifier('compress-lzma', compress_lzma_config=True)
823824
target.AppendModifier('thread-analyzer', thread_analyzer_config=True)

scripts/build/builders/telink.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def __init__(self,
159159
enable_factory_data: bool = False,
160160
enable_4mb_flash: bool = False,
161161
mars_board_config: bool = False,
162+
tl7218x_ml7g_board_config: bool = False,
162163
usb_board_config: bool = False,
163164
compress_lzma_config: bool = False,
164165
thread_analyzer_config: bool = False,
@@ -174,6 +175,7 @@ def __init__(self,
174175
self.enable_factory_data = enable_factory_data
175176
self.enable_4mb_flash = enable_4mb_flash
176177
self.mars_board_config = mars_board_config
178+
self.tl7218x_ml7g_board_config = tl7218x_ml7g_board_config
177179
self.usb_board_config = usb_board_config
178180
self.compress_lzma_config = compress_lzma_config
179181
self.thread_analyzer_config = thread_analyzer_config
@@ -219,6 +221,9 @@ def generate(self):
219221
if self.mars_board_config:
220222
flags.append("-DTLNK_MARS_BOARD=y")
221223

224+
if self.tl7218x_ml7g_board_config:
225+
flags.append("-DTLNK_7218X_ML7G_BOARD=y")
226+
222227
if self.usb_board_config:
223228
flags.append("-DTLNK_USB_DONGLE=y")
224229

scripts/build/testdata/all_targets_linux_x64.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ qpg-qpg6105-{light,light-switch,lock,persistent-storage,shell,thermostat}[-updat
2323
realtek-rtl8777g-{all-clusters,light-switch,lighting,lock,ota-requestor,thermostat,window}
2424
stm32-stm32wb5mm-dk-light
2525
tizen-{arm,arm64}-{all-clusters,chip-tool,light,tests}[-asan][-coverage][-no-ble][-no-thread][-no-wifi][-ubsan][-with-ui]
26-
telink-{tl3218x,tl3218x_retention,tl7218x,tl7218x_retention,tlsr9118bdk40d,tlsr9518adk80d,tlsr9528a,tlsr9528a_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}[-4mb][-compress-lzma][-dfu][-factory-data][-mars][-ota][-precompiled-ot][-rpc][-shell][-thread-analyzer][-usb]
26+
telink-{tl3218x,tl3218x_retention,tl7218x,tl7218x_retention,tl7218x_ml7g,tlsr9118bdk40d,tlsr9518adk80d,tlsr9528a,tlsr9528a_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}[-4mb][-compress-lzma][-dfu][-factory-data][-mars][-ota][-precompiled-ot][-rpc][-shell][-thread-analyzer][-usb][-tl7218x_ml7g]
2727
openiotsdk-{lock,shell}[-mbedtls][-psa]

0 commit comments

Comments
 (0)