diff --git a/python-spsdk-remove_pypemicro.patch b/python-spsdk-remove_pypemicro.patch deleted file mode 100644 index ab9d978..0000000 --- a/python-spsdk-remove_pypemicro.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 835e24b7cd0b3ba6a62f0abfbb094ad7ee3ab524 Mon Sep 17 00:00:00 2001 -From: Johannes Kastl -Date: Mon, 15 May 2023 13:27:29 +0200 -Subject: [PATCH] remove pypemicro - -based on -https://github.com/archlinux/svntogit-community/blob/19938f5cab9adf93da26c09ebeb8111ed1bdc59b/trunk/python-spsdk-1.6.0-remove_pypemicro.patch - -Signed-off-by: Johannes Kastl ---- - spsdk/debuggers/__init__.py | 1 - - spsdk/debuggers/utils.py | 2 -- - 2 files changed, 3 deletions(-) - -diff --git a/spsdk/debuggers/__init__.py b/spsdk/debuggers/__init__.py -index adefa19..52afffd 100644 ---- a/spsdk/debuggers/__init__.py -+++ b/spsdk/debuggers/__init__.py -@@ -9,5 +9,4 @@ - - from .debug_probe import DebugProbe - from .debug_probe_jlink import DebugProbePyLink --from .debug_probe_pemicro import DebugProbePemicro - from .debug_probe_pyocd import DebugProbePyOCD -diff --git a/spsdk/debuggers/utils.py b/spsdk/debuggers/utils.py -index c6ba667..ba22335 100644 ---- a/spsdk/debuggers/utils.py -+++ b/spsdk/debuggers/utils.py -@@ -16,7 +16,6 @@ import prettytable - from spsdk import SPSDKError - from spsdk.debuggers.debug_probe import DebugProbe, SPSDKDebugProbeError, SPSDKProbeNotFoundError - from spsdk.debuggers.debug_probe_jlink import DebugProbePyLink --from spsdk.debuggers.debug_probe_pemicro import DebugProbePemicro - - # Import all supported debug probe classes - from spsdk.debuggers.debug_probe_pyocd import DebugProbePyOCD -@@ -24,7 +23,6 @@ from spsdk.debuggers.debug_probe_pyocd import DebugProbePyOCD - PROBES: Dict[str, Type[DebugProbe]] = { - "pyocd": DebugProbePyOCD, - "jlink": DebugProbePyLink, -- "pemicro": DebugProbePemicro, - } - - logger = logging.getLogger(__name__) --- -2.40.1 - diff --git a/python-spsdk.changes b/python-spsdk.changes index c475813..fc74ca1 100644 --- a/python-spsdk.changes +++ b/python-spsdk.changes @@ -1,3 +1,75 @@ +------------------------------------------------------------------- +Sun Jan 14 12:10:58 UTC 2024 - Dirk Müller + +- update to 2.0.1: + * fix test memory AP address + * Fix detection of input file for FCB in bootable image + * fix IEE encryption for RT1180 + * fix signed MBI for Anguilla Nano + * fix SB21 export with yaml config + * fix behavior of the RKTH registers + * fix invalid names of CRC field in database + * fix setting a register value as raw value when loading from + configuration +- update to 2.0.0: + * dedicated plugin system + * check of written data length in USB Interface + * remove dependency on PyCryptodome + * add rot command for calculating RoT hash + * distinguish between fw version and image version + * support YAML configuration for HAB + * support build RT11xx image with ECC keys + * support OSCCA + * support AHAB NAND + * implement HTTP Proxy Signature Provider + * signature provider for OSCCA + * add validation of signature in AHAB + * support OTFAD for RT1010 + * export HAB from yaml config in bootable image + * revision of offsets in AHAB container + * command filter in SB 2.1 based on family + * refactor memory types for mbi + * add to AHAB key identifier for encrypted images + * pfr/ifr: + * remove devices subcommand + * sdpshost: + * connection support for iMX91 and iMX95 + * shadowregs: + * unify endianness + * tool for converting JSON configuration into YAML with + comments + * support mcxa1xx + * unify naming: RKTH/RKHT + * remove nxpkeygen and nxpcertgen apps, replaced by nxpcrypto + * remove elftosb app, replaced by nxpcrypto + * positional arguments replaced by options for all parameters + with an exception to blhost, sdphost and dk6prog + * remove backward compatibility with command get-cfg-template, + replaced fully with get-template(s) + * unify family name within all modules + * remove lpc55xx from family names + * fix error of SPI connection + * add missing sdio in generate command + * fix generate-keyblob IEE + * fix issue with get-info command + * fix certificate block in AHAB + * fix signature in AHAB + * fix some commands for SB21 + * fix non generated keys for AHAB parse + * fix RAM images for LPC55Sxx + * fix MBI signed for xip for MCXN9xx + * fix sb21 export yaml errors + * fix OTFAD with DUK + * fix wrong core ID in parse for iMX93 + * fix binary certificate block for MBI + * fix manifest for mcxn9xx + * fix bootable image merge + * fix in MBI configurations + * fix missing parameters in MBI config in bootable-image parse + * fix sb21 file generation without SBKEK + * update list of supported MBI images for mcxn9xx +- drop python-spsdk-remove_pypemicro.patch (obsolete) + ------------------------------------------------------------------- Mon Oct 30 07:42:32 UTC 2023 - Johannes Kastl diff --git a/python-spsdk.spec b/python-spsdk.spec index 0322c5a..27dc9dc 100644 --- a/python-spsdk.spec +++ b/python-spsdk.spec @@ -1,7 +1,7 @@ # # spec file for package python-spsdk # -# 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 @@ -18,16 +18,12 @@ %{?sle15_python_module_pythons} Name: python-spsdk -Version: 1.11.0 +Version: 2.0.1 Release: 0 Summary: Unified, reliable and easy to use SW library working across NXP MCU portfolio License: BSD-3-Clause URL: https://github.com/nxp-mcuxpresso/spsdk Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{version}.tar.gz -# -# https://github.com/archlinux/svntogit-community/blob/19938f5cab9adf93da26c09ebeb8111ed1bdc59b/trunk/python-spsdk-1.6.0-remove_pypemicro.patch -# -Patch0: python-spsdk-remove_pypemicro.patch BuildRequires: %{python_module flit} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} @@ -73,9 +69,6 @@ Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library %prep %setup -q -n spsdk-%{version} -dos2unix spsdk/debuggers/__init__.py spsdk/debuggers/utils.py -%patch0 -p1 -unix2dos spsdk/debuggers/__init__.py spsdk/debuggers/utils.py %build %pyproject_wheel @@ -84,15 +77,13 @@ find . -type f -name README.md -exec dos2unix {} + %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/blhost -%python_clone -a %{buildroot}%{_bindir}/elftosb %python_clone -a %{buildroot}%{_bindir}/ifr -%python_clone -a %{buildroot}%{_bindir}/nxpcertgen %python_clone -a %{buildroot}%{_bindir}/nxpcrypto %python_clone -a %{buildroot}%{_bindir}/nxpdebugmbox %python_clone -a %{buildroot}%{_bindir}/nxpdevhsm %python_clone -a %{buildroot}%{_bindir}/nxpdevscan +%python_clone -a %{buildroot}%{_bindir}/nxpele %python_clone -a %{buildroot}%{_bindir}/nxpimage -%python_clone -a %{buildroot}%{_bindir}/nxpkeygen %python_clone -a %{buildroot}%{_bindir}/pfr %python_clone -a %{buildroot}%{_bindir}/sdphost %python_clone -a %{buildroot}%{_bindir}/sdpshost @@ -110,10 +101,10 @@ find . -type f -name README.md -exec dos2unix {} + %python_expand rm -vf %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.c %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.bin %post -%python_install_alternative blhost elftosb ifr nxpcertgen nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpimage nxpkeygen pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog +%python_install_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog %postun -%python_uninstall_alternative blhost elftosb ifr nxpcertgen nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpimage nxpkeygen pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog +%python_uninstall_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog %files %{python_files} %doc README.md @@ -121,15 +112,13 @@ find . -type f -name README.md -exec dos2unix {} + %{python_sitelib}/spsdk/ %{python_sitelib}/spsdk-%{version}.dist-info/ %python_alternative %{_bindir}/blhost -%python_alternative %{_bindir}/elftosb %python_alternative %{_bindir}/ifr -%python_alternative %{_bindir}/nxpcertgen %python_alternative %{_bindir}/nxpcrypto %python_alternative %{_bindir}/nxpdebugmbox %python_alternative %{_bindir}/nxpdevhsm %python_alternative %{_bindir}/nxpdevscan +%python_alternative %{_bindir}/nxpele %python_alternative %{_bindir}/nxpimage -%python_alternative %{_bindir}/nxpkeygen %python_alternative %{_bindir}/pfr %python_alternative %{_bindir}/sdphost %python_alternative %{_bindir}/sdpshost diff --git a/spsdk-1.11.0.tar.gz b/spsdk-1.11.0.tar.gz deleted file mode 100644 index 3fef4c2..0000000 --- a/spsdk-1.11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03d8821ad05a0149a107b9ddfc01371f6894d02ada36e1065b0efd9301526854 -size 686945 diff --git a/spsdk-2.0.1.tar.gz b/spsdk-2.0.1.tar.gz new file mode 100644 index 0000000..c535cea --- /dev/null +++ b/spsdk-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5829b637e931772565f8d13cdf1f53343805d6fe7dd8f99d525d796f58d8f7cb +size 779424