refactoring & docs
This commit is contained in:
parent
4eb954b25b
commit
cdaf71b17b
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
echo "This batch files reads rusefi_config.txt and produses firmware persistent configuration headers"
|
echo "This script reads rusefi_config.txt and produces firmware persistent configuration headers"
|
||||||
echo "the storage section of rusefi.ini is updated as well"
|
echo "the storage section of rusefiXXX.ini is updated as well"
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Board name parameter expected"
|
echo "Board name parameter expected"
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# file gen_signature.sh
|
||||||
|
|
||||||
SHORT_BOARDNAME=$1
|
SHORT_BOARDNAME=$1
|
||||||
|
|
||||||
|
|
||||||
|
SIGNATURE_FILE_NAME=tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
||||||
echo "Generating signature for ${SHORT_BOARDNAME}"
|
echo "Generating signature for ${SHORT_BOARDNAME}"
|
||||||
|
|
||||||
# generate a unique signature
|
# generate a unique signature
|
||||||
date=$(date +"%Y.%m.%d")
|
date=$(date +"%Y.%m.%d")
|
||||||
echo "#define SIGNATURE_DATE $date" > tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
echo "#define SIGNATURE_DATE $date" > ${SIGNATURE_FILE_NAME}
|
||||||
echo "#define SIGNATURE_BOARD ${SHORT_BOARDNAME}" >> tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
echo "#define SIGNATURE_BOARD ${SHORT_BOARDNAME}" >> ${SIGNATURE_FILE_NAME}
|
||||||
|
|
||||||
echo "// SIGNATURE_HASH is a built-in variable generated by ConfigDefinition.jar" >> tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
echo "// SIGNATURE_HASH is a built-in variable generated by ConfigDefinition.jar" >> ${SIGNATURE_FILE_NAME}
|
||||||
|
|
||||||
echo "#define TS_SIGNATURE \"rusEFI @@SIGNATURE_DATE@@.@@SIGNATURE_BOARD@@.@@SIGNATURE_HASH@@\"" >> tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
echo "#define TS_SIGNATURE \"rusEFI @@SIGNATURE_DATE@@.@@SIGNATURE_BOARD@@.@@SIGNATURE_HASH@@\"" >> ${SIGNATURE_FILE_NAME}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue