summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorzbao <fishbaozi@gmail.com>2015-09-26 06:20:53 -0400
committerZheng Bao <zheng.bao@amd.com>2015-11-20 05:37:20 +0100
commit2f3fd2640f0630760497f59c6f5b137c1fb39e75 (patch)
treed6610fa38fdd58021dd28d77385abf5863ff7fac /util
parent37450ff5343ffa3326a3f23a8ae7448d48e14e3c (diff)
downloadcoreboot-2f3fd2640f0630760497f59c6f5b137c1fb39e75.tar.xz
util/kconfig: Set parameter of mkdir to only one for mingw.
The second parameter is to set file permissions for the directory, which is not needed in mingw. Change-Id: I88e317f075e8a39f0a280b3dd6e597d119f0f741 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/11723 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util')
-rw-r--r--util/kconfig/confdata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/kconfig/confdata.c b/util/kconfig/confdata.c
index a39a716f79..e58246369f 100644
--- a/util/kconfig/confdata.c
+++ b/util/kconfig/confdata.c
@@ -27,6 +27,10 @@ static int conf_lineno, conf_warnings, conf_unsaved;
const char conf_defname[] = "arch/$ARCH/defconfig";
+#ifdef __MINGW32__
+#define mkdir(_n,_p) mkdir((_n))
+#endif
+
static void conf_warning(const char *fmt, ...)
{
va_list ap;