mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-embedded/esptool: add 4.8.1
Signed-off-by: David Roman <droman@ifae.es> Closes: https://github.com/gentoo/gentoo/pull/40044 Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
committed by
Florian Schmaus
parent
eec0cbb322
commit
e9f881eec6
@@ -1,2 +1,3 @@
|
||||
DIST esptool-4.6.2.tar.gz 7003860 BLAKE2B 051689dbc2194e1ed08467f9ec82e3a48e31cf62c25b83f97e3b05a1d203c9dda120cbb11a40bb61efe076ae8449d0b9b4742b19d59efef205132f05d16130a5 SHA512 97cc9f4d92b479351089fac59aed08f9519ff76d994ddae601da8e39b988f4bb90dc3885bf30b7998e2575a0365a5f0eef85f16a28b12eb944eec1e9f5265c6c
|
||||
DIST esptool-4.7.0.tar.gz 7045501 BLAKE2B 468d83db541e632296e9b465d54764dc5e966f54709b66b0af2675d8fbd6d0bcd70fb18584887f3dc4d45bd0550b65a0da58d0c6bc318962b8798017b4ab0b63 SHA512 dda2af5d9b2f8a4ec5706eaf58021e95094c152380c732074809c370a5d1bfaeb424cb27f69a3b980dec83ae9c4c9ee1eddfeb0a7990c3b1f1494160a2d369cc
|
||||
DIST esptool-4.8.1.tar.gz 6933695 BLAKE2B ffd8e6aa4c8460765b21c3542b9e953a4e0810e88e1771f02c80ed7145b20623d4b3922268680cc250c64422ab8b90920261af5ef56b9abc14b60b6a10cb6c59 SHA512 21fe654826a38ba40fe128eadde1ad92c22e5a011651ce0f8eb5806358c9f0b33f185fe760c1a3eee19cb59b894531ebea8213498841f0a1c0724048ec88d213
|
||||
|
||||
69
dev-embedded/esptool/esptool-4.8.1.ebuild
Normal file
69
dev-embedded/esptool/esptool-4.8.1.ebuild
Normal file
@@ -0,0 +1,69 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
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/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_test ${REPLACING_VERSIONS} -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
|
||||
}
|
||||
Reference in New Issue
Block a user