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:
Petro Karashchenko 2022-01-27 15:21:52 +02:00 committed by Xiang Xiao
parent 7c116efe05
commit 7b5af90565

View File

@ -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