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
c901181a39
commit
049616a651
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user