From f6cd23e9d2cdc86ce135356ec3aef6abbd01ba5b Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 9 Nov 2020 14:01:42 +0800 Subject: [PATCH] sched/init: init the default home directory to environment Change-Id: Ib08a7702ce2256d48b210a70fa181591bbe8abe8 Signed-off-by: chao.an --- sched/init/nx_bringup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sched/init/nx_bringup.c b/sched/init/nx_bringup.c index 63f703b1a83..04d9ed8d267 100644 --- a/sched/init/nx_bringup.c +++ b/sched/init/nx_bringup.c @@ -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