Skip to content

Commit fd55708

Browse files
authored
feat(esp32p4): Build libs for ESP32-P4 (#221)
* feat(esp32p4): Build libs for ESP32-P4 * Add target to workflows * Enable in builds * Remove bluedroid patch * Add P4 to libspi * Add P4 mem variants
1 parent f7cf4b4 commit fd55708

File tree

7 files changed

+11
-45
lines changed

7 files changed

+11
-45
lines changed

.github/workflows/cron.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2"
3737
- idf_branch: "release/v5.3"
3838
lib_builder_branch: "release/v5.3"
39-
targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2"
39+
targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2,esp32p4"

.github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2]
28+
target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4]
2929
fail-fast: false
3030
steps:
3131
- uses: actions/checkout@v4

configs/builds.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"file":"libspi_flash.a",
55
"src":"build/esp-idf/spi_flash/libspi_flash.a",
66
"out":"lib/libspi_flash.a",
7-
"targets":["esp32","esp32c2","esp32c3","esp32s2","esp32s3","esp32c6","esp32h2"]
7+
"targets":["esp32","esp32c2","esp32c3","esp32s2","esp32s3","esp32c6","esp32h2","esp32p4"]
88
},
99
{
1010
"file":"libesp_psram.a",
@@ -46,13 +46,17 @@
4646
"targets":[
4747
{
4848
"target": "esp32p4",
49-
"skip": 1,
5049
"features":[],
5150
"idf_libs":["qio","80m"],
5251
"bootloaders":[
53-
["qio","80m"]
52+
["qio","80m"],
53+
["dio","80m"],
54+
["qio","40m"],
55+
["dio","40m"]
5456
],
55-
"mem_variants":[]
57+
"mem_variants":[
58+
["dio","80m"]
59+
]
5660
},
5761
{
5862
"target": "esp32c2",

main/idf_component.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
# Required IDF version
3-
idf: ">=5.1"
3+
idf: ">=5.3"
44
espressif/esp32-camera:
55
version: "master"
66
git: https://github.com/espressif/esp32-camera.git

patches/esp32c6_provisioning_bluedroid.diff

-12
This file was deleted.

patches/mmu_map.diff

-24
This file was deleted.

tools/install-esp-idf.sh

-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then
4040
# Temporarily patch the ESP32-S2 I2C LL driver to keep the clock source
4141
cd $IDF_PATH
4242
patch -p1 -N -i $AR_PATCHES/esp32s2_i2c_ll_master_init.diff
43-
patch -p1 -N -i $AR_PATCHES/mmu_map.diff
4443
patch -p1 -N -i $AR_PATCHES/lwip_max_tcp_pcb.diff
45-
patch -p1 -N -i $AR_PATCHES/esp32c6_provisioning_bluedroid.diff
4644
cd -
4745
fi
4846

0 commit comments

Comments
 (0)