From 6380245d3db1373cfbfb456defbef11abf0050f9 Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Thu, 8 Dec 2016 19:36:21 +0000 Subject: [PATCH] Create temp config in the same dir as target Fixes case where SDK and app are on different mounts --- tools/kconfig/confdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kconfig/confdata.c b/tools/kconfig/confdata.c index dd243d2ab..1e3d1f35b 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;