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:08 -06:00 committed by Gregory Nutt
parent c901181a39
commit 049616a651

View File

@ -70,6 +70,6 @@ genromfs -f ${romfsimg} -d ${fsdir} -V "NuttXBootVol" || { echo "genromfs failed
# And, finally, create the header file
xxd -i ${romfsimg} >${headerfile} || \
xxd -i ${romfsimg} | sed 's/unsigned/const unsigned/' >${headerfile} || \
{ echo "ERROR: xxd of $< failed" ; rm -f ${romfsimg}; exit 1 ; }
rm -f ${romfsimg}