diff options
| author | Martin Dummer <martin.dummer@gmx.net> | 2025-06-28 19:30:20 +0200 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-07-22 11:25:03 +0100 |
| commit | bb791efd864045d54d7b30ec1716d75a2ffa0429 (patch) | |
| tree | 43a522cab124754da76bd1e6053eec967a680719 | |
| parent | 66a49fc218a6478569db09e6ced535cc16d0ef79 (diff) | |
| download | gentoo-bb791efd864045d54d7b30ec1716d75a2ffa0429.tar.gz gentoo-bb791efd864045d54d7b30ec1716d75a2ffa0429.tar.bz2 gentoo-bb791efd864045d54d7b30ec1716d75a2ffa0429.zip | |
dev-embedded/esptool: add 4.9.0
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/42789
Closes: https://github.com/gentoo/gentoo/pull/42789
Signed-off-by: Sam James <sam@gentoo.org>
| -rw-r--r-- | dev-embedded/esptool/Manifest | 1 | ||||
| -rw-r--r-- | dev-embedded/esptool/esptool-4.9.0.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-embedded/esptool/Manifest b/dev-embedded/esptool/Manifest index 0ff01afbff48..c49603ec9b11 100644 --- a/dev-embedded/esptool/Manifest +++ b/dev-embedded/esptool/Manifest @@ -1 +1,2 @@ DIST esptool-4.8.1.tar.gz 6933695 BLAKE2B ffd8e6aa4c8460765b21c3542b9e953a4e0810e88e1771f02c80ed7145b20623d4b3922268680cc250c64422ab8b90920261af5ef56b9abc14b60b6a10cb6c59 SHA512 21fe654826a38ba40fe128eadde1ad92c22e5a011651ce0f8eb5806358c9f0b33f185fe760c1a3eee19cb59b894531ebea8213498841f0a1c0724048ec88d213 +DIST esptool-4.9.0.tar.gz 5944315 BLAKE2B 8ddb37c20c7337e2768f1175a981f23eaabc61ef7851b928ce20f172257b812c73b46ea4db3c46d688d230dd58772e5e43786c70b1e6a9ff9297b26a4ed10e7f SHA512 1d969a79ca43d63af6407f4b1544076943cc427766734781904285dfc304e67a5db09ec7de71e8b9e29734341bd8f1a8491f8f8a22325c5229df22da85497071 diff --git a/dev-embedded/esptool/esptool-4.9.0.ebuild b/dev-embedded/esptool/esptool-4.9.0.ebuild new file mode 100644 index 000000000000..351a50fa9365 --- /dev/null +++ b/dev-embedded/esptool/esptool-4.9.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 eapi9-ver + +DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32" +HOMEPAGE="https://github.com/espressif/esptool" +SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/bitstring[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + >=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}] + dev-python/intelhex[${PYTHON_USEDEP}] + dev-python/pyserial[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/reedsolo[${PYTHON_USEDEP}] + ') +" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/wheel[${PYTHON_USEDEP}] + ') + test? ( $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pyelftools[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ') ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # need real hardware connected + test/test_esptool.py + test/test_espefuse.py + test/test_esptool_sdm.py + # need network + test/test_uf2_ids.py +) + +src_prepare() { + default + + # test_espsecure_hsm.py needs setup of a "Soft HSM" or real hardware. remove. + rm test/test_espsecure_hsm.py || die +} + +pkg_postinst() { + if ver_replacing -lt 4; then + ewarn "${P} - new 4.x release with breaking changes:" + ewarn " - Public API has been defined by limiting access to internals that have been refactored into multiple source files" + ewarn " - If active security features are detected, the default behavior changes to prevent unintentional bricking" + ewarn " - Flash parameters in an image header can now be changed only when no SHA256 digest is appended" + ewarn " - The ESP8684 alias has been removed, ESP32-C2 has to be used" + ewarn " - Megabit flash sizes have been deprecated, use megabyte units from now on" + fi +} |
