mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f
.
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
|
||||
#undef HAVE_NSH_COMMAND
|
||||
#if (defined(CONFIG_SYSTEM_SYSTEM) || defined(CONFIG_SYSTEM_POPEN)) && \
|
||||
defined(CONFIG_BUILD_LOADABLE)
|
||||
defined(CONFIG_BUILD_KERNEL)
|
||||
# define HAVE_NSH_COMMAND 1
|
||||
#endif
|
||||
|
||||
@@ -264,7 +264,7 @@ static int nsh_task(void)
|
||||
* Name: nsh_main
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_BUILD_LOADABLE
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
int main(int argc, FAR char *argv[])
|
||||
#else
|
||||
int nsh_main(int argc, char *argv[])
|
||||
@@ -277,7 +277,7 @@ int nsh_main(int argc, char *argv[])
|
||||
* 2) As a single command processor. In this case, the single command is
|
||||
* is provided in argv[1].
|
||||
*
|
||||
* NOTE: The latter mode is only available if CONFIG_BUILD_LOADABLE=y. In
|
||||
* NOTE: The latter mode is only available if CONFIG_BUILD_KERNEL=y. In
|
||||
* that cause, this main() function will be build as a process. The process
|
||||
* will be started with a command by the implementations of the system() and
|
||||
* popen() interfaces.
|
||||
|
Reference in New Issue
Block a user