From 4b6ca9432b8dfde2e2376844a69dbb1eea6d8236 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Tue, 25 Jan 2022 11:03:51 +0800 Subject: [PATCH] board/Board.mk: Make romfs_img 4 byte aligned Signed-off-by: Huang Qi --- boards/Board.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/Board.mk b/boards/Board.mk index dafaf2841d..b1a5909c0e 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 " > $@ + $(Q) xxd -i romfs.img | sed -e "s/^unsigned char/const unsigned char aligned_data(4)/g" >> $@ $(Q) rm romfs.img endif