From c128ebad7ed355d00641ca2b7a9fd4f75f092757 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Wed, 27 Jun 2018 15:34:38 +0200 Subject: [PATCH] remove compare scripts - made a separate PR for them --- tools/sdk/lib/compare/sdk-compare-includes | 11 ---- tools/sdk/lib/compare/sdk-compare-libs | 71 ---------------------- 2 files changed, 82 deletions(-) delete mode 100755 tools/sdk/lib/compare/sdk-compare-includes delete mode 100755 tools/sdk/lib/compare/sdk-compare-libs diff --git a/tools/sdk/lib/compare/sdk-compare-includes b/tools/sdk/lib/compare/sdk-compare-includes deleted file mode 100755 index 3f79a21095..0000000000 --- a/tools/sdk/lib/compare/sdk-compare-includes +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -sdk="$1" -me="$0" -core=${me%/*}/../../../.. - -[ -r "$sdk/lib/libnet80211.a" ] || { echo "usage: $0 "; exit 1; } - -for f in $(cd "$sdk"; find include -type f); do - diff -bu "$sdk/$f" "$core/tools/sdk/$f" -done diff --git a/tools/sdk/lib/compare/sdk-compare-libs b/tools/sdk/lib/compare/sdk-compare-libs deleted file mode 100755 index 22d7600b72..0000000000 --- a/tools/sdk/lib/compare/sdk-compare-libs +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -sdk="$1" -me="$0" -core=../../${me%/*}/../../.. - -[ -r "$sdk/lib/libnet80211.a" ] || { echo "usage: $0 "; 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