15
0

- update to 4.8.1:

* Add esp32c2 eco4 rom magic value
  * Correctly exclude the unwanted sub/modules
  * Supports wafer efuse versions for esp32c61
  * add new command SFDP read
  * Add option to retry connection in a loop
  * Updates efuse table for esp32c5
  * Updates efuse table for esp32p4
  * Added stub flasher support
  * add autocompletions
  * allow picking UART by VID/PID/Name
  * Add USB-serial/JTAG stub support
  * Add UART stub support
  * Print key_purpose name for get_security_info cmd
  * Adds support extend efuse table by user CSV
    file* separated(default) and united(new)
  * Adds incompatible eFuse settings check for S3
  * Apply reconnections to the whole reset sequence,
    not line transitions
  * Automatically reconnect if port disconnects during reset
  * Add ECO1 magic number
  * Add support for secure boot v2 using
    ECDSA-P384 signatures
  * retry flashing if chip disconnects
  * Allow filtering efuses based on command line arguments
  * Enable context manager for esp instances
  * Added check for correctness of written data
  * Improves help for burn_efuse cmd
  * clear boot control register on hard reset
  * add spi-connection restriction to ROM class

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=28
This commit is contained in:
2024-11-30 09:43:18 +00:00
committed by Git OBS Bridge
parent 31dff4e4e0
commit 9aad804fd0
4 changed files with 72 additions and 9 deletions

View File

@@ -18,22 +18,26 @@
%{?sle15_python_module_pythons}
Name: python-esptool
Version: 4.7.0
Version: 4.8.1
Release: 0
Summary: A serial utility to communicate & flash code to Espressif ESP8266 & ESP32 chips
License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/espressif/esptool
Source: https://github.com/espressif/esptool/archive/v%{version}.tar.gz#/esptool-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module bitstring >= 3.1.6}
BuildRequires: %{python_module ecdsa >= 0.16.0}
BuildRequires: %{python_module intelhex}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyelftools}
BuildRequires: %{python_module pyserial >= 3.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module reedsolo >= 1.5.3}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: openssl
BuildRequires: python-rpm-macros
@@ -59,13 +63,12 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
%prep
%setup -q -n esptool-%{version}
sed -i '/^#!/d' flasher_stub/*.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/espefuse.py
%python_clone -a %{buildroot}%{_bindir}/espsecure.py
%python_clone -a %{buildroot}%{_bindir}/esptool.py
@@ -76,7 +79,9 @@ sed -i '/^#!/d' flasher_stub/*.py
%check
# there are more tests but upstream runs only those in .travis.yml
%pytest test/test_imagegen.py
%pytest test/test_espsecure.py
# requires python-pkcs11 which isn't packaged
rm -v test/test_espsecure.py test/test_espsecure_hsm.py
%pytest -m host_test
%post
%python_install_alternative espefuse.py
@@ -97,8 +102,9 @@ sed -i '/^#!/d' flasher_stub/*.py
%python_alternative %{_bindir}/espsecure.py
%python_alternative %{_bindir}/espefuse.py
%python_alternative %{_bindir}/esp_rfc2217_server.py
%{python_sitelib}/esptool-%{version}-*egg-info
%{python_sitelib}/esptool-%{version}.dist-info
%{python_sitelib}/esptool
%{python_sitelib}/esp_rfc2217_server
%{python_sitelib}/espsecure
%{python_sitelib}/espefuse