Skip to content

Commit 5c1ba5a

Browse files
author
Gao Wei
committed
ci: Support esp_board_manager
1 parent db8fd8f commit 5c1ba5a

File tree

16 files changed

+386
-44
lines changed

16 files changed

+386
-44
lines changed

.gitlab/ci/build_examples.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,18 @@
3030
extends:
3131
- .build_template
3232
script:
33-
- cd $CI_PROJECT_DIR
34-
- pip install idf_build_apps
33+
- python $CI_PROJECT_DIR/tools/ci/esp_bmgr_pre_build.py --target $IDF_TARGET --board $AUDIO_BOARD --project-path ${EXAMPLES_PATH[@]} --target-dir-type ${TARGET_DIR_TYPE}
3534
- run_cmd python $CI_PROJECT_DIR/tools/ci/build_apps.py ${EXAMPLES_PATH[@]} \
36-
-t $IDF_TARGET -vv \
37-
--target-dir-type ${TARGET_DIR_TYPE} \
38-
--build-dir ${IDF_VERSION_TAG}/build_@t_@w \
39-
--parallel-count ${parallel##*/} \
40-
--parallel-index ${parallel%%/*}
35+
-t $IDF_TARGET -vv \
36+
--target-dir-type ${TARGET_DIR_TYPE} \
37+
--build-dir ${IDF_VERSION_TAG}/build_@t_@w \
38+
--parallel-count ${parallel##*/} \
39+
--parallel-index ${parallel%%/*}
4140

4241
.matrix_template: &matrix_template
4342
parallel:
4443
matrix:
45-
- IDF_VERSION_TAG: ['v5.3', 'v5.4']
44+
- IDF_VERSION_TAG: ['v5.4.3']
4645
parallel: [ 1/1 ]
4746

4847
build_examples_esp32_lyrat_mini_v1_1:
@@ -52,7 +51,7 @@ build_examples_esp32_lyrat_mini_v1_1:
5251
- .matrix_template
5352
variables:
5453
IDF_TARGET: esp32
55-
AUDIO_BOARD: ESP_LYRAT_MINI_V1_1
54+
AUDIO_BOARD: lyrat_mini_v1_1
5655

5756
.build_examples_esp32s2_kaluga_v1_2:
5857
extends:
@@ -61,7 +60,7 @@ build_examples_esp32_lyrat_mini_v1_1:
6160
- .matrix_template
6261
variables:
6362
IDF_TARGET: esp32s2
64-
AUDIO_BOARD: ESP32_S2_KALUGA_1_V1_2
63+
AUDIO_BOARD: ''
6564

6665
build_examples_esp32s3_korvo_v2:
6766
extends:
@@ -70,4 +69,4 @@ build_examples_esp32s3_korvo_v2:
7069
- .matrix_template
7170
variables:
7271
IDF_TARGET: esp32s3
73-
AUDIO_BOARD: ESP32_S3_KORVO2_V3
72+
AUDIO_BOARD: esp32_s3_korvo2_v3

.gitlab/ci/build_ut.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
variables:
2-
DOCKER_IMAGE: ${CI_DOCKER_IMAGE_REGISTRY}/env_default:1
32
BASE_FRAMEWORK_PATH: "${IDF_PATH}"
43
BASE_FRAMEWORK: $IDF_REPOSITORY
54
IDF_TAG_FLAG: true
@@ -11,7 +10,7 @@ variables:
1110
TEST_DIR: ${CI_PROJECT_DIR}/gmf_core
1211
parallel:
1312
matrix:
14-
- IDF_VERSION_TAG: ['v5.4']
13+
- IDF_VERSION_TAG: ['v5.4.3']
1514
parallel: [ 1/1 ]
1615
extends:
1716
- .rules:build:protected-merge-requests-pipeline
@@ -32,16 +31,14 @@ variables:
3231
- "${TEST_DIR}/**/test_apps/*.py"
3332
expire_in: 4 days
3433
script:
35-
- cd ${CI_PROJECT_DIR}
34+
- python $CI_PROJECT_DIR/tools/ci/esp_bmgr_pre_build.py --target $IDF_TARGET --board $AUDIO_BOARD --project-path ${TEST_DIR} --target-dir-type ${TARGET_DIR_TYPE}
3635
- run_cmd python $CI_PROJECT_DIR/tools/ci/build_apps.py ${TEST_DIR} \
37-
-t $IDF_TARGET -vv \
38-
--target-dir-type ${TARGET_DIR_TYPE} \
39-
--build-dir ${IDF_VERSION_TAG}/build_@t_@w \
40-
--parallel-count ${parallel##*/} \
41-
--parallel-index ${parallel%%/*}
36+
-t $IDF_TARGET -vv \
37+
--target-dir-type ${TARGET_DIR_TYPE} \
38+
--build-dir ${IDF_VERSION_TAG}/build_@t_@w \
39+
--parallel-count ${parallel##*/} \
40+
--parallel-index ${parallel%%/*}
4241
- python $CI_PROJECT_DIR/tools/ci/check_test_cxx_build.py
43-
after_script:
44-
- find "${TEST_DIR}" -type d -name "managed_components" -exec rm -rf {} +
4542

4643
.build_ut_gmf_packages:
4744
extends:
@@ -60,6 +57,7 @@ build_ut_gmf_core_esp32:
6057
- .build_gmf_component
6158
variables:
6259
IDF_TARGET: esp32
60+
AUDIO_BOARD: lyrat_mini_v1_1
6361

6462
.build_ut_gmf_core_esp32c3:
6563
extends:
@@ -72,39 +70,46 @@ build_ut_gmf_core_esp32s3:
7270
- .build_gmf_component
7371
variables:
7472
IDF_TARGET: esp32s3
73+
AUDIO_BOARD: esp32_s3_korvo2_v3
7574

7675
.build_ut_gmf_core_esp32p4:
7776
extends:
7877
- .build_gmf_component
7978
variables:
8079
IDF_TARGET: esp32p4
80+
AUDIO_BOARD: esp32_p4_function_ev
8181

8282
build_ut_gmf_elements_esp32:
8383
extends:
8484
- .build_ut_gmf_elements
8585
variables:
8686
IDF_TARGET: esp32
87+
AUDIO_BOARD: lyrat_mini_v1_1
8788

8889
build_ut_gmf_elements_esp32s3:
8990
extends:
9091
- .build_ut_gmf_elements
9192
variables:
9293
IDF_TARGET: esp32s3
94+
AUDIO_BOARD: esp32_s3_korvo2_v3
9395

9496
.build_ut_gmf_elements_esp32p4:
9597
extends:
9698
- .build_ut_gmf_elements
9799
variables:
98100
IDF_TARGET: esp32p4
101+
AUDIO_BOARD: esp32_p4_function_ev
99102

100103
build_ut_gmf_packages_esp32:
101104
extends:
102105
- .build_ut_gmf_packages
103106
variables:
104107
IDF_TARGET: esp32
108+
AUDIO_BOARD: lyrat_mini_v1_1
105109

106110
build_ut_gmf_packages_esp32s3:
107111
extends:
108112
- .build_ut_gmf_packages
109113
variables:
110114
IDF_TARGET: esp32s3
115+
AUDIO_BOARD: esp32_s3_korvo2_v3

.gitlab/ci/common.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
variables:
2-
DOCKER_IMAGE: ${CI_DOCKER_IMAGE_REGISTRY}/env_v5.3:1
32
IDF_TAG_FLAG: true
3+
IDF_EXTRA_ACTIONS_PATH: ${CI_PROJECT_DIR}/packages/esp_board_manager
44

55
.update_source: &update_source
66
- source ${CI_PROJECT_DIR}/tools/ci/utils.sh
77
- add_gitlab_ssh_keys
88
- git submodule update --init --recursive --depth 1
9+
- git clone --depth 1 -b $IDF_VERSION_TAG $IDF_REPOSITORY $IDF_PATH
10+
- fetch_idf_branch $IDF_VERSION_TAG
911
- cd $BASE_FRAMEWORK_PATH
1012
- git log -2
1113
- common_before_scripts
1214
- setup_tools_and_idf_python_venv
1315
- set_env_variable
16+
- cd ${CI_PROJECT_DIR}
1417

1518
.build_template:
1619
stage: build
17-
image: ${DOCKER_IMAGE}
20+
image: ${IMAGE}
1821
interruptible: true
1922
tags:
2023
- multimedia_build
2124
before_script:
2225
- *update_source
26+
after_script:
27+
- find "${TEST_DIR}" -type d \( -name "managed_components" -o -name "build" \) -exec rm -rf {} +
2328

2429
.target_test_template:
2530
stage: target_test

.gitlab/ci/rules.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
IMAGE: "$CI_DOCKER_IMAGE_REGISTRY/env_v5.3:1"
5151

5252
.idf-version-tag-v5-4: &idf-version-tag-v5-4
53-
if: '$IDF_VERSION_TAG == "v5.4"'
53+
if: '$IDF_VERSION_TAG == "v5.4.3"'
5454
variables:
55-
IMAGE: "$CI_DOCKER_IMAGE_REGISTRY/env_default:1"
55+
IMAGE: "$CI_IDF_DOCKER_REGISTRY/esp-env-v5.4:2"
5656

5757
.rules:ref:main-schedule:
5858
rules:

.gitlab/ci/target_examples.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- .target_test_template
44
parallel:
55
matrix:
6-
- IDF_VERSION_TAG: ['v5.3', 'v5.4']
6+
- IDF_VERSION_TAG: ['v5.4.3']
77
variables:
88
GIT_DEPTH: 1
99
SUBMODULES_TO_FETCH: "none"
@@ -57,8 +57,7 @@ audio_playback_test_esp32:
5757
variables:
5858
IDF_TARGET: esp32
5959
needs:
60-
- 'build_examples_esp32_lyrat_mini_v1_1: [v5.3, 1/1]'
61-
- 'build_examples_esp32_lyrat_mini_v1_1: [v5.4, 1/1]'
60+
- 'build_examples_esp32_lyrat_mini_v1_1: [v5.4.3, 1/1]'
6261
tags: [ esp32, AUDIO_LOOPBACK_ENV ]
6362

6463
example_test_esp32s3:
@@ -67,6 +66,5 @@ example_test_esp32s3:
6766
variables:
6867
IDF_TARGET: esp32s3
6968
needs:
70-
- 'build_examples_esp32s3_korvo_v2: [v5.3, 1/1]'
71-
- 'build_examples_esp32s3_korvo_v2: [v5.4, 1/1]'
69+
- 'build_examples_esp32s3_korvo_v2: [v5.4.3, 1/1]'
7270
tags: [ esp32s3 ]

.gitlab/ci/target_ut.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
extends:
33
- .target_test_template
44
variables:
5-
IDF_VERSION_TAG: v5.4
5+
IDF_VERSION_TAG: v5.4.3
66
IDF_TAG_FLAG: true
77
TARGET_DIR_TYPE: "test_apps"
88
artifacts:
@@ -38,7 +38,7 @@ ut_gmf_core_esp32s3:
3838
extends:
3939
- .pytest_components_dir_template
4040
needs:
41-
- 'build_ut_gmf_core_esp32s3: [v5.4, 1/1]'
41+
- 'build_ut_gmf_core_esp32s3: [v5.4.3, 1/1]'
4242
variables:
4343
TEST_DIR: ${CI_PROJECT_DIR}/gmf_core
4444
tags: [ ESP32S3, ESP_GMF_COMPONENT ]
@@ -47,7 +47,7 @@ ut_gmf_elements_esp32s3:
4747
extends:
4848
- .pytest_components_dir_template
4949
needs:
50-
- 'build_ut_gmf_elements_esp32s3: [v5.4, 1/1]'
50+
- 'build_ut_gmf_elements_esp32s3: [v5.4.3, 1/1]'
5151
variables:
5252
TEST_DIR: ${CI_PROJECT_DIR}/elements
5353
tags: [ ESP32S3, ESP_GMF_COMPONENT ]
@@ -56,7 +56,7 @@ ut_gmf_packages_esp32s3:
5656
extends:
5757
- .pytest_components_dir_template
5858
needs:
59-
- 'build_ut_gmf_packages_esp32s3: [v5.4, 1/1]'
59+
- 'build_ut_gmf_packages_esp32s3: [v5.4.3, 1/1]'
6060
variables:
6161
TEST_DIR: ${CI_PROJECT_DIR}/packages
6262
tags: [ ESP32S3, ESP_GMF_COMPONENT ]

packages/esp_audio_render/examples/simple_piano/sdkconfig.defaults

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
1010
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
1111
CONFIG_FREERTOS_HZ=1000
1212

13-
# Use new I2C master
14-
CONFIG_CODEC_I2C_BACKWARD_COMPATIBLE=n
15-
1613
# Enable experimental features
1714
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
1815

packages/esp_board_manager/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.4.6
4+
5+
### Bug Fixes
6+
7+
- Fixed the SD card mount failure issue
8+
39
## 0.4.5
410

511
### Bug Fixes

packages/esp_board_manager/boards/lyrat_mini_v1_1/board_devices.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 1.0.0
44
# Devices Configuration
55
devices:
66
# SD Card Power Control
7-
- name: lcd_power
7+
- name: sd_power
88
type: gpio_ctrl
99
version: default
1010
config:
@@ -18,7 +18,6 @@ devices:
1818
chip: es8311
1919
type: audio_codec
2020
version: default
21-
skip_init: true
2221
config:
2322
dac_enabled: true
2423
dac_max_channel: 1
@@ -39,7 +38,6 @@ devices:
3938
chip: es7243e # Some old boards use ES7243, ES7243 is EOL
4039
type: audio_codec
4140
version: default
42-
# skip_init: true
4341
config:
4442
adc_enabled: true
4543
adc_max_channel: 2

packages/esp_board_manager/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.4.5
1+
version: 0.4.6
22
description: Board manager for ESP-GMF
33
url: https://github.com/espressif/esp-gmf/tree/main/packages/esp_board_manager
44
documentation: https://github.com/espressif/esp-gmf/blob/main/packages/esp_board_manager/README.md

0 commit comments

Comments
 (0)