mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
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:
committed by
Xiang Xiao
parent
7c116efe05
commit
7b5af90565
+2
-1
@@ -259,6 +259,7 @@ rm -rf $workingdir || { echo "Failed to remove the old $workingdir"; exit 1; }
|
|||||||
|
|
||||||
# And, finally, create the header file
|
# 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 ; }
|
{ echo "ERROR: xxd of $< failed" ; rm -f $romfsimg; exit 1 ; }
|
||||||
rm -f $romfsimg
|
rm -f $romfsimg
|
||||||
|
|||||||
Reference in New Issue
Block a user