diff --git a/.travis.yml b/.travis.yml index 9117ced1f2..86abdbeebc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ addons: apt: packages: - cppcheck - + - binutils install: diff --git a/before_deploy b/before_deploy index 67ca2b2524..09faee000d 100755 --- a/before_deploy +++ b/before_deploy @@ -30,6 +30,8 @@ if [ -d "docs/build" ]; then cp -r docs/build/* ${TMP_DIST}/docs/ fi +mkdir -p ${TMP_DIST}/memstats + for ENV in \ dev_ESP8266_4M\ esp-wrover-kit_test_1M8_partition\ @@ -95,6 +97,16 @@ do else echo "Build too large for $ENV $FILESIZE > $MAX_FILESIZE " fi + + ELFFILE=`echo ".pioenvs/${ENV}/firmware.elf"` + if [ -f $ELFFILE ]; then + SYMBOLS_STATS=`echo "${TMP_DIST}/memstats/${ENV}_symbols.txt"` + STRINGS_STATS=`echo "${TMP_DIST}/memstats/${ENV}_strings.txt"` + readelf -a ${ELFFILE} |grep 3ff |sort -n -k 3 > ${SYMBOLS_STATS} + objdump -s -j .rodata ${ELFFILE} > ${STRINGS_STATS} + gzip ${SYMBOLS_STATS} + gzip ${STRINGS_STATS} + fi done #create a source structure that is the same as the original ESPEasy project (and works with the howto on the wiki) diff --git a/src/WebServer.ino b/src/WebServer.ino index 2ed957a2f8..af6ef6f597 100644 --- a/src/WebServer.ino +++ b/src/WebServer.ino @@ -3861,8 +3861,8 @@ void handle_tools() { SPIFFS.info(fs_info); if ((fs_info.totalBytes - fs_info.usedBytes) / 1024 > 50) { TXBuffer += F(""); - TXBuffer += ""; - TXBuffer += "download new ui"; + TXBuffer += F(""); + TXBuffer += F("download new ui"); TXBuffer += F("Download new UI"); } #endif diff --git a/tools/build_ESPeasy.sh b/tools/build_ESPeasy.sh index 58db8941e7..72a5bf0829 100755 --- a/tools/build_ESPeasy.sh +++ b/tools/build_ESPeasy.sh @@ -6,7 +6,7 @@ # Needed packages: # sudo apt-get update # sudo apt-get upgrade -# sudo apt install python-minimal virtualenv build-essential zip +# sudo apt install python-minimal virtualenv build-essential zip binutils VENV=~/.venv/python2.7 SRC=~/GitHub/letscontrolit/ESPEasy