1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +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

22
tools/sdk/ssl/Makefile Normal file
View File

@ -0,0 +1,22 @@
VER_H=../include/bearssl/bearssl_git.h
all T0 clean: bearssl/README.txt
PATH=$(PATH):$(PWD)/../../xtensa-lx106-elf/bin/ && cd bearssl && make CONF=esp8266 $@
install: all version-header
cp bearssl/esp8266/libbearssl.a ../lib/.
cp bearssl/inc/bearssl*.h ../include/bearssl/.
bearssl/README.txt:
git submodule update --init --recursive bearssl
cd bearssl && git remote add bearssl https://www.bearssl.org/git/BearSSL
merge-upstream:
cd bearssl && git pull bearssl master
version-header:
echo "// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile" > $(VER_H)
echo -n "#define BEARSSL_GIT " >> $(VER_H)
cd bearssl && git rev-parse --short HEAD >> ../$(VER_H)