10000 Tools - mkbuildoptglobals refactoring & attempt to fix caching by mcspr · Pull Request #9249 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Tools - mkbuildoptglobals refactoring & attempt to fix caching #9249

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

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
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
build_out & no explicit clean
  • Loading branch information
mcspr committed Jul 1, 2025
commit eac15af0ea07fa2f86b7301db29ff273485206b0
19 changes: 6 additions & 13 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ function build_sketches()

print_size_info_header >"$cache_dir"/size.log

local clean_core=1
local testcnt=0
local cnt=0

Expand All @@ -163,17 +162,11 @@ function build_sketches()
build_cnt=0
fi

# Do we need a clean core build? $build_dir/core/* cannot be shared
# between sketches when global options are present.
clean_core=$(arduino_mkbuildoptglobals_cleanup "$clean_core" "$build_dir" "$sketch")

# Clear out the last built sketch, map, elf, bin files, but leave the compiled
# objects in the core and libraries available for use so we don't need to rebuild
# them each sketch.
rm -rf "$build_dir"/sketch \
"$build_dir"/*.bin \
"$build_dir"/*.map \
"$build_dir"/*.elf
# Clear out the latest map, elf, bin files
rm -rf \
"$build_out"/*.bin \
"$build_out"/*.map \
"$build_out"/*.elf

echo ${ci_group}Building $cnt $sketch
echo "$build_cmd $sketch"
Expand All @@ -193,7 +186,7 @@ function build_sketches()
fi

print_size_info "$core_path"/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-size \
$build_dir/*.elf >>$cache_dir/size.log
$build_out/*.elf >>$cache_dir/size.log

echo $ci_end_group
done
Expand Down
0