mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Create temp config in the same dir as target
Fixes case where SDK and app are on different mounts
This commit is contained in:
parent
f807d16310
commit
6380245d3d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user