diff options
author | Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com> | 2016-11-15 15:35:07 -0600 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-11-18 23:22:21 +0000 |
commit | 7f1c76f2bfdffa549c2fe026743e0e1e6e635262 (patch) | |
tree | 7aff57a4c1673f7d459b5117f37a61734e1c6a30 /scripts/kconfig/util.c | |
parent | 3e1d001f9b2ecce8c0a9d319610fb6cc051c75a1 (diff) |
win-build: Fixes a kconfig incompatibility for Windows
In windows systems the rename() function fails if the new name
of the original file corresponds to a file that already exists.
The fix removes the new file before renaming the original one.
Jira: ZEP-980
Change-Id: Ib3a43db86c0dd3fabb592f53ea7619eb5738bb65
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
Diffstat (limited to 'scripts/kconfig/util.c')
-rw-r--r-- | scripts/kconfig/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index 94f9c83e3..65f7052fb 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c @@ -72,6 +72,7 @@ int file_write_dep(const char *name) fprintf(out, "\n$(deps_config): ;\n"); fclose(out); + remove(name); rename("..config.tmp", name); return 0; } |