1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-14 13:41:23 +03:00
Files
esp8266/tests/sanity_check.sh
Max Prokhorov 2201770a20 Tools - makecorever.py fixed packaging & avoid needless overwrites ()
update packaging script w/ new arguments

rewrite ci build pattern to only rewrite core_version.h once per job
restore behaviour from  for other cases
2025-05-28 03:57:47 +03:00

46 lines
736 B
Bash
Executable File

#!/usr/bin/env bash
root=$(git rev-parse --show-toplevel)
source "$root/tests/common.sh"
pushd "$root"/tools
python3 get.py -q
python3 makecorever.py --git-root "$root" "$root/cores/esp8266/core_version.h"
popd
pushd "$cache_dir"
gcc="$root/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc"\
" -I$root/cores/esp8266"\
" -I$root/tools/sdk/include"\
" -I$root/variants/generic"\
" -I$root/tools/sdk/libc/xtensa-lx106-elf"
$gcc --verbose
set -v -x
cat << EOF > arduino.c
#include <Arduino.h>
EOF
$gcc -c arduino.c
cat << EOF > coredecls.c
#include <coredecls.h>
EOF
$gcc -c coredecls.c
cat << EOF > features.c
#include <core_esp8266_features.h>
EOF
$gcc -c features.c
cat << EOF > sdk.c
#include <version.h>
EOF
$gcc -c sdk.c