Remove .context kludge from apps/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5455 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
da5eff8f12
commit
fc8b6759b7
@ -3349,11 +3349,7 @@ int hello_main(int argc, char *argv[])
|
|||||||
</p>
|
</p>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
And finally, the <code>apps/examples/Makefile</code>will execute the <i>context</i> target in all configured <code>example</code>sub-directores, getting us finally to <code>apps/examples/Makefile</code> (which is covered below).</p>
|
And finally, the <code>apps/examples/Makefile</code> will execute the <i>context</i> target in all configured <code>example</code>sub-directores, getting us finally to <code>apps/examples/Makefile</code> which is covered below.</p>
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
At the conclusion of the <i>context</i> phase, the <code> apps/Makefile</code> will touch a file called <code>.context</code> in the <code>apps/</code> directory, preventing any further configurations during any subsequent <i>context</i> phase build attempts.
|
|
||||||
</p>
|
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -3417,9 +3413,8 @@ STACKSIZE = 2048
|
|||||||
When the <code>hello</code> command is executed, it will start the task with entry point <code>hello_main()</code> with the default priority and with a stack size of 2K.
|
When the <code>hello</code> command is executed, it will start the task with entry point <code>hello_main()</code> with the default priority and with a stack size of 2K.
|
||||||
</p>
|
</p>
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
.context:
|
context:
|
||||||
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
|
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
|
||||||
@touch $@
|
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
@ -85,11 +85,14 @@ libboard$(LIBEXT): $(OBJS)
|
|||||||
|
|
||||||
# Register application
|
# Register application
|
||||||
|
|
||||||
.context:
|
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
|
||||||
|
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(TOPDIR)$(DELIM).config Makefile
|
||||||
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
|
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
|
||||||
$(Q) touch $@
|
|
||||||
|
|
||||||
context: .context
|
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
|
||||||
|
else
|
||||||
|
context:
|
||||||
|
endif
|
||||||
|
|
||||||
# Create dependencies
|
# Create dependencies
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user