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:
parent
8d1931504a
commit
d7777d3bd5
3 changed files with 85 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue