10000 Update to the last version of nonos-sdk V2, WiFi addons by d-a-v · Pull Request #5210 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Update to the last version of nonos-sdk V2, WiFi addons #5210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Oct 9, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
helpers to follow sdk updates
  • Loading branch information
d-a-v committed Jun 27, 2018
commit 5130d4ca4915989a15fadc5081552f76c6b79034
11 changes: 11 additions & 0 deletions tools/sdk/lib/compare/sdk-compare-includes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

sdk="$1"
me="$0"
core=${me%/*}/../../../..

[ -r "$sdk/lib/libnet80211.a" ] || { echo "usage: $0 <esp-open-sdk path>"; exit 1; }

for f in $(cd "$sdk"; find include -type f); do
diff -bu "$sdk/$f" "$core/tools/sdk/$f"
done
71 changes: 71 additions & 0 deletions tools/sdk/lib/compare/sdk-compare-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash

sdk="$1"
me="$0"
core=../../${me%/*}/../../..

[ -r "$sdk/lib/libnet80211.a" ] || { echo "usage: $0 <esp-open-sdk path>"; exit 1; }

tmp=TEMPSDK.$$

commits="$2"

md5()
{
mkdir temp
cd temp
PATH="../$core/tools/xtensa-lx106-elf/bin:$PATH" xtensa-lx106-elf-ar x "../$1"
rm -f mem_manager.o time.o user_interface.o eagle_lwip_if.o
cat *.o | md5sum
cd ..
rm -rf temp
}

search()
{
git clone $sdk $tmp 1>&2
cd $tmp
git reset --hard 1>&2

corelibs=$(cd "$core/tools/sdk/lib"; ls *.a)
[ -z "$commits" ] && commits=$(git log|grep commit\ | sed 's,commit ,,')

for f in $corelibs; do

git checkout master 1>&2 # needed

if [ -r lib/$f ]; then

coremd5=$(md5 "$core/tools/sdk/lib/$f")
found=false

for i in $commits; do
git reset --hard 1>&2
git checkout $i 1>&2

[ -d lib ] || continue

cd lib
PATH="../$core/tools/xtensa-lx106-elf/bin:$PATH" "../$core/tools/sdk/lib/fix_sdk_libs.sh"
cd ..

espmd5=$(md5 "lib/$f")
if [ "$espmd5" = "$coremd5" ]; then
tag=$(git describe --tag)
echo "$tag - https://github.com/espressif/ESP8266_NONOS_SDK/commit/$i - $f"
found=true
break
fi
done

$found || echo "NOTFOUND - $f"
fi

done

cd ..
rm -rf "$tmp"
}

#search
search 2>/dev/null
0