15
0

Accepting request 1086123 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1086123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-esptool?expand=0&rev=9
This commit is contained in:
2023-05-11 10:33:42 +00:00
committed by Git OBS Bridge
4 changed files with 85 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c756e8bc31194fd77154deb90c8f677f6847ef7b84e764374607e1c2de0b51a7
size 7263375

3
esptool-4.5.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:759e0c9a5e69d21e13a5fcf53d46cb567cb3a8e4a6cefda334b6d3a3d540b5f4
size 6971407

View File

@@ -1,3 +1,71 @@
-------------------------------------------------------------------
Thu Apr 20 10:23:16 UTC 2023 - Torsten Gruner <simmphonie@opensuse.org>
- update to 4.5.1
* Bug Fixes
- ESP32-S3: Temporarily disabled increasing CPU frequency in the stub flasher (#832, #848, #842).
- Fixed error messages when esptool is used with an unknown chip.
- esp_rfc2217_server: Updated reset sequences.
- esp_rfc2217_server: Registered as a script (#846).
- pyinstaller: Fixed glibc dependency on gnu/linux (#843).
* Miscellaneous Changes
- Added target tests for ESP32-H2.
- Reduced size of test images.
- Added a custom host_test marker for the test suite to allow running tests without real hardware (#838).
- version 4.5
* New Features
- Configuration file: Added the option to configure internal variables
(such as timeouts and delays) and to implement a custom reset sequence (see the related documentation).
- Bootloader reset: Added a new reset strategy to make resetting into the
download mode more reliable on MacOS and Linux systems (#712).
- ESP32-S3: Added support for >32MB octal flash chips (#795, #745).
- ESP32-H2: Added full esptool and flasher stub support.
- ESP32-C6: Added full flasher stub support.
- flash_id: Print the flash memory chip type (quad vs. octal) if available (#730).
- elf2image: Added --pad-to-size <size> option to specify a size to which
the generated binary image must be aligned.
- write_flash: Added a security check to prevent bricking the device
when flash encryption is active.
- Optimized to reduce the number of steps when a chip is being interrogated.
* espsecure.py
- Added an external HSM signing interface.
- Added support for pre-calculated signatures.
- Added PKCS#8 identifier support (#819).
* Bug Fixes
- USB-Serial/JTAG: Fixed randomly failing transfers when writing/reading large binaries.
- ESP32-S3: Fixed crashing stub flasher when using in USB-Serial/JTAG mode (#808)
- ESP32: Recalculate the crystal clock to compensate for the chips baud rate setting
as a workaround to avoid ESP32 CK_8M frequency drift.
- ESP32-S3: Fixed v0.0 chip being detected as vX.8.
- StopIteration: Fixed several possible errors when stub flasher is being uploaded
and added better error messages for other cases (#824).
- Fixed chip autodetection and operations in the secure download mode on ESP32-S2 and S3 (#813).
- write_flash: Fixed the --erase-all option corrupting flash (#805).
- write_flash: Fixed security checks when min_rev and max_rev_full are specified in the image.
- Fixed compatibility with bitstring>=4 package.
- Fixed compatibility with reedsolo when using Python 3.10 and Cython (#711).
* espefuse.py
- The serial port now gets closed when espefuse fails (#803).
* Miscellaneous Changes
- Refactored to make adding new targets easier, reduce code repetition,
and comply with the Black 23.1 style.
- Added target tests for all of the newly supported chips.
- Updated the toolchains for stub flasher builds.
-version 4.4
* New Features
- flasher_stub: Increased read/write speeds over USB-JTAG/Serial or USB-OTG modes, making some operations nearly twice as fast.
- Added detection for guru meditation errors induced by the flasher stub or ROM bootloader.
- Added a readable error message for serial-related failures, giving more information about possible HW issues.
- espsecure.py: Improved AES-XTS encryption speed. (#783)
* Bug Fixes
- ESP32-S3 v0.0: Fixed chip revision detection.
- bitstring: Added a workaround for breaking changes of bitstring==4
- get_default_connected_device: Fixed to close unused serial ports.
- flash_freq: Fall back to a chip-specific default flash frequency when no flash_freq arg is specified.
- ESP32-C6: Fixed chip type detection and SPI flash communication.
-------------------------------------------------------------------
Sun Nov 6 11:27:28 UTC 2022 - Adrian Schröter <adrian@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-esptool
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,17 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-esptool
Version: 3.3.2
Version: 4.5.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 base >= 3.7}
BuildRequires: %{python_module bitstring >= 3.1.6}
BuildRequires: %{python_module ecdsa}
BuildRequires: %{python_module ecdsa >= 0.16.0}
BuildRequires: %{python_module pyaes}
BuildRequires: %{python_module pyelftools}
BuildRequires: %{python_module pyserial >= 3.0}
@@ -40,7 +39,7 @@ BuildRequires: %{python_module cryptography}
BuildRequires: fdupes
BuildRequires: openssl
BuildRequires: python-rpm-macros
Requires: python-ecdsa
Requires: python-ecdsa >= 0.16.0
Requires: python-pyaes
Requires: python-pyserial >= 3.0
Requires(post): update-alternatives
@@ -56,9 +55,6 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
%prep
%setup -q -n esptool-%{version}
sed -i '/^#!/d' flasher_stub/*.py
sed -i '/^#!/d' espressif/*.py
sed -i '/^#!/d' espressif/*/*.py
sed -i '/^#!/d' espressif/*/*/*.py
%build
%python_build
@@ -68,34 +64,36 @@ sed -i '/^#!/d' espressif/*/*/*.py
%python_clone -a %{buildroot}%{_bindir}/espefuse.py
%python_clone -a %{buildroot}%{_bindir}/espsecure.py
%python_clone -a %{buildroot}%{_bindir}/esptool.py
%python_expand sed -i '/^#!/d' %{buildroot}%{$python_sitelib}/*.py
%python_clone -a %{buildroot}%{_bindir}/esp_rfc2217_server.py
%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__/*.pyc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# there are more tests but upstream runs only those in .travis.yml
%pytest test/test_imagegen.py
# pytest test/test_espsecure.py
%pytest test/test_espsecure.py
%post
%python_install_alternative espefuse.py
%python_install_alternative espsecure.py
%python_install_alternative esptool.py
%python_install_alternative esp_rfc2217_server.py
%postun
%python_uninstall_alternative espefuse.py
%python_uninstall_alternative espsecure.py
%python_uninstall_alternative esptool.py
%python_uninstall_alternative esp_rfc2217_server.py
%files %{python_files}
%license LICENSE
%doc README.md
%{_bindir}/esptool.py-%{python_bin_suffix}
%{_bindir}/espsecure.py-%{python_bin_suffix}
%{_bindir}/espefuse.py-%{python_bin_suffix}
%python_alternative %{_bindir}/esptool.py
%python_alternative %{_bindir}/espsecure.py
%python_alternative %{_bindir}/espefuse.py
%{python_sitelib}/*
%python_alternative %{_bindir}/esp_rfc2217_server.py
%{python_sitelib}/esptool-%{version}-*egg-info
%{python_sitelib}/esptool
%{python_sitelib}/espsecure
%{python_sitelib}/espefuse
%changelog