3e758ef235
The file `mbedtls_errors/mp_mbedtls_errors.c` can be used instead of `mbedtls/library/error.c` to give shorter error strings, reducing the build size of the error strings from about 12-16kB down to about 2-5kB.
8 lines
424 B
Bash
Executable File
8 lines
424 B
Bash
Executable File
#! /bin/bash -e
|
|
# Generate esp32_mbedtls_errors.c for use in the Esp32 port, with the ESP-IDF version of mbedtls
|
|
# The IDF_PATH env var must be set to the top-level dir of ESPIDF
|
|
echo "IDF_PATH=$IDF_PATH"
|
|
MBEDTLS=$IDF_PATH/components/mbedtls/mbedtls
|
|
patch -o esp32_generate_errors.pl $MBEDTLS/scripts/generate_errors.pl <generate_errors.diff
|
|
perl ./esp32_generate_errors.pl $MBEDTLS/include/mbedtls . esp32_mbedtls_errors.c
|