RUSEFI MSD to contain bundle-specific URL #2848
This commit is contained in:
parent
f309ddf2cd
commit
ecd77cc5b5
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# from firmware folder:
|
||||
# hw_layer/mass_storage/create_ini_image.sh tunerstudio/generated/rusefi.ini hw_layer/mass_storage/ramdisk_image.h 112 test https://rusefi.com/s/test
|
||||
|
||||
# fail on error
|
||||
set -e
|
||||
|
||||
|
@ -24,15 +27,15 @@ 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
|
||||
|
||||
cp hw_layer/rusEFI_Wiki_template.url wiki.temp
|
||||
echo "URL=${BOARD_SPECIFIC_URL}" >> wiki.temp
|
||||
cp hw_layer/mass_storage/filesystem_contents/rusEFI_Wiki_template.url hw_layer/mass_storage/wiki.temp
|
||||
echo "URL=${BOARD_SPECIFIC_URL}" >> hw_layer/mass_storage/wiki.temp
|
||||
|
||||
# Put the zip inside the filesystem
|
||||
mcopy -i ramdisk.image rusefi.ini.zip ::
|
||||
# Put a readme text file in there too
|
||||
mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/README.txt ::
|
||||
mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/rusEFI\ Forum.url ::
|
||||
mcopy -i ramdisk.image wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url
|
||||
mcopy -i ramdisk.image hw_layer/mass_storage/wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# from firmware folder:
|
||||
# hw_layer/mass_storage/create_ini_image_compressed.sh tunerstudio/generated/rusefi.ini hw_layer/mass_storage/ramdisk_image.h 1024 test https://rusefi.com/s/test
|
||||
|
||||
# fail on error
|
||||
set -e
|
||||
|
||||
|
@ -24,15 +27,15 @@ fatlabel ramdisk.image RUSEFI
|
|||
|
||||
|
||||
|
||||
cp hw_layer/rusEFI_Wiki_template.url wiki.temp
|
||||
echo "URL=${BOARD_SPECIFIC_URL}" >> wiki.temp
|
||||
cp hw_layer/mass_storage/filesystem_contents/rusEFI_Wiki_template.url hw_layer/mass_storage/wiki.temp
|
||||
echo "URL=${BOARD_SPECIFIC_URL}" >> hw_layer/mass_storage/wiki.temp
|
||||
|
||||
# Put the zip inside the filesystem
|
||||
mcopy -i ramdisk.image $FULL_INI ::
|
||||
# Put a readme text file in there too
|
||||
mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/README.nozip.txt ::README.txt
|
||||
mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/rusEFI\ Forum.url ::
|
||||
mcopy -i ramdisk.image wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url
|
||||
mcopy -i ramdisk.image hw_layer/mass_storage/wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url
|
||||
|
||||
# Compress the image as DEFLATE with gzip
|
||||
gzip ramdisk.image
|
||||
|
|
Loading…
Reference in New Issue