From 2bbdd35383f92bc033b2f25bba89b342b817fa15 Mon Sep 17 00:00:00 2001 From: morris Date: Fri, 13 Oct 2023 14:57:32 +0800 Subject: [PATCH] build: trim lcd apps build dependency --- .../esp_lcd/test_apps/.build-test-rules.yml | 18 ++++++++++++++++++ examples/peripherals/.build-test-rules.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/components/esp_lcd/test_apps/.build-test-rules.yml b/components/esp_lcd/test_apps/.build-test-rules.yml index cda8b07ea9..7067d63dd9 100644 --- a/components/esp_lcd/test_apps/.build-test-rules.yml +++ b/components/esp_lcd/test_apps/.build-test-rules.yml @@ -3,6 +3,10 @@ components/esp_lcd/test_apps/i2c_lcd: disable: - if: SOC_I2C_SUPPORTED != 1 + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/i2c/**/* disable_test: - if: IDF_TARGET not in ["esp32c3"] temporary: true @@ -11,19 +15,33 @@ components/esp_lcd/test_apps/i2c_lcd: components/esp_lcd/test_apps/i2c_lcd_legacy: disable: - if: SOC_I2C_SUPPORTED != 1 + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/i2c/**/* disable_test: - if: IDF_TARGET not in ["esp32c3"] temporary: true reason: insufficient runners components/esp_lcd/test_apps/i80_lcd: + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/i2s/**/* # i80 IO driver relies on I2S on esp32 and esp32s2 disable: - if: SOC_LCD_I80_SUPPORTED != 1 components/esp_lcd/test_apps/rgb_lcd: + depends_components: + - esp_lcd disable: - if: SOC_LCD_RGB_SUPPORTED != 1 components/esp_lcd/test_apps/spi_lcd: + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/spi/**/* disable: - if: SOC_GPSPI_SUPPORTED != 1 diff --git a/examples/peripherals/.build-test-rules.yml b/examples/peripherals/.build-test-rules.yml index b96b77160a..4973ca0494 100644 --- a/examples/peripherals/.build-test-rules.yml +++ b/examples/peripherals/.build-test-rules.yml @@ -103,22 +103,40 @@ examples/peripherals/i2s/i2s_recorder: examples/peripherals/lcd/i2c_oled: disable: - if: SOC_I2C_SUPPORTED != 1 + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/i2c/**/* examples/peripherals/lcd/i80_controller: disable: - if: SOC_LCD_I80_SUPPORTED != 1 + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/i2s/**/* # i80 IO driver relies on I2S on esp32 and esp32s2 examples/peripherals/lcd/rgb_panel: disable: - if: SOC_LCD_RGB_SUPPORTED != 1 + depends_components: + - esp_lcd examples/peripherals/lcd/spi_lcd_touch: disable: - if: SOC_GPSPI_SUPPORTED != 1 + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/spi/**/* examples/peripherals/lcd/tjpgd: disable: - if: SOC_GPSPI_SUPPORTED != 1 + depends_components: + - esp_lcd + depends_filepatterns: + - components/driver/spi/**/* examples/peripherals/ledc: disable: