mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
- split workflows into separate files to trigger by path this should help out documentation and boards / eboot / pkg files updates, since those *wont* trigger usual build stuff anymore - build*.sh whatever merged into just common.sh and build.sh trigger different parity builds, mod % rem and allow to set .ino list through the environment variable - removes unnecessary temporary files, try to use more pipes move remaining ones into cache dir instead of PWD - remove legacy TRAVIS env vars, use ESP8266_ARDUINO prefix for config - remove Windows path workarounds - hardware/ and ide/ directories are set through envionment do not force specific paths, simplify builds on local machine - sketch list is set through environment. expicit paths for Windows and macOS builders. platformio also gets a real shuffled list instead of mod and rem magic numbers - detect root of the repo through git cli, not base{name,dir} or relative paths
23 lines
498 B
Bash
Executable File
23 lines
498 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
root=$(git rev-parse --show-toplevel)
|
|
READELF="$root/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-readelf"
|
|
|
|
cd $root/tools
|
|
python3 get.py -q
|
|
|
|
cd $root/bootloaders/eboot
|
|
|
|
"$READELF" -x .data -x .text eboot.elf > git.txt
|
|
make clean
|
|
make
|
|
"$READELF" -x .data -x .text eboot.elf > build.txt
|
|
diff git.txt build.txt
|
|
if [ $? -ne 0 ]; then
|
|
echo ERROR: eboot.elf in repo does not match output from compile.
|
|
echo ERROR: Need to rebuild and check in updated eboot.
|
|
exit 1
|
|
fi
|