Skip to content

Commit d69405b

Browse files
committed
ESP32: Add Esp32c2 cdc usb serial variant
Signed-off-by: Peter M <petermm@gmail.com>
1 parent d75b9f1 commit d69405b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/esp32-mkimage.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
elixir_version: ["1.17"]
5151
rebar3_version: ["3.24.0"]
5252
compiler_pkgs: ["clang-14"]
53-
soc: ["esp32", "esp32c2", "esp32c3", "esp32s2", "esp32s3", "esp32c5", "esp32c6", "esp32c61", "esp32h2", "esp32p4", "esp32p4_pre", "esp32p4_c6", "esp32p4_pre_c6"]
53+
soc: ["esp32", "esp32c2", "esp32c3", "esp32s2", "esp32s2_cdc", "esp32s3", "esp32c5", "esp32c6", "esp32c61", "esp32h2", "esp32p4", "esp32p4_pre", "esp32p4_c6", "esp32p4_pre_c6"]
5454
flavor: ["", "-elixir"]
5555

5656
env:
@@ -121,7 +121,7 @@ jobs:
121121
make
122122
123123
- name: "Set SOC target"
124-
run: echo "SOC_TARGET=${{ startsWith(matrix.soc, 'esp32p4') && 'esp32p4' || matrix.soc }}" >> $GITHUB_ENV
124+
run: echo "SOC_TARGET=${{ startsWith(matrix.soc, 'esp32p4') && 'esp32p4' || startsWith(matrix.soc, 'esp32c2') && 'esp32c2' || matrix.soc }}" >> $GITHUB_ENV
125125

126126
- name: "Use release defaults"
127127
if: startsWith(github.ref, 'refs/tags/')
@@ -137,6 +137,13 @@ jobs:
137137
run: |
138138
cp sdkconfig.defaults.${{ matrix.soc }} sdkconfig.defaults.esp32p4
139139
140+
- name: "Enable USB serial for esp32c2_cdc"
141+
if: matrix.soc == 'esp32c2_cdc'
142+
shell: bash
143+
working-directory: ./src/platforms/esp32/
144+
run: |
145+
echo "CONFIG_USE_USB_SERIAL=y" >> sdkconfig.defaults
146+
140147
- name: "Handle esp32p4 c6 variants - add wifi_remote component"
141148
if: matrix.soc == 'esp32p4_c6' || matrix.soc == 'esp32p4_pre_c6'
142149
shell: bash

0 commit comments

Comments
 (0)