You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/04/15 08:52:28 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #793: boards/Board.mk: use genromfs to make romfs image

xiaoxiang781216 commented on a change in pull request #793: boards/Board.mk: use genromfs to make romfs image
URL: https://github.com/apache/incubator-nuttx/pull/793#discussion_r408683931
 
 

 ##########
 File path: boards/Board.mk
 ##########
 @@ -37,6 +37,27 @@
 
 -include $(TOPDIR)/Make.defs
 
+ifneq ($(RCSRCS)$(RCRAWS),)
+ETCDIR := etctmp
+ETCSRC := $(ETCDIR:%=%.c)
+
+CSRCS += $(ETCSRC)
+
+RCOBJS = $(RCSRCS:%=%$(OBJEXT))
+
+$(RCOBJS): %$(OBJEXT): %
+	$(call PREPROCESS, $<, $@)
+	$(Q) mkdir -p $(dir $(ETCDIR)$(DELIM)$<)
+	$(Q) cp -r $@ $(ETCDIR)$(DELIM)$<
+
+$(ETCSRC): $(shell find $(RCRAWS) -type l) $(RCOBJS)
+	$(foreach raw,$(RCRAWS), \
+		$(shell cp --parents -rfLp $(raw) $(ETCDIR)))
 
 Review comment:
   Fixed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services