xiaoxiang781216 commented on a change in pull request #1271:
URL: https://github.com/apache/incubator-nuttx/pull/1271#discussion_r442605091



##########
File path: syscall/Makefile
##########
@@ -76,27 +88,43 @@ $(BIN1): $(PROXY_OBJS)
 $(BIN2): $(STUB_OBJS)
        $(call ARCHIVE, $@, $(STUB_OBJS))
 
+$(BIN3): $(WRAP_OBJS)
+       $(call ARCHIVE, $@, $(WRAP_OBJS))
+
+$(SYSCALLIST): .context
+
 .depend: Makefile $(SRCS)
-       $(Q) $(MKDEP) $(PROXYDEPPATH) $(STUBDEPPATH) \
+       $(Q) $(MKDEP) $(PROXYDEPPATH) $(STUBDEPPATH) $(WRAPDEPPATH) \
          "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
        $(Q) touch $@
 
 depend: .depend
 
 .context: syscall.csv
        $(Q) $(MAKE) -C $(TOPDIR)$(DELIM)tools -f Makefile.host mksyscall
+ifeq ($(CONFIG_LIB_SYSCALL),y)

Review comment:
       The hook and syscall in flat build is mutual exclusive in the current 
implementation, but the syscall is also useful even in the flat build. How 
about we always use wrap mechanism for hook in all three build mode? The 
benefit is that:
   1.The desgin and implementation is more simple
   2.The hook and syscall can free combination




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to