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:
chao.an
2020-11-09 14:01:42 +08:00
committed by Xiang Xiao
parent 27932faf1a
commit f6cd23e9d2
+4
View File
@@ -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