RUSEFI MSD to contain bundle-specific URL #2848
refactoring and progress
This commit is contained in:
parent
cda52ee946
commit
77659443a1
|
@ -10,7 +10,8 @@ echo "Generating signature for ${SHORT_BOARDNAME}"
|
|||
|
||||
# generate a unique signature
|
||||
date=`TZ=Europe/London date +"%Y.%m.%d"`
|
||||
echo "#define SIGNATURE_DATE $date" > ${SIGNATURE_FILE_NAME}
|
||||
echo "// Generated by gen_signature.sh" > ${SIGNATURE_FILE_NAME}
|
||||
echo "#define SIGNATURE_DATE $date" >> ${SIGNATURE_FILE_NAME}
|
||||
echo "#define SIGNATURE_BOARD ${SHORT_BOARDNAME}" >> ${SIGNATURE_FILE_NAME}
|
||||
|
||||
echo "// SIGNATURE_HASH is a built-in variable generated by ConfigDefinition.jar" >> ${SIGNATURE_FILE_NAME}
|
||||
|
|
|
@ -10,7 +10,6 @@ SHORT_BOARDNAME=$4
|
|||
|
||||
echo "ini $FULL_INI to $H_OUTPUT size $FS_SIZE for $SHORT_BOARDNAME"
|
||||
|
||||
|
||||
rm -f rusefi.zip ramdisk_image.h
|
||||
|
||||
# copy *count*KB of zeroes
|
||||
|
@ -18,7 +17,8 @@ dd if=/dev/zero of=ramdisk.image bs=1024 count=$FS_SIZE
|
|||
|
||||
# create a FAT filesystem inside, name it RUSEFI
|
||||
mkfs.fat ramdisk.image
|
||||
fatlabel ramdisk.image "RUSEFI $SHORT_BOARDNAME"
|
||||
# labels can be no longer than 11 characters
|
||||
fatlabel ramdisk.image RUSEFI
|
||||
|
||||
# -j option dumps all files in the root of the zip (instead of inside directories)
|
||||
zip -j rusefi.ini.zip $FULL_INI
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
|
||||
# fail on error
|
||||
set -e
|
||||
RUSEFI MSD to contain bundle-specific URL #2848
|
||||
|
||||
FULL_INI=$1
|
||||
H_OUTPUT=$2
|
||||
FS_SIZE=$3
|
||||
SHORT_BOARDNAME=$4
|
||||
|
||||
echo "ini $FULL_INI to $H_OUTPUT size $FS_SIZE for $SHORT_BOARDNAME"
|
||||
|
||||
rm -f rusefi.zip ramdisk_image.h
|
||||
|
||||
# copy *count*KB of zeroes
|
||||
|
@ -15,6 +17,7 @@ dd if=/dev/zero of=ramdisk.image bs=1024 count=$FS_SIZE
|
|||
|
||||
# create a FAT filesystem inside, name it RUSEFI
|
||||
mkfs.fat ramdisk.image
|
||||
# labels can be no longer than 11 characters
|
||||
fatlabel ramdisk.image RUSEFI
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue