SHA256
1
0
forked from pool/python-spsdk

Accepting request 1161715 from devel:languages:python

- Add python-spsdk-remove_pypemicro.patch to remove dependency on
  python-pypemcro and pyocd-pemicro.

- Update to 2.1.0:
  * add signing commands (create, verify)
  * add subcommands for Fault Analysis Mode (export, parse, get-templates)
  * add printing the result of auth command
  * add dedicated plugin system
  * U-BOOT interface
  * add commit command
  * add commands related to release-container
  * enable IEE encryption for RT1180
  * add key exchange signed message
  * add signature provider for RT1xxx
  * support mcxn23x
  * deployment of new database
  * EL2GO mockup for S32K WPC
  * introduce memory configuration tool
  * fix get-trng state command
  * fix cmpa template
  * fix parsing ahab image for i.MX95
  * fix xmcd export command
  * fix certificate block as binary file
  * fix sb21 get-template command
  * fix export command
  * fix pfr generate command
  * fix default family parameter

OBS-URL: https://build.opensuse.org/request/show/1161715
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spsdk?expand=0&rev=4
This commit is contained in:
2024-03-26 18:25:50 +00:00
committed by Git OBS Bridge
5 changed files with 84 additions and 15 deletions

View File

@@ -0,0 +1,27 @@
From 835e24b7cd0b3ba6a62f0abfbb094ad7ee3ab524 Mon Sep 17 00:00:00 2001
From: Johannes Kastl <kastl@b1-systems.de>
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 <kastl@b1-systems.de>
---
spsdk/debuggers/__init__.py | 1 -
spsdk/debuggers/utils.py | 2 --
2 files changed, 3 deletions(-)
Index: spsdk-2.1.0/spsdk/debuggers/__init__.py
===================================================================
--- spsdk-2.1.0.orig/spsdk/debuggers/__init__.py
+++ spsdk-2.1.0/spsdk/debuggers/__init__.py
@@ -8,7 +8,6 @@
"""Wrappers for various types of debuggers."""
from .debug_probe_jlink import DebugProbePyLink
-from .debug_probe_pemicro import DebugProbePemicro
from .debug_probe_pyocd import DebugProbePyOCD
-__all__ = ["DebugProbePyLink", "DebugProbePemicro", "DebugProbePyOCD"]
+__all__ = ["DebugProbePyLink", "DebugProbePyOCD"]

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Tue Mar 26 11:33:45 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Add python-spsdk-remove_pypemicro.patch to remove dependency on
python-pypemcro and pyocd-pemicro.
-------------------------------------------------------------------
Mon Mar 25 12:34:46 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 2.1.0:
* add signing commands (create, verify)
* add subcommands for Fault Analysis Mode (export, parse, get-templates)
* add printing the result of auth command
* add dedicated plugin system
* U-BOOT interface
* add commit command
* add commands related to release-container
* enable IEE encryption for RT1180
* add key exchange signed message
* add signature provider for RT1xxx
* support mcxn23x
* deployment of new database
* EL2GO mockup for S32K WPC
* introduce memory configuration tool
* fix get-trng state command
* fix cmpa template
* fix parsing ahab image for i.MX95
* fix xmcd export command
* fix certificate block as binary file
* fix sb21 get-template command
* fix export command
* fix pfr generate command
* fix default family parameter
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 14 12:10:58 UTC 2024 - Dirk Müller <dmueller@suse.com> Sun Jan 14 12:10:58 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -18,12 +18,14 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-spsdk Name: python-spsdk
Version: 2.0.1 Version: 2.1.0
Release: 0 Release: 0
Summary: Unified, reliable and easy to use SW library working across NXP MCU portfolio Summary: Unified, reliable and easy to use SW library working across NXP MCU portfolio
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/nxp-mcuxpresso/spsdk URL: https://github.com/nxp-mcuxpresso/spsdk
Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{version}.tar.gz
# PATCH-FIX-OPENSUSE python-spsdk-remove_pypemicro.patch
Patch0: python-spsdk-remove_pypemicro.patch
BuildRequires: %{python_module flit} BuildRequires: %{python_module flit}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@@ -39,36 +41,36 @@ Requires: python-click
Requires: python-click-command-tree Requires: python-click-command-tree
Requires: python-click-option-group Requires: python-click-option-group
Requires: python-colorama Requires: python-colorama
Requires: python-commentjson
Requires: python-crcmod Requires: python-crcmod
Requires: python-cryptography Requires: python-cryptography
Requires: python-deepmerge Requires: python-deepmerge
Requires: python-fastjsonschema Requires: python-fastjsonschema
Requires: python-hexdump Requires: python-hexdump
Requires: python-jinja2
Requires: python-libusbsio Requires: python-libusbsio
Requires: python-oscrypto Requires: python-oscrypto
Requires: python-pycryptodome Requires: python-platformdirs
Requires: python-prettytable
Requires: python-pylink-square Requires: python-pylink-square
Requires: python-pyocd Requires: python-pyocd
# disable dependency
# Requires: python-pyocd-pemicro
# dependency no longer required due to Patch0
# Requires: python-pypemicro
Requires: python-pyserial Requires: python-pyserial
Requires: python-requests
Requires: python-ruamel.yaml Requires: python-ruamel.yaml
Requires: python-sly Requires: python-sly
Requires: python-typing-extensions Requires: python-typing-extensions
# Removed dependencies
# Requires: python-pyocd-pemicro
# dependency no longer required due to Patch0
# Requires: python-pypemicro
BuildArch: noarch BuildArch: noarch
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
%python_subpackages %python_subpackages
%description %description
Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library working across NXP MCU portfolio providing strong foundation from quick customer prototyping up to production deployment. Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library working across NXP MCU portfolio providing strong foundation from quick customer prototyping up to production deployment.
%prep %prep
%setup -q -n spsdk-%{version} %autosetup -p1 -n spsdk-%{version}
%build %build
%pyproject_wheel %pyproject_wheel
@@ -92,19 +94,23 @@ find . -type f -name README.md -exec dos2unix {} +
%python_clone -a %{buildroot}%{_bindir}/tpconfig %python_clone -a %{buildroot}%{_bindir}/tpconfig
%python_clone -a %{buildroot}%{_bindir}/tphost %python_clone -a %{buildroot}%{_bindir}/tphost
%python_clone -a %{buildroot}%{_bindir}/dk6prog %python_clone -a %{buildroot}%{_bindir}/dk6prog
%python_clone -a %{buildroot}%{_bindir}/nxpmemcfg
%python_clone -a %{buildroot}%{_bindir}/nxpwpc
# fix line endings # fix line endings
%python_expand find %{buildroot}%{$python_sitelib} -type f -exec dos2unix {} + %python_expand find %{buildroot}%{$python_sitelib} -type f -exec dos2unix {} +
# remove shebangs # remove shebangs
%python_expand find %{buildroot}%{$python_sitelib} -iname "*.py" -exec sed -i '1{/env python/d;}' {} + %python_expand find %{buildroot}%{$python_sitelib} -iname "*.py" -exec sed -i '1{/env python/d;}' {} +
# compile all here to avoid python-bytecode-inconsistent-mtime
%python_compileall
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# remove unneccesary *.c and *.bin files # remove unneccesary *.c and *.bin files
%python_expand rm -vf %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.c %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.bin %python_expand rm -vf %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.c %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.bin
%post %post
%python_install_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage 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 nxpmemcfg nxpwpc
%postun %postun
%python_uninstall_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage 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 nxpmemcfg nxpwpc
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
@@ -127,5 +133,7 @@ find . -type f -name README.md -exec dos2unix {} +
%python_alternative %{_bindir}/tpconfig %python_alternative %{_bindir}/tpconfig
%python_alternative %{_bindir}/tphost %python_alternative %{_bindir}/tphost
%python_alternative %{_bindir}/dk6prog %python_alternative %{_bindir}/dk6prog
%python_alternative %{_bindir}/nxpmemcfg
%python_alternative %{_bindir}/nxpwpc
%changelog %changelog

View File

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

3
spsdk-2.1.0.tar.gz Normal file
View File

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