From 6540df60cf951c92f49cf1b333b3ed04fce58704 Mon Sep 17 00:00:00 2001 From: John de Rooij Date: Sun, 6 Dec 2020 14:30:01 +0100 Subject: [PATCH 1/2] Log info of the used compiler to the compiled directory --- multicompile.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) mode change 100644 => 100755 multicompile.sh diff --git a/multicompile.sh b/multicompile.sh old mode 100644 new mode 100755 index 45bcc69..455b103 --- a/multicompile.sh +++ b/multicompile.sh @@ -1,6 +1,24 @@ clock_speeds=( 16000000L 8000000L 1000000L ) 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} From d0cd38752532fd51fa3ed62ee0714193b0177214 Mon Sep 17 00:00:00 2001 From: John de Rooij Date: Sun, 6 Dec 2020 14:30:01 +0100 Subject: [PATCH 2/2] Log info of the used compiler to the compiled directory --- multicompile.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/multicompile.sh b/multicompile.sh index edc9a8a..7aa8ff5 100755 --- a/multicompile.sh +++ b/multicompile.sh @@ -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}