14
0
forked from pool/python-spsdk

- 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:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=6
This commit is contained in:
2024-01-14 15:08:03 +00:00
committed by Git OBS Bridge
parent 391cac8186
commit 48428cce19
5 changed files with 81 additions and 67 deletions

View File

@@ -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