Skip to content

Commit d135289

Browse files
Merge branch 'espressif:master' into feature/lvgl_port_enable_simd_render
2 parents c0deafb + f7fd091 commit d135289

23 files changed

+541
-86
lines changed

.build-test-rules.yml

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,68 @@
1+
# Examples: Always build all
12
examples:
23
disable:
34
- if: CONFIG_NAME in ["esp-box", "esp-box-lite"]
45
reason: Do not build examples for deprecated BSPs
5-
- if: IDF_VERSION_MAJOR < 5 and CONFIG_NAME in ["esp32_c3_lcdkit", "esp32_s3_lcd_ev_board", "esp32_s3_usb_otg", "m5stack_core_s3", "m5stack_core_2", "m5dial"]
6-
reason: Example depends on BSP, which is supported only for IDF >= 5.0
7-
- if: IDF_VERSION_MAJOR < 5 and IDF_TARGET in ["esp32c2", "esp32p4", "esp32c5", "esp32c6"]
8-
reason: Example depends on target, which is supported only for IDF >= 5.0
96
- if: IDF_VERSION_MAJOR < 5 and IDF_VERSION_MINOR < 3 and CONFIG_NAME == "esp32_p4_function_ev_board"
107
reason: Example depends on BSP, which is supported only for IDF >= 5.3
118

12-
components/lcd/esp_lcd_gc9503:
9+
# Noglib test_app: Build only in CI, where ENV_BUILD_NOGLIB is set
10+
test_apps/noglib:
1311
disable:
14-
- if: IDF_VERSION_MAJOR < 5 or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 0 and ESP_IDF_VERSION_PATCH < 5) or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 1 and ESP_IDF_VERSION_PATCH == 1)
15-
reason: Supported from version 5.0.5 and not supported in version 5.1.1
12+
- if: ENV_BUILD_NOGLIB == 0
13+
14+
# Common components test_app: Build for changes in components which do not have their own test_app or example
15+
test_apps/components:
16+
depends_filepatterns:
17+
- "components/bh1750/**"
18+
- "components/ds18b20/**"
19+
- "components/fbm320/**"
20+
- "components/hts221/**"
21+
- "components/icm42670/**"
22+
- "components/io_expander/**"
23+
- "components/lcd/ra8875/**"
24+
- "components/lcd/sh1107/**"
25+
- "components/lcd_touch/**"
26+
- "components/mag3110/**"
27+
- "components/mpu6050/**"
1628

17-
components/lcd/esp_lcd_gc9503/test_apps:
29+
# esp_lvgl_port: Build only on related changes and components used in examples
30+
components/esp_lvgl_port:
31+
depends_filepatterns:
32+
- "components/esp_lvgl_port/**"
33+
- "components/lcd_touch/esp_lcd_touch_tt21100/**"
34+
- "components/lcd_touch/esp_lcd_touch_gt1151/**"
35+
- "components/lcd/sh1107/**"
36+
37+
# LCD components: Build only on related changes
38+
components/lcd/esp_lcd_gc9a01:
39+
depends_filepatterns:
40+
- "components/lcd/esp_lcd_gc9a01/**"
41+
42+
components/lcd/esp_lcd_gc9503:
43+
depends_filepatterns:
44+
- "components/lcd/esp_lcd_gc9503/**"
1845
disable:
1946
- if: IDF_VERSION_MAJOR < 5 or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 0 and ESP_IDF_VERSION_PATCH < 5) or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 1 and ESP_IDF_VERSION_PATCH == 1)
2047
reason: Supported from version 5.0.5 and not supported in version 5.1.1
2148

22-
components/lcd/esp_lcd_ssd1681:
23-
disable:
24-
- if: IDF_VERSION_MAJOR < 5
25-
reason: Component is supported only for IDF >= 5.0
26-
27-
components/esp_lvgl_port/examples/rgb_lcd:
28-
disable:
29-
- if: IDF_VERSION_MAJOR < 5
30-
reason: Example for RGB LCD is supported only for IDF >= 5.0
49+
components/lcd/esp_lcd_ili9341:
50+
depends_filepatterns:
51+
- "components/lcd/esp_lcd_ili9341/**"
3152

3253
components/lcd/esp_lcd_ili9881c:
54+
depends_filepatterns:
55+
- "components/lcd/esp_lcd_ili9881c/**"
3356
disable:
3457
- if: (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR < 3) or IDF_VERSION_MAJOR < 5
3558
reason: Component is supported only for IDF >= 5.3
3659
- if: IDF_TARGET not in ["esp32p4"]
3760
reason: Component is supported only for esp32p4 target
3861

39-
components/lcd/esp_lcd_st7796/test_apps:
40-
disable:
41-
- if: IDF_VERSION_MAJOR < 5
42-
reason: Component is supported only for IDF >= 5.0
62+
components/lcd/esp_lcd_ssd1681:
63+
depends_filepatterns:
64+
- "components/lcd/esp_lcd_ssd1681/**"
65+
66+
components/lcd/esp_lcd_st7796:
67+
depends_filepatterns:
68+
- "components/lcd/esp_lcd_st7796/**"
Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
name: Build BSP examples
1+
name: Build ESP-BSP apps
2+
3+
# This job builds all examples and test_applications in this repo
4+
# Applications are selected for build based on changes files and dependecies defined in .build-test-rules.yml
25

36
on:
47
pull_request:
@@ -24,12 +27,6 @@ jobs:
2427
- idf_ver: "latest"
2528
parallel_count: 5
2629
parallel_index: 5
27-
- idf_ver: "release-v4.4"
28-
parallel_count: 2
29-
parallel_index: 1
30-
- idf_ver: "release-v4.4"
31-
parallel_count: 2
32-
parallel_index: 2
3330
- idf_ver: "release-v5.1"
3431
parallel_count: 2
3532
parallel_index: 1
@@ -48,20 +45,24 @@ jobs:
4845
- idf_ver: "release-v5.3"
4946
parallel_count: 2
5047
parallel_index: 2
51-
runs-on: ubuntu-20.04
48+
runs-on: ubuntu-latest
5249
container: espressif/idf:${{ matrix.idf_ver }}
5350
steps:
54-
- uses: actions/checkout@v3
55-
with:
56-
submodules: 'recursive'
57-
- name: Build ESP-BSP examples
51+
- uses: actions/checkout@v4
52+
53+
- name: Get changed files
54+
id: changed-files
55+
uses: tj-actions/changed-files@v45
56+
57+
- name: Build ESP-BSP applications
5858
shell: bash
5959
env:
60-
extra_arguments: "${{ matrix.idf_ver == 'latest' && '--default-build-targets esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c6 esp32h2 esp32p4' || '' }}"
60+
IDF_EXTRA_ACTIONS_PATH: "${{ github.workspace }}/examples"
61+
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
6162
run: |
62-
export IDF_EXTRA_ACTIONS_PATH=${GITHUB_WORKSPACE}/examples
6363
. ${IDF_PATH}/export.sh
64-
pip install idf-component-manager==1.* ruamel.yaml idf-build-apps --upgrade
65-
echo idf-build-apps extra arguments: ${{ env.extra_arguments }}
66-
idf-build-apps find ${{ env.extra_arguments }}
67-
idf-build-apps build --parallel-count ${{ matrix.parallel_count }} --parallel-index ${{ matrix.parallel_index }} ${{ env.extra_arguments }}
64+
pip install idf-component-manager==1.* ruamel.yaml idf-build-apps==2.4.3 --upgrade
65+
66+
echo "Files changed: ${ALL_CHANGED_FILES}"
67+
idf-build-apps find --modified-files "${ALL_CHANGED_FILES}"
68+
idf-build-apps build --parallel-count ${{ matrix.parallel_count }} --parallel-index ${{ matrix.parallel_index }} --modified-files "${ALL_CHANGED_FILES}"

.github/workflows/build_test.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.idf_build_apps.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
target = "all"
2-
paths = "."
31
recursive = true
42
exclude = [
5-
"test_app",
63
"SquareLine",
7-
"bsp"
84
]
95
manifest_file = ".build-test-rules.yml"
106
check_warnings = true

Doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RECURSIVE = YES
88
EXCLUDE = docu \
99
examples \
1010
SquareLine \
11-
test_app
11+
test_apps
1212
EXCLUDE_PATTERNS = */build/* \
1313
*/managed_components/* \
1414
*/dist/*
@@ -21,4 +21,4 @@ PREDEFINED = \
2121
ESP_LVGL_PORT_TOUCH_COMPONENT=1 \
2222
ESP_LVGL_PORT_BUTTON_COMPONENT=1 \
2323
ESP_LVGL_PORT_KNOB_COMPONENT=1 \
24-
ESP_LVGL_PORT_USB_HOST_HID_COMPONENT=1
24+
ESP_LVGL_PORT_USB_HOST_HID_COMPONENT=1

check_copyright_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ examples_and_unit_tests:
3232
- 'examples/'
3333
- 'components/**/test/**'
3434
- 'components/**/test_apps/**'
35-
- 'test_app/'
35+
- 'test_apps/'
3636
- 'SquareLine/'
3737
allowed_licenses:
3838
- Apache-2.0

components/esp_lvgl_port/CHANGELOG.md

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

3+
## 2.3.2
4+
5+
### Fixes
6+
- Fixed rotation type compatibility with LVGL8.
7+
38
## 2.3.1
49

510
### Fixes

components/esp_lvgl_port/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.3.1"
1+
version: "2.3.2"
22
description: ESP LVGL port
33
url: https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port
44
dependencies:

components/esp_lvgl_port/include/esp_lvgl_port_compatibility.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ typedef enum {
2525
LV_DISPLAY_ROTATION_180 = LV_DISP_ROT_180,
2626
LV_DISPLAY_ROTATION_270 = LV_DISP_ROT_270
2727
} lv_disp_rotation_t;
28+
typedef lv_disp_rotation_t lv_display_rotation_t;
2829

2930
#ifdef __cplusplus
3031
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# CMakeLists in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
set(EXTRA_COMPONENT_DIRS "../components" "../components/lcd" "../components/lcd_touch" "../components/io_expander")
5+
set(EXTRA_COMPONENT_DIRS "../../components" "../../components/lcd" "../../components/lcd_touch" "../../components/io_expander")
66
set(EXCLUDE_COMPONENTS "es8311 es7210") # Deprecated components
77

88
include($ENV{IDF_PATH}/tools/cmake/version.cmake) # $ENV{IDF_VERSION} was added after v4.3...

0 commit comments

Comments
 (0)