Skip to content
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

Log info of the used compiler to the compiled directory #42

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
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
16 changes: 16 additions & 0 deletions multicompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ power_levels=( RF24_PA_MIN RF24_PA_LOW RF24_PA_HIGH RF24_PA_MAX )

mkdir compiled

compiler=compiled/compiler-info.txt
echo -e "avr-gcc version:\n================" > ${compiler}
# avr-gcc seems to dump its specfications on stderr, so we have to redirect stderr
avr-gcc -### 2>> ${compiler}
echo -e "\navr-ld version:\n===============" >> ${compiler}
avr-ld --version >> ${compiler}
echo -e "\navr-objcopy version:\n====================" >> ${compiler}
avr-objcopy -V >> ${compiler}
echo -e "\navr-size version:\n=================" >> ${compiler}
avr-size --version >> ${compiler}
echo -e "\nCFLAGS:\n=======" >> ${compiler}
grep "^CFLAGS" >> ${compiler} Makefile
echo -e "\nLDFLAGS:\n========" >> ${compiler}
grep "^LDFLAGS" >> ${compiler} Makefile


for f in "${clock_speeds[@]}"
do
for i in {1..110}
Expand Down