Skip to content

Commit 4e9865c

Browse files
committed
telink: zephyr versions compatibility changes
- use common SoCs names for different Zephyr versions - update Zephyr SDK version - telink.yaml: lzma: Enable LZMA Optimize for size by default Signed-off-by: Alex Tsitsiura <s07641069@gmail.com>
1 parent 33e7fc5 commit 4e9865c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+147
-147
lines changed

.github/workflows/telink-b91-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
name: Telink build examples
1212
env:
13-
ZEPHYR_SDK_VERSION: 0.16.8
13+
ZEPHYR_SDK_VERSION: 0.17.0
1414
steps:
1515

1616
- name: Install dependencies

.github/workflows/telink-b92-build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
name: Telink build examples
1212
env:
13-
ZEPHYR_SDK_VERSION: 0.16.8
13+
ZEPHYR_SDK_VERSION: 0.17.0
1414
steps:
1515

1616
- name: Install dependencies

.github/workflows/telink-tl321x-build.yaml

+46-46
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2024 Telink Semiconductor
22
# SPDX-License-Identifier: Apache-2.0
33

4-
name: Telink TL321x build examples
4+
name: Telink TL321X build examples
55

66
on: pull_request
77

@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
name: Telink build examples
1212
env:
13-
ZEPHYR_SDK_VERSION: 0.16.8
13+
ZEPHYR_SDK_VERSION: 0.17.0
1414
steps:
1515

1616
- name: Install dependencies
@@ -42,104 +42,104 @@ jobs:
4242
west zephyr-export
4343
pip install -r zephyr/scripts/requirements.txt
4444
45-
- name: Build TL321x samples/basic/blinky
45+
- name: Build TL321X samples/basic/blinky
4646
run: |
4747
cd ..
48-
west build -b tl3218 -d build_blinky_tl3218 zephyr/samples/basic/blinky -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
48+
west build -b tl3218x -d build_blinky_tl321x zephyr/samples/basic/blinky -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
4949
50-
- name: Build TL321x samples/hello_world
50+
- name: Build TL321X samples/hello_world
5151
run: |
5252
cd ..
53-
west build -b tl3218 -d build_hello_tl3218 zephyr/samples/hello_world -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
53+
west build -b tl3218x -d build_hello_tl321x zephyr/samples/hello_world -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
5454
55-
- name: Build TL321x samples/basic/button
55+
- name: Build TL321X samples/basic/button
5656
run: |
5757
cd ..
58-
west build -b tl3218 -d build_button_tl3218 zephyr/samples/basic/button -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
58+
west build -b tl3218x -d build_button_tl321x zephyr/samples/basic/button -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
5959
60-
- name: Build TL321x samples/sensor/sht3xd
60+
- name: Build TL321X samples/sensor/sht3xd
6161
run: |
6262
cd ..
63-
west build -b tl3218 -d build_sht3xd_tl3218 zephyr/samples/sensor/sht3xd -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
63+
west build -b tl3218x -d build_sht3xd_tl321x zephyr/samples/sensor/sht3xd -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
6464
65-
- name: Build TL321x samples/drivers/adc
65+
- name: Build TL321X samples/drivers/adc
6666
run: |
6767
cd ..
68-
west build -b tl3218 -d build_adc_tl3218 zephyr/samples/drivers/adc/adc_dt -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
68+
west build -b tl3218x -d build_adc_tl321x zephyr/samples/drivers/adc/adc_dt -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
6969
70-
- name: Build TL321x samples/drivers/watchdog
70+
- name: Build TL321X samples/drivers/watchdog
7171
run: |
7272
cd ..
73-
west build -b tl3218 -d build_watchdog_tl3218 zephyr/samples/drivers/watchdog -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
73+
west build -b tl3218x -d build_watchdog_tl321x zephyr/samples/drivers/watchdog -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
7474
75-
- name: Build TL321x tests/drivers/flash/common
75+
- name: Build TL321X tests/drivers/flash/common
7676
run: |
7777
cd ..
78-
west build -b tl3218 -d build_tests_flash_tl3218 zephyr/tests/drivers/flash/common -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
78+
west build -b tl3218x -d build_tests_flash_tl321x zephyr/tests/drivers/flash/common -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
7979
80-
- name: Build TL321x samples/drivers/spi_flash
80+
- name: Build TL321X samples/drivers/spi_flash
8181
run: |
8282
cd ..
83-
west build -b tl3218 -d build_spi_flash_tl3218 zephyr/samples/drivers/spi_flash -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
83+
west build -b tl3218x -d build_spi_flash_tl321x zephyr/samples/drivers/spi_flash -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
8484
85-
- name: Build TL321x samples/basic/fade_led/
85+
- name: Build TL321X samples/basic/fade_led/
8686
run: |
8787
cd ..
88-
west build -b tl3218 -d build_fade_tl3218 zephyr/samples/basic/fade_led -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
88+
west build -b tl3218x -d build_fade_tl321x zephyr/samples/basic/fade_led/ -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
8989
90-
- name: Build TL321x bluetooth/peripheral_ht
90+
- name: Build TL321X bluetooth/peripheral_ht
9191
run: |
9292
cd ..
93-
west build -b tl3218 -d build_peripheral_ht_tl3218 zephyr/samples/bluetooth/peripheral_ht -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
93+
west build -b tl3218x -d build_peripheral_ht_tl321x zephyr/samples/bluetooth/peripheral_ht -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
9494
95-
- name: Build TL321x net/openthread/cli
95+
- name: Build TL321X net/openthread/cli
9696
run: |
9797
cd ..
98-
west build -b tl3218 -d build_ot_cli_tl3218 zephyr/samples/net/openthread/cli -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
98+
west build -b tl3218x -d build_ot_cli_tl321x zephyr/samples/net/openthread/cli -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
9999
100-
- name: Build TL321x net/openthread/coprocessor in RCP configuration with UART interface
100+
- name: Build TL321X net/openthread/coprocessor in RCP configuration with UART interface
101101
run: |
102102
cd ..
103-
west build -b tl3218 -d build_ot_coprocessor_rcp_uart_tl3218 zephyr/samples/net/openthread/coprocessor -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DOVERLAY_CONFIG=overlay-rcp.conf
103+
west build -b tl3218x -d build_ot_coprocessor_rcp_uart_tl321x zephyr/samples/net/openthread/coprocessor -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DOVERLAY_CONFIG=overlay-rcp.conf
104104
105-
- name: Build TL321x subsys/usb/console for USB driver
105+
- name: Build TL321X subsys/usb/console for USB driver
106106
run: |
107107
cd ..
108-
west build -b tl3218 -d build_usb_console_tl3218 zephyr/samples/subsys/usb/console -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
108+
west build -b tl3218x -d build_usb_console_tl321x zephyr/samples/subsys/usb/console -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
109109
110110
- name: Build TL321X crypto/mbedtls
111111
run: |
112112
cd ..
113-
west build -b tl3218 -d build_crypto_mbedtls_tl3218 zephyr/tests/crypto/mbedtls -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_MBEDTLS_ECP_C=y -DCONFIG_MBEDTLS_ECP_ALL_ENABLED=y
113+
west build -b tl3218x -d build_crypto_mbedtls_tl321x zephyr/tests/crypto/mbedtls -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_MBEDTLS_ECP_C=y -DCONFIG_MBEDTLS_ECP_ALL_ENABLED=y
114114
115115
- name: Build TL321X bootloader/mcuboot/boot for compressed LZMA image
116116
run: |
117117
cd ..
118-
west build -b tl3218 -d build_mcuboot_tl3218_lzma bootloader/mcuboot/boot/zephyr -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_COMPRESS_LZMA=y -DCONFIG_BOOT_UPGRADE_ONLY=y
118+
west build -b tl3218x -d build_mcuboot_tl321x_lzma bootloader/mcuboot/boot/zephyr -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_COMPRESS_LZMA=y -DCONFIG_BOOT_UPGRADE_ONLY=y
119119
120120
- name: Build TL321X bootloader/mcuboot/boot - chip id
121121
run: |
122122
cd ..
123-
west build -b tl3218 -d build_mcuboot_chip_id_tl3218 bootloader/mcuboot/boot/zephyr -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_LOG_DEFAULT_LEVEL=3 -DCONFIG_TELINK_TLX_MCUBOOT_STARTUP=y
123+
west build -b tl3218x -d build_mcuboot_chip_id_tl321x bootloader/mcuboot/boot/zephyr -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_LOG_DEFAULT_LEVEL=3 -DCONFIG_TELINK_TLX_MCUBOOT_STARTUP=y
124124
125125
- name: Collect artifacts
126126
run: |
127127
mkdir telink_build_artifacts
128-
cp ../build_blinky_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_blinky.bin
129-
cp ../build_hello_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_hello_world.bin
130-
cp ../build_button_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_button.bin
131-
cp ../build_sht3xd_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_sht3xd.bin
132-
cp ../build_adc_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_adc.bin
133-
cp ../build_watchdog_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_watchdog.bin
134-
cp ../build_tests_flash_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_tests_flash.bin
135-
cp ../build_spi_flash_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_spi_flash.bin
136-
cp ../build_fade_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_tests_pwm.bin
137-
cp ../build_peripheral_ht_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_peripheral_ht.bin
138-
cp ../build_ot_cli_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_ot_cli.bin
139-
cp ../build_ot_coprocessor_rcp_uart_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_ot_coprocessor_rcp_uart.bin
140-
cp ../build_usb_console_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_usb_console.bin
141-
cp ../build_crypto_mbedtls_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_mbedtls.bin
142-
cp ../build_mcuboot_chip_id_tl3218/zephyr/zephyr.bin telink_build_artifacts/tl3218_mcuboot_chip_id.bin
128+
cp ../build_blinky_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_blinky.bin
129+
cp ../build_hello_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_hello_world.bin
130+
cp ../build_button_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_button.bin
131+
cp ../build_sht3xd_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_sht3xd.bin
132+
cp ../build_adc_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_adc.bin
133+
cp ../build_watchdog_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_watchdog.bin
134+
cp ../build_tests_flash_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_tests_flash.bin
135+
cp ../build_spi_flash_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_spi_flash.bin
136+
cp ../build_fade_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_tests_pwm.bin
137+
cp ../build_peripheral_ht_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_peripheral_ht.bin
138+
cp ../build_ot_cli_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_ot_cli.bin
139+
cp ../build_ot_coprocessor_rcp_uart_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_ot_coprocessor_rcp_uart.bin
140+
cp ../build_usb_console_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_usb_console.bin
141+
cp ../build_crypto_mbedtls_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_mbedtls.bin
142+
cp ../build_mcuboot_chip_id_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_mcuboot_chip_id.bin
143143
144144
- name: Publish artifacts
145145
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)