tools/mkromfsimg.sh: Use sed to add const to ROMFS declarations so that they like in FLASH not RAM.
This commit is contained in:
parent
9f0502f8ba
commit
626c28dc30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user