|
1 | 1 | # Copyright (c) 2024 Telink Semiconductor
|
2 | 2 | # SPDX-License-Identifier: Apache-2.0
|
3 | 3 |
|
4 |
| -name: Telink TL321x build examples |
| 4 | +name: Telink TL321X build examples |
5 | 5 |
|
6 | 6 | on: pull_request
|
7 | 7 |
|
|
10 | 10 | runs-on: ubuntu-latest
|
11 | 11 | name: Telink build examples
|
12 | 12 | env:
|
13 |
| - ZEPHYR_SDK_VERSION: 0.16.8 |
| 13 | + ZEPHYR_SDK_VERSION: 0.17.0 |
14 | 14 | steps:
|
15 | 15 |
|
16 | 16 | - name: Install dependencies
|
@@ -42,104 +42,104 @@ jobs:
|
42 | 42 | west zephyr-export
|
43 | 43 | pip install -r zephyr/scripts/requirements.txt
|
44 | 44 |
|
45 |
| - - name: Build TL321x samples/basic/blinky |
| 45 | + - name: Build TL321X samples/basic/blinky |
46 | 46 | run: |
|
47 | 47 | 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 |
49 | 49 |
|
50 |
| - - name: Build TL321x samples/hello_world |
| 50 | + - name: Build TL321X samples/hello_world |
51 | 51 | run: |
|
52 | 52 | 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 |
54 | 54 |
|
55 |
| - - name: Build TL321x samples/basic/button |
| 55 | + - name: Build TL321X samples/basic/button |
56 | 56 | run: |
|
57 | 57 | 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 |
59 | 59 |
|
60 |
| - - name: Build TL321x samples/sensor/sht3xd |
| 60 | + - name: Build TL321X samples/sensor/sht3xd |
61 | 61 | run: |
|
62 | 62 | 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 |
64 | 64 |
|
65 |
| - - name: Build TL321x samples/drivers/adc |
| 65 | + - name: Build TL321X samples/drivers/adc |
66 | 66 | run: |
|
67 | 67 | 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 |
69 | 69 |
|
70 |
| - - name: Build TL321x samples/drivers/watchdog |
| 70 | + - name: Build TL321X samples/drivers/watchdog |
71 | 71 | run: |
|
72 | 72 | 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 |
74 | 74 |
|
75 |
| - - name: Build TL321x tests/drivers/flash/common |
| 75 | + - name: Build TL321X tests/drivers/flash/common |
76 | 76 | run: |
|
77 | 77 | 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 |
79 | 79 |
|
80 |
| - - name: Build TL321x samples/drivers/spi_flash |
| 80 | + - name: Build TL321X samples/drivers/spi_flash |
81 | 81 | run: |
|
82 | 82 | 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 |
84 | 84 |
|
85 |
| - - name: Build TL321x samples/basic/fade_led/ |
| 85 | + - name: Build TL321X samples/basic/fade_led/ |
86 | 86 | run: |
|
87 | 87 | 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 |
89 | 89 |
|
90 |
| - - name: Build TL321x bluetooth/peripheral_ht |
| 90 | + - name: Build TL321X bluetooth/peripheral_ht |
91 | 91 | run: |
|
92 | 92 | 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 |
94 | 94 |
|
95 |
| - - name: Build TL321x net/openthread/cli |
| 95 | + - name: Build TL321X net/openthread/cli |
96 | 96 | run: |
|
97 | 97 | 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 |
99 | 99 |
|
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 |
101 | 101 | run: |
|
102 | 102 | 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 |
104 | 104 |
|
105 |
| - - name: Build TL321x subsys/usb/console for USB driver |
| 105 | + - name: Build TL321X subsys/usb/console for USB driver |
106 | 106 | run: |
|
107 | 107 | 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 |
109 | 109 |
|
110 | 110 | - name: Build TL321X crypto/mbedtls
|
111 | 111 | run: |
|
112 | 112 | 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 |
114 | 114 |
|
115 | 115 | - name: Build TL321X bootloader/mcuboot/boot for compressed LZMA image
|
116 | 116 | run: |
|
117 | 117 | 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 |
119 | 119 |
|
120 | 120 | - name: Build TL321X bootloader/mcuboot/boot - chip id
|
121 | 121 | run: |
|
122 | 122 | 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 |
124 | 124 |
|
125 | 125 | - name: Collect artifacts
|
126 | 126 | run: |
|
127 | 127 | 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 |
143 | 143 |
|
144 | 144 | - name: Publish artifacts
|
145 | 145 | uses: actions/upload-artifact@v4
|
|
0 commit comments