From: Junhwan Park Date: Fri, 21 Apr 2017 04:02:58 +0000 (+0900) Subject: examples/hello: apply builtin in Makefile X-Git-Tag: 1.1_Public_Release~597^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e120d1218773da7872d09f4f36288fea034d116;p=rtos%2Ftinyara.git examples/hello: apply builtin in Makefile I fixed examples/hello for builtin in Makefile Change-Id: I26d450c4815b9a7b4e74055843a7890755a13a3f Signed-off-by: Junhwan Park --- diff --git a/apps/examples/hello/Makefile b/apps/examples/hello/Makefile index 2333593..3088c13 100644 --- a/apps/examples/hello/Makefile +++ b/apps/examples/hello/Makefile @@ -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 $@