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.
5 lines
265 B
Bash
Executable File
5 lines
265 B
Bash
Executable File
#! /bin/bash -e
|
|
# Generate mp_mbedtls_errors.c for inclusion in ports that use $MPY/lib/mbedtls
|
|
patch -o mp_generate_errors.pl ../mbedtls/scripts/generate_errors.pl <generate_errors.diff
|
|
perl ./mp_generate_errors.pl ../mbedtls/include/mbedtls . mp_mbedtls_errors.c
|