examples/workqueue: apply builtin in Makefile
authorJunhwan Park <junhwan.park@samsung.com>
Fri, 21 Apr 2017 04:06:26 +0000 (13:06 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 14:00:38 +0000 (23:00 +0900)
I fixed examples/workqueue for builtin in Makefile.

Change-Id: I33420790afc02b9b46c390d61828e2a21e43679e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
apps/examples/workqueue/Makefile

index 8cf2d03..f41df59 100644 (file)
@@ -59,6 +59,7 @@ include $(APPDIR)/Make.defs
 APPNAME = workqueue
 PRIORITY = SCHED_PRIORITY_DEFAULT
 STACKSIZE = 2048
+THREADEXEC = TASH_EXECMD_SYNC
 
 ASRCS =
 CSRCS =
@@ -126,8 +127,17 @@ install:
 
 endif
 
+ifeq ($(CONFIG_EXAMPLES_WORKQUEUE),y)
+$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
+       $(call REGISTER,$(APPNAME),$(APPNAME)_main,$(THREADEXEC))
+
+context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
+
+else
 context:
 
+endif
+
 .depend: Makefile $(SRCS)
        @$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
        @touch $@