14
0
forked from pool/python-spsdk

Compare commits

9 Commits

Author SHA256 Message Date
6b7aef3c06 Accepting request 1286290 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spsdk?expand=0&rev=7
2025-06-17 16:23:23 +00:00
25106cfdae OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=16 2025-06-17 08:05:53 +00:00
c3521d2d3d - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=15
2025-06-17 08:04:27 +00:00
19b0f5c414 Accepting request 1188498 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1188498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spsdk?expand=0&rev=6
2024-07-19 13:29:21 +00:00
f9b2f593f3 Require importlib_metadata
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=13
2024-07-18 22:43:57 +00:00
8016a7be1d Accepting request 1164107 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1164107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spsdk?expand=0&rev=5
2024-04-02 14:44:12 +00:00
c3248329ac 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
2024-03-26 18:25:50 +00:00
d69f71f911 Accepting request 1138582 from devel:languages:python
- 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/request/show/1138582
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spsdk?expand=0&rev=3
2024-01-15 21:17:25 +00:00
21735a776c Accepting request 1121151 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1121151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spsdk?expand=0&rev=2
2023-10-30 21:11:07 +00:00
5 changed files with 43 additions and 130 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,105 +1,3 @@
-------------------------------------------------------------------
Tue Jul 15 11:50:53 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.0.1
* nxpcrypto:
- improve serial number validation in certificate generation
* nxpimage:
- fix AHAB container header info display
- fix MBI parameter for mcxa series
- add input data size validation for HAB segments
- add hardware key mixin to NHS52S04 MBI types
- add load address mixin to every MBI type
- improve CA Flag description in AHAB schemas
- fix AHAB update keyblob
- add new Fast Boot flags to AHABContainerV2
* nxpmemcfg:
- add missing memory types (MicronOPI_SDR, AdestoOPI_SDR)
* update default BOOT_FLAGS value in MC56F81x68 BCA configuration
* validate and clean up the contents of SPSDK data files
-------------------------------------------------------------------
Mon Jun 23 14:28:03 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0
- Update to 3.0.0
* New features:
- el2go-host:
- check UUID fuse index
- ifr:
- move into pfr application
- nxpcrypto:
- allow adding image key into existing PKI tree
- remove nxpcertgen application (all functionality is now available in nxpcrypto application)
- consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer
- nxpdebugmbox:
- move commands to separated groups with clearer organization
- move parameter --family from the root command to individual command groups
- derive test address from the family parameter
- nxpdevhsm:
- require oemRandomShare when oemEncMasterShare is defined
- add new format for sbfile for mcxa family devices with secure installer/extended bootloader
- nxpimage:
- generate fuse script when merging signed image
- add unicode characters for better BinaryImage visualization
- remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory'
- remove input_binary and base_address parameters from bee
- rename merge commands in bootable-image and binary-image to export
- remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId'
- replace hab export /parse commands with unified configuration approach
- implement SB3.1 data compression
- add parser of SB3.1
- consolidate all keys for data of SB3.1 load command into one
- simplify load command configuration
- simplify input data values
- pfr:
- remove option --show-calc from parse/read commands
- remove option --calc-inverse from generte binary command
- rename generate-binary command to export
- rename parse-binary command to parse
- require 'family' in BD file for SB2.1 and optionally 'revision' in the 'options' block
- tphost/tpconfig:
- remove applications
- remove family option from main top command to individual subcommands
- remove '--plugin' as optional parameter
- rename merge commands to export
- improve displaying of --help
- all applications that support the --config option now also support the -oc/--override-config option
* Bugfixes
- blhost:
- fix receive-sb-file command failures with usb
- el2go-host:
- fix family parameter issue
- nxpdebugmbox:
- fix famode-image get-templates command
- resolve debug authentication issues
- fix general error handling
- nxpdevhsm:
- fix config file issues
- nxpele:
- fix get-info error
- nxpfuses:
- fix get-config errors
- nxpimage:
- fix HAB and BIMG issues
- fix ahab export assertion error
- fix RT118x build IEE image failure
- fix parsing of imx943 bootable image
- fix issues with receiving sb31
- fix convertion binary from S19
- fix parsing of FCB for RT7xx
- remove unnecessary enableTrustZone parameter in MBI config files
- fix overlapping detection and adjust-offsets functionality in binary-image merge
- nxpmemcfg:
- fix deprecation warning
- nxpwpc:
- fix missing family parameter for service parameters
- fix api key existence
- shadowregs:
- fix general error
- fix invalid -oc option behavior
-------------------------------------------------------------------
Tue Jun 17 08:03:02 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -19,15 +19,16 @@
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-spsdk
Version: 3.0.1
Version: 2.1.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
# PATCH-FIX-OPENSUSE python-spsdk-remove_pypemicro.patch
Patch0: python-spsdk-remove_pypemicro.patch
BuildRequires: %{python_module flit}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
@@ -36,6 +37,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-asn1crypto
Requires: python-astunparse
Requires: python-bincopy
Requires: python-bitstring
Requires: python-click
@@ -46,27 +48,19 @@ Requires: python-crcmod
Requires: python-cryptography
Requires: python-deepmerge
Requires: python-fastjsonschema
Requires: python-filelock
Requires: python-hexdump
Requires: python-importlib-metadata
Requires: python-importlib_metadata
Requires: python-libusbsio
Requires: python-libuuu
Requires: python-oscrypto
Requires: python-packaging
Requires: python-platformdirs
Requires: python-prettytable
Requires: python-pyasn1
Requires: python-pylink-square
Requires: python-pyocd
Requires: python-pyserial
Requires: python-requests
Requires: python-ruamel.yaml
Requires: python-setuptools
Requires: python-setuptools_scm
Requires: python-sly
Requires: python-spsdk-mcu-link
Requires: python-spsdk-pyocd
Requires: python-typing-extensions
Requires: python-x690
# Removed dependencies
# Requires: python-pyocd-pemicro
# dependency no longer required due to Patch0
@@ -87,12 +81,7 @@ find . -type f -name README.md -exec dos2unix {} +
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/blhost
%python_clone -a %{buildroot}%{_bindir}/el2go-host
%python_clone -a %{buildroot}%{_bindir}/lpcprog
%python_clone -a %{buildroot}%{_bindir}/nxpdice
%python_clone -a %{buildroot}%{_bindir}/nxpfuses
%python_clone -a %{buildroot}%{_bindir}/nxpshe
%python_clone -a %{buildroot}%{_bindir}/nxpuuu
%python_clone -a %{buildroot}%{_bindir}/ifr
%python_clone -a %{buildroot}%{_bindir}/nxpcrypto
%python_clone -a %{buildroot}%{_bindir}/nxpdebugmbox
%python_clone -a %{buildroot}%{_bindir}/nxpdevhsm
@@ -104,6 +93,8 @@ find . -type f -name README.md -exec dos2unix {} +
%python_clone -a %{buildroot}%{_bindir}/sdpshost
%python_clone -a %{buildroot}%{_bindir}/shadowregs
%python_clone -a %{buildroot}%{_bindir}/spsdk
%python_clone -a %{buildroot}%{_bindir}/tpconfig
%python_clone -a %{buildroot}%{_bindir}/tphost
%python_clone -a %{buildroot}%{_bindir}/dk6prog
%python_clone -a %{buildroot}%{_bindir}/nxpmemcfg
%python_clone -a %{buildroot}%{_bindir}/nxpwpc
@@ -126,12 +117,7 @@ find . -type f -name README.md -exec dos2unix {} +
%{python_sitelib}/spsdk/
%{python_sitelib}/spsdk-%{version}.dist-info/
%python_alternative %{_bindir}/blhost
%python_alternative %{_bindir}/el2go-host
%python_alternative %{_bindir}/lpcprog
%python_alternative %{_bindir}/nxpdice
%python_alternative %{_bindir}/nxpfuses
%python_alternative %{_bindir}/nxpshe
%python_alternative %{_bindir}/nxpuuu
%python_alternative %{_bindir}/ifr
%python_alternative %{_bindir}/nxpcrypto
%python_alternative %{_bindir}/nxpdebugmbox
%python_alternative %{_bindir}/nxpdevhsm
@@ -143,6 +129,8 @@ find . -type f -name README.md -exec dos2unix {} +
%python_alternative %{_bindir}/sdpshost
%python_alternative %{_bindir}/shadowregs
%python_alternative %{_bindir}/spsdk
%python_alternative %{_bindir}/tpconfig
%python_alternative %{_bindir}/tphost
%python_alternative %{_bindir}/dk6prog
%python_alternative %{_bindir}/nxpmemcfg
%python_alternative %{_bindir}/nxpwpc

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

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

View File

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