tools/gencromfs: add attribute to set minimum 4 bytes aignment for cromfs image data

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2022-05-31 15:40:50 +02:00 committed by Xiang Xiao
parent 3366f1fb35
commit 39f174908f
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ int main(int argc, char **argv, char **envp)
/* Now append the volume header to output file */
fprintf(g_outstream, "/* CROMFS image */\n\n");
fprintf(g_outstream, "const uint8_t g_cromfs_image[] =\n");
fprintf(g_outstream, "const uint8_t aligned_data(4) g_cromfs_image[] =\n");
fprintf(g_outstream, "{\n");
fprintf(g_outstream, " /* Offset %6lu: Volume header */\n\n", 0ul);