Explorar el Código

Create temp config in the same dir as target

Fixes case where SDK and app are on different mounts
Deomid Ryabkov hace 9 años
padre
commit
6380245d3d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/kconfig/confdata.c

+ 1 - 1
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;