tools/mkromfsimg.sh: Use sed to add const to ROMFS declarations so that they like in FLASH not RAM.

This commit is contained in:
Bernd Walter 2019-10-07 21:52:55 -06:00 committed by Gregory Nutt
parent 9f0502f8ba
commit 626c28dc30

View File

@ -275,5 +275,6 @@ rm -rf $workingdir || { echo "Failed to remove the old $workingdir"; exit 1; }
# And, finally, create the header file
xxd -i $romfsimg >$headerfile || { echo "xxd of $< failed" ; rm -f $romfsimg; exit 1 ; }
xxd -i ${romfsimg} | sed 's/unsigned/const unsigned/' >${headerfile} || \
{ echo "ERROR: xxd of $< failed" ; rm -f $romfsimg; exit 1 ; }
rm -f $romfsimg