|
| 1 | +# BearSSL ESP8266 builder |
| 2 | + |
| 3 | +This directory contains the git submodule for the ESP8266 ported bearssl low-level library, a port of [BearSSL](https://www.bearssl.org) |
| 4 | + |
| 5 | +If you are only working on the `BearSSL::` namespace functions in the |
| 6 | +Arduino `ESP8266WiFi` library (`BearSSL::WiFiClientSecure`, |
| 7 | +`BearSSL::WiFiServerSecure`, etc.) you do _NOT_ need to work in this |
| 8 | +directory. |
| 9 | + |
| 10 | +Normal users can simply use the libbearssl.a file already included in |
| 11 | +the `Arduino` repo. Experienced users looking to work on the underlying |
| 12 | +BearSSL-ESP8266 ported library can use this directory to automate the |
| 13 | +build flow. |
| 14 | + |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | +The tools directory needs to be populated (i.e. Arduino IDE should be able |
| 18 | +to compile an executable probect. `get.py` should ensure this). |
| 19 | + |
| 20 | +### UNIX-like system (Linux, Mac): |
| 21 | +If you need to change the *.t0 (Forth-like language) you will need a |
| 22 | +.NET-compatible runtime (such as `mono` under Linux) to rebuild the |
| 23 | +resulant `.c` files. |
| 24 | + |
| 25 | +### For Windows (untested) |
| 26 | +Microsoft's .NET runtime must be installed to run the `.t0`->`.c` workflow. |
| 27 | + |
| 28 | + |
| 29 | +## Building |
| 30 | +* `make all`: Init the submodule, if needed, then build _but do not install_ the library |
| 31 | +* `make install`: Init the submodule, if needed, then build and copy the library to the standard location in `tools/sdk/lib` |
| 32 | + |
| 33 | +## Editing the library |
| 34 | +`https://github.com/earlephilhower/bearssl-esp8266` is the current repository |
| 35 | +for this library. A `git remote` to the original BearSSL sources from |
| 36 | +`https://bearssl.org/git/BearSSL` is added on submodule init. You can either |
| 37 | +manually do pulls, or `make merge-upstream` to bring in any BearSSL upstream |
| 38 | +changes. |
| 39 | + |
| 40 | +Documentation in the library README-esp8266 and git log describes the changes done. |
| 41 | + |
| 42 | + |
| 43 | +Feel free to drop me a line at <earlephilhower@yahoo.com> if you have questions. |
| 44 | + |
| 45 | +-Earle F. Philhower, III |
0 commit comments