tools/mkromfsimg.sh: add attribute to set minimum 4 bytes aignment for romfs image data
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
7c116efe05
commit
7b5af90565
@ -259,6 +259,7 @@ rm -rf $workingdir || { echo "Failed to remove the old $workingdir"; exit 1; }
|
||||
|
||||
# And, finally, create the header file
|
||||
|
||||
xxd -i ${romfsimg} | sed 's/unsigned/const unsigned/' >${headerfile} || \
|
||||
echo '#include <nuttx/compiler.h>' >${headerfile}
|
||||
xxd -i ${romfsimg} | sed 's/^unsigned char/const unsigned char aligned_data(4)/g' >>${headerfile} || \
|
||||
{ echo "ERROR: xxd of $< failed" ; rm -f $romfsimg; exit 1 ; }
|
||||
rm -f $romfsimg
|
||||
|
Loading…
x
Reference in New Issue
Block a user