From 825a1bfd39b299885dc49f193f6cc6c368214587161f1851d8a328c8e022f72d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 4 Jul 2024 23:13:40 +0000 Subject: [PATCH 1/2] Accepting request 1185436 from home:adrianSuSE:branches:devel:languages:python - update to 4.7.0: New Features * spi_connection: Support --spi-connection on all chips, allowing connection of an external flash * esp32-s3: Support >16MB quad flash chips * bin_images: add support for intel hex format images * merge_bin: add support for uf2 format * esptool: added esp32p4 target * esp32p4: Stub flasher support * espefuse: Support XTS_AES_256_KEY key_purpose for ESP32P4 * xip_psram: support xip psram feature on esp32p4 * elf2image: add ram-only-header argument * rfc2217_server: Add hard reset sequence * espefuse: Adds efuse ADC calibration data for ESP32H2 * espefuse: Update the way to complete the operation * add support for get_security_info on esp32c3 ECO7 * loader: Added hints for some serial port issues when rising port error * Add support for Python 3.12 * esp32c3: Support ECO6 and ECO7 magic numbers * efuse: Update key purpose table and tests * efuse: ESP32P4 adds ecdsa_key support * espefuse: Add support for esp32p4 chip * espsecure: Allow prompting for HSM PIN in read_hsm_config * esptool: Add new packages for ESP32C3 and flash efuses * esptool: Add tests for get_chip_features * esptool: Add PICO package for ESP32S3 and flash/psram efuses * get_security_info: Improved the output format and added more details Bug Fixes * flasher_stub: fix usb-serial-jtag enabled non-related intr source, improved stability * esp32c2: Added get_flash_cap and get_flash_vendor * testloadram: Windows assertion error OBS-URL: https://build.opensuse.org/request/show/1185436 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=24 --- esptool-4.6.2.tar.gz | 3 --- esptool-4.7.0.tar.gz | 3 +++ python-esptool.changes | 49 ++++++++++++++++++++++++++++++++++++++++++ python-esptool.spec | 14 +++++++----- 4 files changed, 61 insertions(+), 8 deletions(-) delete mode 100644 esptool-4.6.2.tar.gz create mode 100644 esptool-4.7.0.tar.gz diff --git a/esptool-4.6.2.tar.gz b/esptool-4.6.2.tar.gz deleted file mode 100644 index 0baab81..0000000 --- a/esptool-4.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8805a91410abe4aad4078c06eb71b9ee918044f2729e6a186d72ff7458a9d10 -size 7003860 diff --git a/esptool-4.7.0.tar.gz b/esptool-4.7.0.tar.gz new file mode 100644 index 0000000..e862199 --- /dev/null +++ b/esptool-4.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da68c175e4ae3fd9d87469b7ef1b8429cd84a8f8a2d22c96273640d329e68c1d +size 7045501 diff --git a/python-esptool.changes b/python-esptool.changes index a2e07cf..126893e 100644 --- a/python-esptool.changes +++ b/python-esptool.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Thu Jul 4 18:22:41 UTC 2024 - Adrian Schröter + +- update to 4.7.0: + New Features + * spi_connection: Support --spi-connection on all chips, allowing connection of an external flash + * esp32-s3: Support >16MB quad flash chips + * bin_images: add support for intel hex format images + * merge_bin: add support for uf2 format + * esptool: added esp32p4 target + * esp32p4: Stub flasher support + * espefuse: Support XTS_AES_256_KEY key_purpose for ESP32P4 + * xip_psram: support xip psram feature on esp32p4 + * elf2image: add ram-only-header argument + * rfc2217_server: Add hard reset sequence + * espefuse: Adds efuse ADC calibration data for ESP32H2 + * espefuse: Update the way to complete the operation + * add support for get_security_info on esp32c3 ECO7 + * loader: Added hints for some serial port issues when rising port error + * Add support for Python 3.12 + * esp32c3: Support ECO6 and ECO7 magic numbers + * efuse: Update key purpose table and tests + * efuse: ESP32P4 adds ecdsa_key support + * espefuse: Add support for esp32p4 chip + * espsecure: Allow prompting for HSM PIN in read_hsm_config + * esptool: Add new packages for ESP32C3 and flash efuses + * esptool: Add tests for get_chip_features + * esptool: Add PICO package for ESP32S3 and flash/psram efuses + * get_security_info: Improved the output format and added more details + Bug Fixes + * flasher_stub: fix usb-serial-jtag enabled non-related intr source, improved stability + * esp32c2: Added get_flash_cap and get_flash_vendor + * testloadram: Windows assertion error + * fixed exit() to be used from the correct module + * esp32c2: Recommend using higher baud rate if connection fails + * test_esptool: Fixed connection issues on Windows + * esptool: Rephrase the --ram-only-header command message + * load_ram: check for overlaps in bss section + * tests/intelhex: make sure file is closed on Windows + * spi_connection: Unattach previously attached SPI flash + * espefuse: Fix ECDSA_FORCE_USE_HARDWARE_K for ECDSA key (esp32h2) + * loader: Could not open serial port message adjusted + * bin_image: Check only ELF sections when searching for .flash.appdesc + * Fix redirection of STDOUT + * autodetection: Remove the ESP32-S2 ROM class from get_security_info autodetection + * elf2image: fix text/rodata mapping overlap issue on uni-idrom bus chips + * expand file args: Correctly print the expanded command + * esp32-c2: Enable flashing in secure download mode + ------------------------------------------------------------------- Tue Jun 20 16:13:33 UTC 2023 - Dirk Müller diff --git a/python-esptool.spec b/python-esptool.spec index f0edc42..5bf22ce 100644 --- a/python-esptool.spec +++ b/python-esptool.spec @@ -1,7 +1,7 @@ # # spec file for package python-esptool # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-esptool -Version: 4.6.2 +Version: 4.7.0 Release: 0 Summary: A serial utility to communicate & flash code to Espressif ESP8266 & ESP32 chips License: GPL-2.0-or-later @@ -27,7 +27,7 @@ Source: https://github.com/espressif/esptool/archive/v%{version}.tar.gz# BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module bitstring >= 3.1.6} BuildRequires: %{python_module ecdsa >= 0.16.0} -BuildRequires: %{python_module pyaes} +BuildRequires: %{python_module intelhex} BuildRequires: %{python_module pyelftools} BuildRequires: %{python_module pyserial >= 3.0} BuildRequires: %{python_module pytest} @@ -39,11 +39,15 @@ BuildRequires: %{python_module cryptography} BuildRequires: fdupes BuildRequires: openssl BuildRequires: python-rpm-macros +Requires: python-PyYAML >= 5.1 +Requires: python-bitstring >= 3.1.6 +Requires: python-cryptography >= 2.1.4 Requires: python-ecdsa >= 0.16.0 -Requires: python-pyaes +Requires: python-intelhex Requires: python-pyserial >= 3.0 +Requires: python-reedsolo >= 1.5.3 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages From eb13a8027550f391d28a315360baf51adecb2ad9ab901bebc3d0db2c5ed85ebf Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 4 Jul 2024 23:25:18 +0000 Subject: [PATCH 2/2] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=25 --- python-esptool.changes | 5 +++++ python-esptool.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-esptool.changes b/python-esptool.changes index 126893e..4745fcd 100644 --- a/python-esptool.changes +++ b/python-esptool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 4 23:25:10 UTC 2024 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Thu Jul 4 18:22:41 UTC 2024 - Adrian Schröter diff --git a/python-esptool.spec b/python-esptool.spec index 5bf22ce..8bb8740 100644 --- a/python-esptool.spec +++ b/python-esptool.spec @@ -33,9 +33,6 @@ BuildRequires: %{python_module pyserial >= 3.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module reedsolo >= 1.5.3} BuildRequires: %{python_module setuptools} -%if 0%{?python_version_nodots} < 37 -BuildRequires: %{python_module cryptography} -%endif BuildRequires: fdupes BuildRequires: openssl BuildRequires: python-rpm-macros @@ -49,6 +46,9 @@ Requires: python-reedsolo >= 1.5.3 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch +%if 0%{?python_version_nodots} < 37 +BuildRequires: %{python_module cryptography} +%endif %python_subpackages %description @@ -70,6 +70,7 @@ sed -i '/^#!/d' flasher_stub/*.py %python_clone -a %{buildroot}%{_bindir}/esptool.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