Cleanup outdated code
This commit is contained in:
parent
9aebf23d41
commit
6dd7681f6b
|
|
@ -56,7 +56,7 @@
|
||||||
# Some may argue that this is only used by a script, BUT as soon someone accidentally or on purpose starts Arduino IDE
|
# Some may argue that this is only used by a script, BUT as soon someone accidentally or on purpose starts Arduino IDE
|
||||||
# it will use the default Arduino IDE folders and so can corrupt the build environment.
|
# it will use the default Arduino IDE folders and so can corrupt the build environment.
|
||||||
#
|
#
|
||||||
# Version: 2.0.0-Build_63
|
# Version: 2.0.0-Build_66
|
||||||
# Change log:
|
# Change log:
|
||||||
# 12 Jan 2019, 3d-gussner, Fixed "compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections" in 'platform.txt'
|
# 12 Jan 2019, 3d-gussner, Fixed "compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections" in 'platform.txt'
|
||||||
# 16 Jan 2019, 3d-gussner, Build_2, Added development check to modify 'Configuration.h' to prevent unwanted LCD messages that Firmware is unknown
|
# 16 Jan 2019, 3d-gussner, Build_2, Added development check to modify 'Configuration.h' to prevent unwanted LCD messages that Firmware is unknown
|
||||||
|
|
@ -165,6 +165,7 @@
|
||||||
# 23 Jun 2021, 3d-gussner, Improve MK404 usage
|
# 23 Jun 2021, 3d-gussner, Improve MK404 usage
|
||||||
# 24 Jun 2021, 3d-gussner, Fix MK404 user interaction not to show if compiling 'All' variants
|
# 24 Jun 2021, 3d-gussner, Fix MK404 user interaction not to show if compiling 'All' variants
|
||||||
# 24 Jun 2021, 3d-gussner, MK404 is only supported on Linux at this moment.
|
# 24 Jun 2021, 3d-gussner, MK404 is only supported on Linux at this moment.
|
||||||
|
# 03 Jan 2022, 3d-gussner, Remove calling lang-community.sh as not needed anymore
|
||||||
|
|
||||||
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
|
||||||
|
|
@ -220,7 +221,7 @@ while getopts b:c:d:g:h:i:j:l:m:n:o:p:v:x:y:?h flag
|
||||||
# '?' 'h' argument usage and help
|
# '?' 'h' argument usage and help
|
||||||
if [ "$help_flag" == "1" ] ; then
|
if [ "$help_flag" == "1" ] ; then
|
||||||
echo "***************************************"
|
echo "***************************************"
|
||||||
echo "* PF-build.sh Version: 2.0.0-Build_63 *"
|
echo "* PF-build.sh Version: 2.0.0-Build_66 *"
|
||||||
echo "***************************************"
|
echo "***************************************"
|
||||||
echo "Arguments:"
|
echo "Arguments:"
|
||||||
echo "$(tput setaf 2)-b$(tput sgr0) Build/commit number"
|
echo "$(tput setaf 2)-b$(tput sgr0) Build/commit number"
|
||||||
|
|
@ -1302,8 +1303,6 @@ create_multi_firmware()
|
||||||
# build languages
|
# build languages
|
||||||
echo "$(tput setaf 3)"
|
echo "$(tput setaf 3)"
|
||||||
./lang-build.sh || failures 25
|
./lang-build.sh || failures 25
|
||||||
# build community languages
|
|
||||||
#./lang-community.sh || failures 25
|
|
||||||
# Combine compiled firmware with languages
|
# Combine compiled firmware with languages
|
||||||
./fw-build.sh || failures 25
|
./fw-build.sh || failures 25
|
||||||
cp not_tran.txt not_tran_$VARIANT.txt
|
cp not_tran.txt not_tran_$VARIANT.txt
|
||||||
|
|
|
||||||
|
|
@ -147,9 +147,6 @@ generate_binary()
|
||||||
chsum=$(cat lang_$1.bin | xxd | cut -c11-49 | tr ' ' "\n" | sed '/^$/d' | awk 'BEGIN { sum = 0; } { sum += strtonum("0x"$1); if (sum > 0xffff) sum -= 0x10000; } END { printf("%x\n", sum); }')
|
chsum=$(cat lang_$1.bin | xxd | cut -c11-49 | tr ' ' "\n" | sed '/^$/d' | awk 'BEGIN { sum = 0; } { sum += strtonum("0x"$1); if (sum > 0xffff) sum -= 0x10000; } END { printf("%x\n", sum); }')
|
||||||
/bin/echo -n -e $(echo -n $((0x$chsum)) | awk "$awk_ui16") |\
|
/bin/echo -n -e $(echo -n $((0x$chsum)) | awk "$awk_ui16") |\
|
||||||
dd of=lang_$1.bin bs=1 count=2 seek=8 conv=notrunc 2>/dev/null
|
dd of=lang_$1.bin bs=1 count=2 seek=8 conv=notrunc 2>/dev/null
|
||||||
#remove temporary files
|
|
||||||
# rm -f lang_$1.tmp
|
|
||||||
# rm -f lang_$1.dat
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$1" ]; then set 'all'; fi
|
if [ -z "$1" ]; then set 'all'; fi
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,6 @@ echo "lang-clean languages:$LANGUAGES" >&2
|
||||||
clean_lang $lang
|
clean_lang $lang
|
||||||
done
|
done
|
||||||
|
|
||||||
#Use the 2 lines below as a template and replace 'qr'
|
|
||||||
##New language
|
|
||||||
#clean_lang_qr
|
|
||||||
|
|
||||||
echo -n "lang-clean.sh finished" >&2
|
echo -n "lang-clean.sh finished" >&2
|
||||||
if [ $result -eq 0 ]; then
|
if [ $result -eq 0 ]; then
|
||||||
echo " with success" >&2
|
echo " with success" >&2
|
||||||
|
|
|
||||||
|
|
@ -27,19 +27,6 @@ if [ "$LNG" = "all" ]; then
|
||||||
for lang in $LANGUAGES; do
|
for lang in $LANGUAGES; do
|
||||||
./lang-export.sh $lang
|
./lang-export.sh $lang
|
||||||
done
|
done
|
||||||
#./lang-export.sh cz
|
|
||||||
#./lang-export.sh de
|
|
||||||
#./lang-export.sh es
|
|
||||||
#./lang-export.sh fr
|
|
||||||
#./lang-export.sh it
|
|
||||||
#./lang-export.sh pl
|
|
||||||
#Community language support
|
|
||||||
#if [ -n "$COMMUNITY_LANGUAGES" ]; then
|
|
||||||
# for l in $COMMUNITY_LANGUAGES; do
|
|
||||||
# echo " Exporting : $l" >&2
|
|
||||||
# ./lang-export.sh $l
|
|
||||||
# done
|
|
||||||
#fi
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,19 +20,6 @@ if [ "$LNG" = "all" ]; then
|
||||||
for lang in $LANGUAGES; do
|
for lang in $LANGUAGES; do
|
||||||
./lang-import.sh $lang
|
./lang-import.sh $lang
|
||||||
done
|
done
|
||||||
#./lang-import.sh cz
|
|
||||||
#./lang-import.sh de
|
|
||||||
#./lang-import.sh es
|
|
||||||
#./lang-import.sh fr
|
|
||||||
#./lang-import.sh it
|
|
||||||
#./lang-import.sh pl
|
|
||||||
#DO NOT add Community languages here !!!
|
|
||||||
#if [ -n "$COMMUNITY_LANGUAGES" ]; then
|
|
||||||
# for l in $COMMUNITY_LANGUAGES; do
|
|
||||||
# echo " Exporting : $l" >&2
|
|
||||||
# ./lang-export.sh $l
|
|
||||||
# done
|
|
||||||
#fi
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue