You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/01/25 13:49:17 UTC

[incubator-nuttx] branch master updated: board/Board.mk: Make romfs_img 4 byte aligned

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

pkarashchenko 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 4b6ca94  board/Board.mk: Make romfs_img 4 byte aligned
4b6ca94 is described below

commit 4b6ca9432b8dfde2e2376844a69dbb1eea6d8236
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Tue Jan 25 11:03:51 2022 +0800

    board/Board.mk: Make romfs_img 4 byte aligned
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 boards/Board.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/boards/Board.mk b/boards/Board.mk
index dafaf28..b1a5909 100644
--- a/boards/Board.mk
+++ b/boards/Board.mk
@@ -36,7 +36,8 @@ $(ETCSRC): $(RCRAWS) $(RCOBJS)
 	  $(shell mkdir -p $(dir $(ETCDIR)$(DELIM)$(raw))) \
 	  $(shell cp -rfp $(raw) $(ETCDIR)$(DELIM)$(raw)))
 	$(Q) genromfs -f romfs.img -d $(ETCDIR)$(DELIM)$(CONFIG_NSH_ROMFSMOUNTPT) -V "$(basename $<)"
-	$(Q) xxd -i romfs.img | sed -e "s/^unsigned/const unsigned/g" > $@
+	$(Q) echo "#include <nuttx/compiler.h>" > $@
+	$(Q) xxd -i romfs.img | sed -e "s/^unsigned char/const unsigned char aligned_data(4)/g" >> $@
 	$(Q) rm romfs.img
 endif