Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wolfSSL ESP Registry component publishing files #6708

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -414,15 +414,55 @@ XXX-fips-test
# Generated user_settings_asm.h.
user_settings_asm.h

# VisualGD
# auto-created CMake backups
**/CMakeLists.txt.old

# VisualGDB
**/.visualgdb

# Espressif sdk config default should be saved in sdkconfig.defaults
# we won't track the actual working sdkconfig files
/IDE/Espressif/**/sdkconfig

# auto-created CMake backups
**/CMakeLists.txt.old
# Espressif managed components to exclude:
/IDE/Espressif/**/managed_components/**

# Espressif managed component lock files to exclude.
# "In general, it's ok to have it under version control, however, it ties
# the solution to the exact version of ESP-IDF and will be ignored if an
# example is built against another IDF version or for a different target.
# So it's better to git ignore it for the examples."
/IDE/Espressif/**/dependencies.lock

# exclude any local oqs components
/IDE/Espressif/ESP-IDF/examples/**/components/oqs

/IDE/Espressif/**/sdkconfig.old

# ESP Registry Files

# Temporary wolfssl component install directories that are copied locally at install time
/IDE/Espressif/wolfssl
/IDE/Espressif/component-manager/wolfssl
/IDE/Espressif/component-manager/wolfcrypt
/IDE/Espressif/component-manager/src
/IDE/Espressif/component-manager/dist

# Exclude most of the example files that are copied at install time
# from https://github.com/wolfSSL/wolfssl/tree/master/IDE/Espressif/ESP-IDF/examples
/IDE/Espressif/component-manager/examples/*/CMakeLists.txt
/IDE/Espressif/component-manager/examples/*/partitions_singleapp_large.csv
/IDE/Espressif/component-manager/examples/*/sdkconfig.defaults
/IDE/Espressif/component-manager/examples/*/main/CMakeLists.txt
/IDE/Espressif/component-manager/examples/*/main/*.c
/IDE/Espressif/component-manager/examples/*/main/*.h
/IDE/Espressif/component-manager/examples/*/main/component.mk
/IDE/Espressif/component-manager/examples/*/main/Kconfig.projbuild

# The only ESP Registry Files specific to this location
!/IDE/Espressif/component-manager/examples/*/main/idf_component.yml
!/IDE/Espressif/component-manager/examples/*/README.md
/IDE/Espressif/ESP-IDF/examples/wolfssl_test/components/cryptoauthlib

# MagicCrypto (ARIA Cipher)
MagicCrypto
Expand Down
23 changes: 23 additions & 0 deletions IDE/Espressif/ESP-IDF/examples/template/sdkconfig.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
CONFIG_FREERTOS_HZ=1000
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y

#
# Default main stack size
#
# This is typically way bigger than needed for stack size. See user_settings.h
#
CONFIG_ESP_MAIN_TASK_STACK_SIZE=10500

# Legacy stack size for older ESP-IDF versions
CONFIG_MAIN_TASK_STACK_SIZE=10500

#
# Compiler options
#
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
CONFIG_COMPILER_HIDE_PATHS_MACROS=y
CONFIG_COMPILER_STACK_CHECK_MODE_NORM=y
CONFIG_COMPILER_STACK_CHECK=y

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

#define DEFAULT_PORT 11111

#ifndef CONFIG_TARGET_HOST
#define CONFIG_TARGET_HOST 192.168.1.42
#endif

#define TLS_SMP_CLIENT_TASK_NAME "tls_client_example"
#define TLS_SMP_CLIENT_TASK_WORDS 10240
#define TLS_SMP_CLIENT_TASK_PRIORITY 8
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This tag is used to include this file in the ESP Component Registry:
# __ESP_COMPONENT_SOURCE__

# to view: idf.py partition-table
#
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 24K,
phy_init,data, phy, 0xf000, 4K,
factory, app, factory, 0x10000, 1500K,


# For other settings, see:
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html#creating-custom-tables
#
# Here is the summary printed for the �Single factory app, no OTA� configuration:
#
# # ESP-IDF Partition Table
# # Name, Type, SubType, Offset, Size, Flags
# nvs, data, nvs, 0x9000, 0x6000,
# phy_init, data, phy, 0xf000, 0x1000,
# factory, app, factory, 0x10000, 1M,
#
#
# Here is the summary printed for the �Factory app, two OTA definitions� configuration:
#
# # ESP-IDF Partition Table
# # Name, Type, SubType, Offset, Size, Flags
# nvs, data, nvs, 0x9000, 0x4000,
# otadata, data, ota, 0xd000, 0x2000,
# phy_init, data, phy, 0xf000, 0x1000,
# factory, app, factory, 0x10000, 1M,
# ota_0, app, ota_0, 0x110000, 1M,
# ota_1, app, ota_1, 0x210000, 1M,
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This tag is used to include this file in the ESP Component Registry:
# __ESP_COMPONENT_SOURCE__

# to view: idf.py partition-table
#
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 24K,
phy_init,data, phy, 0xf000, 4K,
factory, app, factory, 0x10000, 1500K,


# For other settings, see:
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html#creating-custom-tables
#
# Here is the summary printed for the �Single factory app, no OTA� configuration:
#
# # ESP-IDF Partition Table
# # Name, Type, SubType, Offset, Size, Flags
# nvs, data, nvs, 0x9000, 0x6000,
# phy_init, data, phy, 0xf000, 0x1000,
# factory, app, factory, 0x10000, 1M,
#
#
# Here is the summary printed for the �Factory app, two OTA definitions� configuration:
#
# # ESP-IDF Partition Table
# # Name, Type, SubType, Offset, Size, Flags
# nvs, data, nvs, 0x9000, 0x4000,
# otadata, data, ota, 0xd000, 0x2000,
# phy_init, data, phy, 0xf000, 0x1000,
# factory, app, factory, 0x10000, 1M,
# ota_0, app, ota_0, 0x110000, 1M,
# ota_1, app, ota_1, 0x210000, 1M,
Loading