1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

Add a build directory for libbearssl.a (#4736)

Simple git submodule and makefile for building the bearssl library
from source in the Arduino tree.
This commit is contained in:
Earle F. Philhower, III
2018-05-23 19:50:26 -07:00
committed by GitHub
parent 529baabef8
commit 5a033835e1
7 changed files with 76 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include <core_version.h>
#include <lwip/init.h> // LWIP_VERSION_*
#include <lwipopts.h> // LWIP_HASH_STR (lwip2)
#include <bearssl/bearssl_git.h> // BEARSSL_GIT short hash
#define STRHELPER(x) #x
#define STR(x) STRHELPER(x) // stringifier
@ -31,6 +32,7 @@ static const char arduino_esp8266_git_ver [] PROGMEM = STR(ARDUINO_ESP8266_GIT_D
#if LWIP_VERSION_MAJOR != 1
static const char lwip2_version [] PROGMEM = "/lwIP:" STR(LWIP_VERSION_MAJOR) "." STR(LWIP_VERSION_MINOR) "." STR(LWIP_VERSION_REVISION);
#endif
static const char bearssl_version [] PROGMEM = "/BearSSL:" STR(BEARSSL_GIT);
String EspClass::getFullVersion()
{
@ -50,5 +52,6 @@ String EspClass::getFullVersion()
#ifdef LWIP_HASH_STR
+ "(" + F(LWIP_HASH_STR) + ")"
#endif
+ FPSTR(bearssl_version)
;
}