From: Deomid Ryabkov Date: Thu, 8 Dec 2016 19:36:21 +0000 (+0000) Subject: Create temp config in the same dir as target X-Git-Tag: v2.0-rc1~134^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6380245d3db1373cfbfb456defbef11abf0050f9;p=esp-idf Create temp config in the same dir as target Fixes case where SDK and app are on different mounts --- diff --git a/tools/kconfig/confdata.c b/tools/kconfig/confdata.c index dd243d2abd..1e3d1f35b2 100644 --- a/tools/kconfig/confdata.c +++ b/tools/kconfig/confdata.c @@ -771,7 +771,7 @@ int conf_write(const char *name) sprintf(newname, "%s%s", dirname, basename); env = getenv("KCONFIG_OVERWRITECONFIG"); if (!env || !*env) { - sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); + sprintf(tmpname, "%s.tmpconfig.%d", newname, (int)getpid()); out = fopen(tmpname, "w"); } else { *tmpname = 0;