dev-embedded/esp-idf: add 6.0

Signed-off-by: David Roman <stkw0@disroot.org>
This commit is contained in:
David Roman
2026-03-25 17:16:02 +01:00
parent c88b09cc75
commit 34cb5dc72c
3 changed files with 216 additions and 0 deletions

View File

@@ -1,13 +1,16 @@
DIST esp-idf-5.3.5.zip 1846632836 BLAKE2B 95100c03e40699222b1510e3ac1b259d58f07ba8403842abd94218ab49e9f6ef17b83f2b04cbaa5226978a1dfead0c97d45aa0ecfc6c30de1a2c93f82ce30452 SHA512 b64920e9f04c2eda773951eeb71719c6034668accf138b54233ddd6a02112c6574c14f3a6209ef120600d64b64b5451fde21a1989e850cb7a0105be40f3bbb12
DIST esp-idf-5.4.3.zip 1478722390 BLAKE2B dfda77a01f18a74c27e5be953f9afabcca7e99b3192bc6a30af44e7ddb805e9edce8592f51bd85140bf9d83fa28b20524acb73e35d9ba0c53d8261e820d63c7b SHA512 5ca5dfa537786f0f2261e80fb10da16f244fe5aeaae8aea405c4bd51b113c30d8fb00afbc550b82ebe7ef3e84f0bbed8416bf02de0e62c2b28b0e09a6f8afa9f
DIST esp-idf-5.5.3.zip 1790510329 BLAKE2B af1a5c00f134453805cee0a069a097e2a3997df533c0784d2fef21d86aebe71a0e6fb4da41deb1f3fae98468fe5ad22d276e0dbb30123fbc8303480dd1f36eac SHA512 b9f1c4156e6455409269bc7ae6de3c9e8ddc362df718267cd9ecc7264b6cb526a7838dee3e5e1fff2c9a796853a26199c111328cd979fc76b7e8684943832bc3
DIST esp-idf-6.0.zip 1779685216 BLAKE2B d2585d87f7ec25fea444c2fdb2890e622fdf432720b4772bbfc7f65904a88b09b5fbc69ace8321d8921dbeabfa1f911d317d6d204e9fa883d86370987d053233 SHA512 acc0ca998aeb0a9c500ed4434e38099ffdfe515b5440d0424ca440d532000491fe9401d664da4c2e82d6bc5a4059c541f25e17381200e8d3b3a4d73ad5322ce6
DIST openocd-esp32-linux-amd64-0.12.0-esp32-20250707.tar.gz 2489724 BLAKE2B c10986749d4eede30d516f7d1e66cbadde19c45d2299f806504262b4d455ab3932db4416f300946f4e71cd6dd5c1f97ad959064d0b5024d0c3fb0e8a06966334 SHA512 5e57d1256aa08bc56ede84a672f9fbdfa6fa56a9044604b4078b1145822d645c1071e5383bc75dffc173e8121baadd9bd2124f19a7b44aea56e67f7c92ab9017
DIST openocd-esp32-linux-amd64-0.12.0-esp32-20251215.tar.gz 2547606 BLAKE2B c7f875f2b63f0dff29239a4623b06f96760773a7686fa6a9aa0074fd4b10dff6621e09838402a62222cf282a120399fbe7b6cbc4fb70a7c0f4d96c85e02c3e46 SHA512 a6e52a5b35cf053f45d917dbcea87087cad42cdb09381c082c20fac43f65ae341949223f55289bc6c084db61d4a963a8277e030202db4495578801ea7e83b281
DIST riscv32-esp-elf-13.2.0_20250707-x86_64-linux-gnu.tar.xz 150554748 BLAKE2B 309992d43734f621fe2a6a98ad31dfec3ff97bf8b006dcea7e40df7bee4b28e7e555f79422642b0772d583433edcd1c5917f5842e7f1279589af2b7d6d28879c SHA512 0b67693c1cfd45e95f3353c4ba8891b6244af779f711bd6de186ace857577e7069ec3bb2cf7c121fce49640027c2118c0cef7784eaba7807a8472c30e7144710
DIST riscv32-esp-elf-14.2.0_20250730-x86_64-linux-gnu.tar.xz 303504168 BLAKE2B 46b861537f3d3c9b9107c086fd7f606f23e8073e608bb2363c33e492a9de5f710404fb5092c5bf0fbfa1a2c0f55c5e13654e57792274057a003159d8609a96fe SHA512 b8a776bd26e9d56055786faf155bbc6ee8b786e7042e566c6c5c18e7340ee604127baadaa337eb620e8253e7d5329504e1c5fa5ef76ae7e77834f52e6d0b30cb
DIST riscv32-esp-elf-14.2.0_20251107-x86_64-linux-gnu.tar.xz 306966476 BLAKE2B 233b3f080d5fdfebb86bdc0ec2a6d82110d01753ad0d19481eb66ce0f28f4bff7e6a10f66d77d38ab3d9ac5b2a0fd8e0595460af1662ba691cbf1ed6132ba8b0 SHA512 3053fbee064dabfb277aaa5fd6c713ca8b6a42ab042defa1b472be17fd714d098495a4c97800599599437177f73a07e9955b9b2aff926d3881aa3274c1dc41c6
DIST riscv32-esp-elf-15.2.0_20251204-x86_64-linux-gnu.tar.xz 393927372 BLAKE2B b4844981283489a18a7ae2c1453fce520a534ed2e6178a52c33ff06330eb2ac4f13c6d0449cd500aa459647d572e747ea455c73eb95efa1f371718afe7d1ef16 SHA512 b66569cffcaee5b23cab8ba19a711fc6dbbcbbda391e3dc71d5d2e26ae8991a2f333a2f00aecfddc76fe5062df20efc70e8c64c0927af5c817e96b7dd641b881
DIST riscv32-esp-elf-gdb-16.3_20250913-x86_64-linux-gnu.tar.gz 36557187 BLAKE2B 3a51c074b72fe5630d10faee8c2369ef3089107a866f31de40bf31da291dd1c14077bda79de350130853fa9dfbd85a519e33229014d06868364245815c723f4c SHA512 b813bbe14d602f39d663941f990c5e6e7e59cc5ee60949003ee818d47e4962028fe43f3d1eb1f52fba7176db0d7b2a5af5eb96b12857f4b6f88c4a102ed43597
DIST xtensa-esp-elf-13.2.0_20250707-x86_64-linux-gnu.tar.xz 113781196 BLAKE2B 40a3797f617560da46fcea2550472d2a7526d907a89cca7331e173f2e3f0d9f14d362977bdb420d46e0a5fd86dc180a42d8d337e89da660f20b40770795b60e0 SHA512 9a88680bd79b90ba97e6971a98675bab48cce92bb3887ffa4f6e8dc6dc26751e962386788ef68042ef8fffaeb0ebac7f6e6188294389d892a505092bace06bc2
DIST xtensa-esp-elf-14.2.0_20250730-x86_64-linux-gnu.tar.xz 175585776 BLAKE2B 16c4bb30f90f8a4f809eced340757062be822e8a69388081307379b3adf0b226ca383d0fe19837ba73314f01cc67c0086b0d6c868cbb6e7618c6457d7d2713bd SHA512 486b5c8ff01e5cea9a7543cb4865c906c8bfab21edd73003c67267f3b4d4fbbcb83eefb763b8097e370ece92d3606a31f36c9de9e6d88c21d004862d23653ad9
DIST xtensa-esp-elf-14.2.0_20251107-x86_64-linux-gnu.tar.xz 176948400 BLAKE2B ce2b5af652497688b929c99225eb794fcba3add967efa2b2803a1e43e4064b1fb5954698a8efb29ba0030a4d99be527b737abcb80c0c842fa5c83e138cf1e9e5 SHA512 8e345a4cd60a207523d167af7bc26328a65e5c339c0f05619262fa6a083892475efd125420ba9e66db681907c22d77f75f3b9f66c9a37febe202b019278874c0
DIST xtensa-esp-elf-15.2.0_20251204-x86_64-linux-gnu.tar.xz 180530004 BLAKE2B d5aa73b2445155aa9758c153a920e75766f0453cae4a70e0e81b3281049af8c82318e24fff26cf981a5fbf79848ec354427c8174662c3d4ebbebf5cf33923eef SHA512 1e30c757a92e100ca0a19fa7d5205d213c5bfc5329e8368d64aa38c24a738946fdda9d66d7c2d44c2acd12f8a06fd8db92eb77a914c066c4b44355aa819b7171
DIST xtensa-esp-elf-gdb-16.3_20250913-x86_64-linux-gnu.tar.gz 36396804 BLAKE2B 8271884d5aa3efa261165e24e440d69bb16c4a609f0c6a0b10ae67bd26c9567751e72f21fabcfdc3f89b6aa918950d8d9e05d8d0c005a6618bd582fd6f2808bf SHA512 436cf5fc116d62d712452eb3d687d0c69ab2df3ac6ffd53fd061698061b246f81dbe1ef881a4466597810eaa6da4b2f82f0e8a7980a51f48e948ee1e9b43748a

View File

@@ -0,0 +1,192 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# TODO: add esp-doc package in order to build documentation
# TODO: add examples USE
# TODO: fix to python-single which should help to fix python-gdb dep
EAPI=8
PYTHON_COMPAT=( python3_{12..13} )
PYTHON_GDB_USE=( python_targets_python3_{12..13} )
VER="15.2.0_20251204"
GDB_VER="16.3_20250913"
OPENOCD_VER="0.12.0-esp32-20251215"
CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
inherit estack optfeature python-r1
DESCRIPTION="Espressif IoT Development Framework"
HOMEPAGE="https://www.espressif.com/"
# See https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.4.txt for information about version dependencies
SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
https://github.com/espressif/openocd-esp32/releases/download/v${OPENOCD_VER}/openocd-esp32-linux-amd64-${OPENOCD_VER}.tar.gz
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
SRC_URI+=" riscv32? (
${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.tar.gz
)"
S="${WORKDIR}/${PN}-v${PV}"
LICENSE="Apache-2.0"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64"
IUSE="python-gdb riscv32"
REQUIRED_USE="
python-gdb? ( || ( ${PYTHON_GDB_USE[@]} ) )
${PYTHON_REQUIRED_USE}
"
BDEPEND="app-arch/unzip"
RDEPEND="
${PYTHON_DEPS}
dev-build/cmake
dev-libs/libusb:1
dev-python/click[${PYTHON_USEDEP}]
dev-python/pyserial[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pyparsing[${PYTHON_USEDEP}]
dev-python/pyelftools[${PYTHON_USEDEP}]
dev-embedded/esp-coredump[${PYTHON_USEDEP}]
dev-embedded/esptool
dev-embedded/esp-idf-diag[${PYTHON_USEDEP}]
<dev-embedded/esp-idf-kconfig-4.0.0[${PYTHON_USEDEP}]
<dev-embedded/esp-idf-monitor-2.0.0[${PYTHON_USEDEP}]
dev-embedded/esp-idf-nvs-partition-gen[${PYTHON_USEDEP}]
dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
<dev-embedded/esp-idf-size-3.0.0[${PYTHON_USEDEP}]
dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
virtual/zlib:=
"
RESTRICT="strip"
QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
PATCHES=(
"${FILESDIR}/allow-system-install-${PN}-5.3.patch"
"${FILESDIR}/${P}-build-fix.patch"
)
install_tool() {
eshopts_push -s globstar
into /opt/${1}
if [[ -d "../${1}/lib" ]]; then
if stat *.so &>/dev/null; then
for i in ../${1}/lib/**/*.so*; do
dolib.so ${i}
done
fi
if stat *.a &>/dev/null; then
for i in ../${1}/lib/**/*.a*; do
dolib.a ${i}
done
fi
insinto /opt/${1}/lib
doins -r ../${1}/lib/*
fi
exeinto /opt/${1}/bin
doexe ../${1}/bin/*
(
cd ../${1}
for i in libexec/**/*; do
exeinto /opt/${1}/$(dirname ${i})
if [[ -x "${i}" && ! -d "${i}" ]]; then
doexe ${i}
fi
done
if [[ -d "include" ]]; then
insinto /opt/${1}
doins -r include
fi
if [[ -d "share" ]]; then
insinto /opt/${1}
doins -r share
fi
)
(
cd "${D}"/opt/${1}/bin/ || die
for i in *; do
dodir /opt/bin
cd "${D}"/opt/bin || die
dosym ../${1}/bin/${i} /opt/bin/${i}
done
)
eshopts_pop
}
src_install() {
echo "v${PV}" > version.txt || die
newbin - idf <<-EOF
#!/bin/sh
# Silence a warning by idf.py
export IDF_PYTHON_ENV_PATH=
exec python /usr/share/${PN}/tools/idf.py \$@
EOF
install_tool xtensa-esp-elf
install_tool xtensa-esp-elf/xtensa-esp-elf
if use riscv32; then
install_tool riscv32-esp-elf
install_tool riscv32-esp-elf/riscv32-esp-elf
fi
install_tool openocd-esp32
# Remove unsupported python versions
rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
if use riscv32; then
rm "${WORKDIR}"/riscv32-esp-elf-gdb/bin/riscv32-esp-elf-gdb-3.{8..10} || die
fi
# Remove disabled python versions
for i in "${PYTHON_GDB_USE[@]}"; do
if ! has "${i}" "${PYTHON_COMPAT[@]}"; then
rm -f "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3."${i##*_}" || die
if use riscv32; then
rm -f "${WORKDIR}"/riscv32-esp-elf-gdb/bin/riscv32-esp-elf-gdb-3."${i##*_}" || die
fi
fi
done
install_tool xtensa-esp-elf-gdb
if use riscv32; then
install_tool riscv32-esp-elf-gdb
fi
newenvd - 99esp-idf <<-EOF
IDF_PATH=/usr/share/${PN}
ESP_ROM_ELF_DIR=/usr/share/${PN}/tools
OPENOCD_SCRIPTS=/opt/openocd-esp32/share/openocd/scripts
EOF
insinto /usr/share/${PN}
rm -r .git || die
find . -name ".git" -exec rm -rf {} \; || die
doins -r .
}
pkg_postinst() {
optfeature "gdbgui target" dev-debug/gdbgui
}

View File

@@ -0,0 +1,21 @@
See https://github.com/espressif/esp-idf/pull/18275
diff --git i/components/esp_eth/include/esp_eth_mac_esp.h w/components/esp_eth/include/esp_eth_mac_esp.h
index 53cdbff68d..dd4d479624 100644
--- i/components/esp_eth/include/esp_eth_mac_esp.h
+++ w/components/esp_eth/include/esp_eth_mac_esp.h
@@ -225,7 +225,6 @@ typedef bool (*ts_target_exceed_cb_from_isr_t)(esp_eth_mediator_t *eth, void *us
}, \
.dma_burst_len = ETH_DMA_BURST_LEN_32, \
.intr_priority = 0, \
- .mdc_freq_hz = 0, \
.emac_dataif_gpio = \
{ \
.rmii = \
@@ -246,6 +245,7 @@ typedef bool (*ts_target_exceed_cb_from_isr_t)(esp_eth_mediator_t *eth, void *us
.clock_gpio = -1 \
} \
}, \
+ .mdc_freq_hz = 0, \
}
#endif // CONFIG_IDF_TARGET_ESP32P4