mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 11:28:22 +08:00
sched/init: init the default home directory to environment
Change-Id: Ib08a7702ce2256d48b210a70fa181591bbe8abe8 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -402,6 +402,10 @@ int nx_bringup(void)
|
||||
* by all of the threads created by the IDLE task.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_LIB_HOMEDIR
|
||||
setenv("PWD", CONFIG_LIB_HOMEDIR, 1);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PATH_INITIAL
|
||||
setenv("PATH", CONFIG_PATH_INITIAL, 1);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user