From 5cad57387d62fd7a10c0199dda3167edd792c8d0 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Wed, 27 Mar 2024 10:53:33 +0530 Subject: [PATCH] Add support for ESP32-P4 target --- tools/configure_esp_secure_cert.py | 2 +- tools/esp_secure_cert/configure_ds.py | 10 ++++++---- tools/setup.py | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/configure_esp_secure_cert.py b/tools/configure_esp_secure_cert.py index bbd038d..49c5308 100755 --- a/tools/configure_esp_secure_cert.py +++ b/tools/configure_esp_secure_cert.py @@ -30,7 +30,7 @@ bin_filename = os.path.join(esp_secure_cert_data_dir, 'esp_secure_cert.bin') # Targets supported by the script supported_targets = {'esp32', 'esp32s2', 'esp32c3', 'esp32s3', - 'esp32c6', 'esp32h2'} + 'esp32c6', 'esp32h2', 'esp32p4'} # Flash esp_secure_cert partition after its generation diff --git a/tools/esp_secure_cert/configure_ds.py b/tools/esp_secure_cert/configure_ds.py index 7db167c..562bf42 100644 --- a/tools/esp_secure_cert/configure_ds.py +++ b/tools/esp_secure_cert/configure_ds.py @@ -10,15 +10,17 @@ from esp_secure_cert.esp_secure_cert_helper import load_private_key supported_targets_rsa_ds = ['esp32s2', 'esp32s3', 'esp32c3', - 'esp32c6', 'esp32h2'] + 'esp32c6', 'esp32h2', 'esp32p4'] supported_key_size_rsa = {'esp32s2': [1024, 2048, 3072, 4096], 'esp32c3': [1024, 2048, 3072], 'esp32s3': [1024, 2048, 3072, 4096], 'esp32c6': [1024, 2048, 3072], - 'esp32h2': [1024, 2048, 3072]} + 'esp32h2': [1024, 2048, 3072], + 'esp32p4': [1024, 2048, 3072, 4096]} -supported_targets_ecdsa = ['esp32h2'] -supported_key_size_ecdsa = {'esp32h2': [256]} +supported_targets_ecdsa = ['esp32h2', 'esp32p4'] +supported_key_size_ecdsa = {'esp32h2': [256], + 'esp32p4': [256]} idf_path = os.getenv('IDF_PATH') if not idf_path or not os.path.exists(idf_path): diff --git a/tools/setup.py b/tools/setup.py index 97c84af..d696cab 100644 --- a/tools/setup.py +++ b/tools/setup.py @@ -21,7 +21,7 @@ def get_install_requires(): ) exit(1) -VERSION = "2.0.0" +VERSION = "2.1.0" long_description = """ ====================