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

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

index 2333593..3088c13 100644 (file)
@@ -59,6 +59,7 @@ include $(APPDIR)/Make.defs
 APPNAME = hello
 PRIORITY = SCHED_PRIORITY_DEFAULT
 STACKSIZE = 2048
+THREADEXEC = TASH_EXECMD_SYNC
 
 # Hello, World! Example
 
@@ -128,8 +129,17 @@ install:
 
 endif
 
+ifeq ($(CONFIG_EXAMPLES_HELLO),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 $@