shell: support standalone commands

This will allow us to register commands directly without a need for a
module.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-01-15 11:15:47 -05:00 committed by Anas Nashif
commit d7777d3bd5
3 changed files with 85 additions and 14 deletions

View file

@ -102,7 +102,10 @@
#define SHELL_INIT_SECTIONS() \
__shell_module_start = .; \
KEEP(*(".shell_module_*")); \
__shell_module_end = .;
__shell_module_end = .; \
__shell_cmd_start = .; \
KEEP(*(".shell_cmd_*")); \
__shell_cmd_end = .; \
#ifdef CONFIG_APPLICATION_MEMORY