1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
david gauchard 74ca42f829 Sketch emulation on host (#5342)
* WIP compile examples on host with 'make examples'

* WIP bufferize tcp input

* WIP Makefile

* WIP network to rework, tcp/udp to factorize, udp addresses broken

* minor changes to the core

* WIP basic udp working

* WIP mdns

* WIP mcast receiving, not sending

* WIP mdns OK

* beta version

* SSL + doc

* update travis host test command

* licenses

* typo

* doc: arduino builder is not around: declare functions before calling them

* fix with latest SSL PR, compile in 32 bits mode

* fix make clean

* make -m32 optional

* 32bits compiler ability tester

* WIP

* WIP (fix 1 vtable error, still another one to hunt with using spiffs)

* example astyle

* fix os_printf_plus

* load / save mock spiffs

* fix style

* fix using spiffs/mock

* don't mess ram

* update doc

* remove leftover

* optimization -Os except for CI, rename ARCH32 to FORCE32

* revert useless cast (not even compiled)

* remove unused function

* use proper type for pointer arithmetics

* makefile: sketch object and cpp file moved to bin/ directories
easier to clean, and IDE don't like them

* changes for review

* make use of %zd

* less verbose makefile by default (option)

* update readme
2018-11-20 18:51:45 -02:00
..
2018-11-20 18:51:45 -02:00

BearSSL ESP8266 builder

This directory contains the git submodule for the ESP8266 ported bearssl low-level library, a port of BearSSL

If you are only working on the BearSSL:: namespace functions in the Arduino ESP8266WiFi library (BearSSL::WiFiClientSecure, BearSSL::WiFiServerSecure, etc.) you do NOT need to work in this directory.

Normal users can simply use the libbearssl.a file already included in the Arduino repo. Experienced users looking to work on the underlying BearSSL-ESP8266 ported library can use this directory to automate the build flow.

Prerequisites

The tools directory needs to be populated (i.e. Arduino IDE should be able to compile an executable probect. get.py should ensure this).

UNIX-like system (Linux, Mac):

If you need to change the *.t0 (Forth-like language) you will need a .NET-compatible runtime (such as mono under Linux) to rebuild the resulant .c files.

For Windows (untested)

Microsoft's .NET runtime must be installed to run the .t0->.c workflow.

Building

  • make all: Init the submodule, if needed, then build but do not install the library
  • make install: Init the submodule, if needed, then build and copy the library to the standard location in tools/sdk/lib

Editing the library

https://github.com/earlephilhower/bearssl-esp8266 is the current repository for this library. A git remote to the original BearSSL sources from https://bearssl.org/git/BearSSL is added on submodule init. You can either manually do pulls, or make merge-upstream to bring in any BearSSL upstream changes.

Documentation in the library README-esp8266 and git log describes the changes done.

Feel free to drop me a line at earlephilhower@yahoo.com if you have questions.

-Earle F. Philhower, III