From 7c89e098cabf8e0baf58de73db694ee54d6675d4 Mon Sep 17 00:00:00 2001 From: Artem Makarov <132329+artemy@users.noreply.github.com> Date: Sat, 6 Dec 2025 15:32:39 +0100 Subject: [PATCH 1/2] #504: Fix build for ESP32P4 --- ext_mod/lcd_bus/esp32_src/i80_bus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext_mod/lcd_bus/esp32_src/i80_bus.c b/ext_mod/lcd_bus/esp32_src/i80_bus.c index 57304ec8..f83d217f 100644 --- a/ext_mod/lcd_bus/esp32_src/i80_bus.c +++ b/ext_mod/lcd_bus/esp32_src/i80_bus.c @@ -151,7 +151,12 @@ self->bus_config.data_gpio_nums[15] = args[ARG_data15].u_int; uint8_t i = 0; - for (; i < SOC_LCD_I80_BUS_WIDTH; i++) { + #if CONFIG_IDF_TARGET_ESP32P4 + uint8_t bus_width = SOC_LCDCAM_I80_BUS_WIDTH; + #else + uint8_t bus_width = SOC_LCD_I80_BUS_WIDTH; + #endif + for (; i < bus_width; i++) { if (self->bus_config.data_gpio_nums[i] == -1) { break; } From 107c123a7cad3285962c9fd0300628bca1008c95 Mon Sep 17 00:00:00 2001 From: Artem Makarov <132329+artemy@users.noreply.github.com> Date: Sat, 6 Dec 2025 15:35:22 +0100 Subject: [PATCH 2/2] Build for P4 in CI --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed12fc46..c6c04539 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -123,6 +123,12 @@ jobs: - name: ESP32_GENERIC_S3-SPIRAM_OCT-32_OCTFLASH run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=32 --octal-flash DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub + - name: ESP32_GENERIC_P4-4 + run: python3 make.py esp32 BOARD=ESP32_GENERIC_P4 --flash-size=4 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub + + - name: ESP32_GENERIC_P4-8 + run: python3 make.py esp32 BOARD=ESP32_GENERIC_P4 --flash-size=8 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub + # rp2-rel: # runs-on: ubuntu-latest # steps: