summaryrefslogtreecommitdiff
path: root/python-cysecuretools.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-08 12:15:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-08 12:15:52 +0000
commit310e83e03e4a0b1d12e458c8b58930711c48e471 (patch)
tree971942df24bd323cbebcd57616585e1ed239aa60 /python-cysecuretools.spec
parent1060f8279cf2d79faef2d4f468b23fb047fd7e46 (diff)
automatic import of python-cysecuretoolsopeneuler20.03
Diffstat (limited to 'python-cysecuretools.spec')
-rw-r--r--python-cysecuretools.spec406
1 files changed, 384 insertions, 22 deletions
diff --git a/python-cysecuretools.spec b/python-cysecuretools.spec
index d537d57..22215c5 100644
--- a/python-cysecuretools.spec
+++ b/python-cysecuretools.spec
@@ -1,15 +1,14 @@
%global _empty_manifest_terminate_build 0
Name: python-cysecuretools
-Version: 4.1.0
+Version: 4.2.0
Release: 1
Summary: Cypress secure tools for Python
License: Apache 2.0
URL: https://github.com/cypresssemiconductorco/cysecuretools
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/68/ae/b343e193778e1a993da2308e469b983e7f82b602daf2c5157baa9d8987eb/cysecuretools-4.1.0.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/38/20/97ba7fd4c5b08995a68df35c86ec519c9c5517d175cdc392408ed3aa9d76/cysecuretools-4.2.0.tar.gz
BuildArch: noarch
Requires: python3-setuptools
-Requires: python3-psutil
Requires: python3-cryptography
Requires: python3-click
Requires: python3-intelhex
@@ -23,6 +22,7 @@ Requires: python3-packaging
This package contains security tools for creating keys, creating certificates, signing user applications, and provisioning Cypress MCUs.
# Table of Contents
+- [HW/SW compatibility](#hwsw-compatibility)
- [Prerequisites](#prerequisites)
- [Documentation](#documentation)
- [Installing package](#installing-package)
@@ -35,12 +35,121 @@ This package contains security tools for creating keys, creating certificates, s
- [Known issues](#known-issues)
- [License and Contributions](#license-and-contributions)
+# HW/SW compatibility
+## PSoC 64
+<table>
+ <thead>
+ <tr>
+ <td>Target/Kit</td>
+ <td>Silicon Revision</td>
+ <td>Silicon ID, Silicon Rev., Family ID</td>
+ <td>CySecureTools Version</td>
+ <td>Secure FlashBoot Version</td>
+ <td>CyBootloader Version</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="6" style="text-align: center;">512K</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xx5<br>
+ cy8cproto&#8209;064b0s3
+ </td>
+ <td>A1</td>
+ <td>0xE70D, 0x12, 0x105</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.1.6441</td>
+ </tr>
+ <tr>
+ <td colspan="6" style="text-align: center;">2M</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xxa<br>
+ cy8ckit&#8209;064b0s2&#8209;4343w
+ </td>
+ <td>A1</td>
+ <td>0xE470, 0x12, 0x102</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.2.8102</td>
+ </tr>
+ <tr>
+ <td>
+ cys06xxa<br>
+ cy8ckit&#8209;064s0s2&#8209;4343w
+ </td>
+ <td>A1</td>
+ <td>0xE4A0, 0x12, 0x102</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.2.8102</td>
+ </tr>
+ <tr>
+ <td colspan="6" style="text-align: center;">1M</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xx7<br>
+ cy8cproto&#8209;064s1&#8209;sb<br>
+ cy8cproto&#8209;064b0s1&#8209;ble<br>
+ cy8cproto&#8209;064b0s1&#8209;ssa
+ </td>
+ <td>B3</td>
+ <td>
+ 0xE262, 0x24, 0x100
+ 0xE261, 0x24, 0x100
+ </td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.0.4041</td>
+ </tr>
+ </tbody>
+</table>
+
+## CYW20829
+<table>
+ <thead>
+ <tr>
+ <td>Target/Kit</td>
+ <td>Silicon Revision<sup>1</sup></td>
+ <td>Silicon ID, Silicon Rev., Family ID</td>
+ <td>CySecureTools Version</td>
+ <td>BootROM Version</td>
+ <td>RAM Applications Version</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>cyw20829</td>
+ <td>A0</td>
+ <td>0xEB40, 0x11, 0x110</td>
+ <td>4.2.0</td>
+ <td>1.0.0.7120</td>
+ <td>1.0.0.2857</td>
+ </tr>
+ <tr>
+ <td>cyw20829</td>
+ <td>B0</td>
+ <td>0xEB43, 0x21, 0x110</td>
+ <td>4.2.0</td>
+ <td>1.2.0.8274</td>
+ <td>1.2.0.3073</td>
+ </tr>
+ </tbody>
+</table>
+
+<sup>1</sup> Specify `--rev` option for older revision of the silicon (e.g. `$ cysecuretools -t cyw20829 --rev a0 <COMMAND>`). Using the latest revision does not require specifying the option.
+
# Prerequisites
* General
* Python 3.6 or later
* For PSoC 64 devices
* In case of use PyOCD:
- * [Installed the libusb driver](#installing-libusb-driver)
+ * [Installed the libusb driver](#installing-libusb-driver)
* Ensure the KitProg3 programming mode is **DAPLink**
* In case of use OpenOCD:
* [Installed Cypress OpenOCD](https://github.com/cypresssemiconductorco/openocd/releases)
@@ -51,7 +160,6 @@ This package contains security tools for creating keys, creating certificates, s
* Ensure the KitProg3 programming mode is **CMSIS-DAP Bulk**
* Ensure the power selection jumper is set to provide 2.5 V to the power supply pin related to eFuse power. This voltage level is required to blow eFuses
-
# Documentation
* [PSoC64 Secure MCU Secure Boot SDK User Guide](https://www.cypress.com/documentation/software-and-drivers/psoc-64-secure-mcu-secure-boot-sdk-user-guide)
* [Changelog](CHANGELOG.md)
@@ -105,8 +213,8 @@ When using _pyOCD_ as a debugger, the log files contain messages sent by both to
ERROR : SFB status: CY_FB_INVALID_IMG_JWT_SIGNATURE: Invalid image certificate signature. Check the log for details
```
_Workaround_:
-1. Open the policy file.
-2. Navigate to section 1 of the `boot_upgrade/firmware`.
+1. Open the policy file.
+2. Navigate to section 1 of the `boot_upgrade/firmware`.
3. Set `boot_auth` and `bootloader_keys` as follows:
```
"boot_auth": [
@@ -143,6 +251,18 @@ This project contains code from other projects. The original license text is inc
# Changelog
All notable changes to this project will be documented in this file.
+## 4.2.0
+### Added
+- Support for CYW20829 B0 silicon revision
+- Multi-image NV counter for CYW20829
+- Transition PSoC 64 devices to RMA LCS
+- Open PSoC 64 devices in RMA LCS for debugging
+- OpenOCD autodiscovery in ModusToolbox directory
+- Add SW/HW compatibility table to the readme
+
+### Changed
+- Target `cyw20829` is used for the latest silicon revision. For the previous silicon revision (A0) add _--rev_ option in the command line (`-t cyw20829 --rev a0`)
+
## 4.1.0
### Added
- OpenOCD support for PSoC 64 devices
@@ -229,6 +349,7 @@ BuildRequires: python3-pip
This package contains security tools for creating keys, creating certificates, signing user applications, and provisioning Cypress MCUs.
# Table of Contents
+- [HW/SW compatibility](#hwsw-compatibility)
- [Prerequisites](#prerequisites)
- [Documentation](#documentation)
- [Installing package](#installing-package)
@@ -241,12 +362,121 @@ This package contains security tools for creating keys, creating certificates, s
- [Known issues](#known-issues)
- [License and Contributions](#license-and-contributions)
+# HW/SW compatibility
+## PSoC 64
+<table>
+ <thead>
+ <tr>
+ <td>Target/Kit</td>
+ <td>Silicon Revision</td>
+ <td>Silicon ID, Silicon Rev., Family ID</td>
+ <td>CySecureTools Version</td>
+ <td>Secure FlashBoot Version</td>
+ <td>CyBootloader Version</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="6" style="text-align: center;">512K</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xx5<br>
+ cy8cproto&#8209;064b0s3
+ </td>
+ <td>A1</td>
+ <td>0xE70D, 0x12, 0x105</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.1.6441</td>
+ </tr>
+ <tr>
+ <td colspan="6" style="text-align: center;">2M</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xxa<br>
+ cy8ckit&#8209;064b0s2&#8209;4343w
+ </td>
+ <td>A1</td>
+ <td>0xE470, 0x12, 0x102</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.2.8102</td>
+ </tr>
+ <tr>
+ <td>
+ cys06xxa<br>
+ cy8ckit&#8209;064s0s2&#8209;4343w
+ </td>
+ <td>A1</td>
+ <td>0xE4A0, 0x12, 0x102</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.2.8102</td>
+ </tr>
+ <tr>
+ <td colspan="6" style="text-align: center;">1M</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xx7<br>
+ cy8cproto&#8209;064s1&#8209;sb<br>
+ cy8cproto&#8209;064b0s1&#8209;ble<br>
+ cy8cproto&#8209;064b0s1&#8209;ssa
+ </td>
+ <td>B3</td>
+ <td>
+ 0xE262, 0x24, 0x100
+ 0xE261, 0x24, 0x100
+ </td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.0.4041</td>
+ </tr>
+ </tbody>
+</table>
+
+## CYW20829
+<table>
+ <thead>
+ <tr>
+ <td>Target/Kit</td>
+ <td>Silicon Revision<sup>1</sup></td>
+ <td>Silicon ID, Silicon Rev., Family ID</td>
+ <td>CySecureTools Version</td>
+ <td>BootROM Version</td>
+ <td>RAM Applications Version</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>cyw20829</td>
+ <td>A0</td>
+ <td>0xEB40, 0x11, 0x110</td>
+ <td>4.2.0</td>
+ <td>1.0.0.7120</td>
+ <td>1.0.0.2857</td>
+ </tr>
+ <tr>
+ <td>cyw20829</td>
+ <td>B0</td>
+ <td>0xEB43, 0x21, 0x110</td>
+ <td>4.2.0</td>
+ <td>1.2.0.8274</td>
+ <td>1.2.0.3073</td>
+ </tr>
+ </tbody>
+</table>
+
+<sup>1</sup> Specify `--rev` option for older revision of the silicon (e.g. `$ cysecuretools -t cyw20829 --rev a0 <COMMAND>`). Using the latest revision does not require specifying the option.
+
# Prerequisites
* General
* Python 3.6 or later
* For PSoC 64 devices
* In case of use PyOCD:
- * [Installed the libusb driver](#installing-libusb-driver)
+ * [Installed the libusb driver](#installing-libusb-driver)
* Ensure the KitProg3 programming mode is **DAPLink**
* In case of use OpenOCD:
* [Installed Cypress OpenOCD](https://github.com/cypresssemiconductorco/openocd/releases)
@@ -257,7 +487,6 @@ This package contains security tools for creating keys, creating certificates, s
* Ensure the KitProg3 programming mode is **CMSIS-DAP Bulk**
* Ensure the power selection jumper is set to provide 2.5 V to the power supply pin related to eFuse power. This voltage level is required to blow eFuses
-
# Documentation
* [PSoC64 Secure MCU Secure Boot SDK User Guide](https://www.cypress.com/documentation/software-and-drivers/psoc-64-secure-mcu-secure-boot-sdk-user-guide)
* [Changelog](CHANGELOG.md)
@@ -311,8 +540,8 @@ When using _pyOCD_ as a debugger, the log files contain messages sent by both to
ERROR : SFB status: CY_FB_INVALID_IMG_JWT_SIGNATURE: Invalid image certificate signature. Check the log for details
```
_Workaround_:
-1. Open the policy file.
-2. Navigate to section 1 of the `boot_upgrade/firmware`.
+1. Open the policy file.
+2. Navigate to section 1 of the `boot_upgrade/firmware`.
3. Set `boot_auth` and `bootloader_keys` as follows:
```
"boot_auth": [
@@ -349,6 +578,18 @@ This project contains code from other projects. The original license text is inc
# Changelog
All notable changes to this project will be documented in this file.
+## 4.2.0
+### Added
+- Support for CYW20829 B0 silicon revision
+- Multi-image NV counter for CYW20829
+- Transition PSoC 64 devices to RMA LCS
+- Open PSoC 64 devices in RMA LCS for debugging
+- OpenOCD autodiscovery in ModusToolbox directory
+- Add SW/HW compatibility table to the readme
+
+### Changed
+- Target `cyw20829` is used for the latest silicon revision. For the previous silicon revision (A0) add _--rev_ option in the command line (`-t cyw20829 --rev a0`)
+
## 4.1.0
### Added
- OpenOCD support for PSoC 64 devices
@@ -432,6 +673,7 @@ Provides: python3-cysecuretools-doc
This package contains security tools for creating keys, creating certificates, signing user applications, and provisioning Cypress MCUs.
# Table of Contents
+- [HW/SW compatibility](#hwsw-compatibility)
- [Prerequisites](#prerequisites)
- [Documentation](#documentation)
- [Installing package](#installing-package)
@@ -444,12 +686,121 @@ This package contains security tools for creating keys, creating certificates, s
- [Known issues](#known-issues)
- [License and Contributions](#license-and-contributions)
+# HW/SW compatibility
+## PSoC 64
+<table>
+ <thead>
+ <tr>
+ <td>Target/Kit</td>
+ <td>Silicon Revision</td>
+ <td>Silicon ID, Silicon Rev., Family ID</td>
+ <td>CySecureTools Version</td>
+ <td>Secure FlashBoot Version</td>
+ <td>CyBootloader Version</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="6" style="text-align: center;">512K</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xx5<br>
+ cy8cproto&#8209;064b0s3
+ </td>
+ <td>A1</td>
+ <td>0xE70D, 0x12, 0x105</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.1.6441</td>
+ </tr>
+ <tr>
+ <td colspan="6" style="text-align: center;">2M</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xxa<br>
+ cy8ckit&#8209;064b0s2&#8209;4343w
+ </td>
+ <td>A1</td>
+ <td>0xE470, 0x12, 0x102</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.2.8102</td>
+ </tr>
+ <tr>
+ <td>
+ cys06xxa<br>
+ cy8ckit&#8209;064s0s2&#8209;4343w
+ </td>
+ <td>A1</td>
+ <td>0xE4A0, 0x12, 0x102</td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.2.8102</td>
+ </tr>
+ <tr>
+ <td colspan="6" style="text-align: center;">1M</td>
+ </tr>
+ <tr>
+ <td>
+ cyb06xx7<br>
+ cy8cproto&#8209;064s1&#8209;sb<br>
+ cy8cproto&#8209;064b0s1&#8209;ble<br>
+ cy8cproto&#8209;064b0s1&#8209;ssa
+ </td>
+ <td>B3</td>
+ <td>
+ 0xE262, 0x24, 0x100
+ 0xE261, 0x24, 0x100
+ </td>
+ <td>4.2.0</td>
+ <td>4.0.2.1842</td>
+ <td>2.0.0.4041</td>
+ </tr>
+ </tbody>
+</table>
+
+## CYW20829
+<table>
+ <thead>
+ <tr>
+ <td>Target/Kit</td>
+ <td>Silicon Revision<sup>1</sup></td>
+ <td>Silicon ID, Silicon Rev., Family ID</td>
+ <td>CySecureTools Version</td>
+ <td>BootROM Version</td>
+ <td>RAM Applications Version</td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>cyw20829</td>
+ <td>A0</td>
+ <td>0xEB40, 0x11, 0x110</td>
+ <td>4.2.0</td>
+ <td>1.0.0.7120</td>
+ <td>1.0.0.2857</td>
+ </tr>
+ <tr>
+ <td>cyw20829</td>
+ <td>B0</td>
+ <td>0xEB43, 0x21, 0x110</td>
+ <td>4.2.0</td>
+ <td>1.2.0.8274</td>
+ <td>1.2.0.3073</td>
+ </tr>
+ </tbody>
+</table>
+
+<sup>1</sup> Specify `--rev` option for older revision of the silicon (e.g. `$ cysecuretools -t cyw20829 --rev a0 <COMMAND>`). Using the latest revision does not require specifying the option.
+
# Prerequisites
* General
* Python 3.6 or later
* For PSoC 64 devices
* In case of use PyOCD:
- * [Installed the libusb driver](#installing-libusb-driver)
+ * [Installed the libusb driver](#installing-libusb-driver)
* Ensure the KitProg3 programming mode is **DAPLink**
* In case of use OpenOCD:
* [Installed Cypress OpenOCD](https://github.com/cypresssemiconductorco/openocd/releases)
@@ -460,7 +811,6 @@ This package contains security tools for creating keys, creating certificates, s
* Ensure the KitProg3 programming mode is **CMSIS-DAP Bulk**
* Ensure the power selection jumper is set to provide 2.5 V to the power supply pin related to eFuse power. This voltage level is required to blow eFuses
-
# Documentation
* [PSoC64 Secure MCU Secure Boot SDK User Guide](https://www.cypress.com/documentation/software-and-drivers/psoc-64-secure-mcu-secure-boot-sdk-user-guide)
* [Changelog](CHANGELOG.md)
@@ -514,8 +864,8 @@ When using _pyOCD_ as a debugger, the log files contain messages sent by both to
ERROR : SFB status: CY_FB_INVALID_IMG_JWT_SIGNATURE: Invalid image certificate signature. Check the log for details
```
_Workaround_:
-1. Open the policy file.
-2. Navigate to section 1 of the `boot_upgrade/firmware`.
+1. Open the policy file.
+2. Navigate to section 1 of the `boot_upgrade/firmware`.
3. Set `boot_auth` and `bootloader_keys` as follows:
```
"boot_auth": [
@@ -552,6 +902,18 @@ This project contains code from other projects. The original license text is inc
# Changelog
All notable changes to this project will be documented in this file.
+## 4.2.0
+### Added
+- Support for CYW20829 B0 silicon revision
+- Multi-image NV counter for CYW20829
+- Transition PSoC 64 devices to RMA LCS
+- Open PSoC 64 devices in RMA LCS for debugging
+- OpenOCD autodiscovery in ModusToolbox directory
+- Add SW/HW compatibility table to the readme
+
+### Changed
+- Target `cyw20829` is used for the latest silicon revision. For the previous silicon revision (A0) add _--rev_ option in the command line (`-t cyw20829 --rev a0`)
+
## 4.1.0
### Added
- OpenOCD support for PSoC 64 devices
@@ -629,7 +991,7 @@ All notable changes to this project will be documented in this file.
%prep
-%autosetup -n cysecuretools-4.1.0
+%autosetup -n cysecuretools-4.2.0
%build
%py3_build
@@ -643,20 +1005,20 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
- find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
- find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
- find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
- find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
- find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -669,5 +1031,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 4.1.0-1
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 4.2.0-1
- Package Spec generated