This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 39f174908f tools/gencromfs: add attribute to set minimum 4 bytes 
aignment for cromfs image data
39f174908f is described below

commit 39f174908fe176a2f1ad60eaf1c978652a00511f
Author: Petro Karashchenko <petro.karashche...@gmail.com>
AuthorDate: Tue May 31 15:40:50 2022 +0200

    tools/gencromfs: add attribute to set minimum 4 bytes aignment for cromfs 
image data
    
    Signed-off-by: Petro Karashchenko <petro.karashche...@gmail.com>
---
 tools/gencromfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/gencromfs.c b/tools/gencromfs.c
index b603d1ef0a..55189cb91f 100644
--- a/tools/gencromfs.c
+++ b/tools/gencromfs.c
@@ -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);
 

Reply via email to