[coreboot-gerrit] Patch set updated for coreboot: util/kconfig: Remove utsname for mingw
Zheng Bao (zheng.bao@amd.com)
gerrit at coreboot.org
Sat Nov 14 10:52:10 CET 2015
Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11724
-gerrit
commit 95c089d983bfd65091735d3d1e9345f8ef154736
Author: zbao <fishbaozi at gmail.com>
Date: Sat Sep 26 06:22:11 2015 -0400
util/kconfig: Remove utsname for mingw
Mingw doesn't have that this function.
Change-Id: I640ea61ff24fba812e3f10771dd7e468dcfc63dd
Signed-off-by: Zheng Bao <zheng.bao at amd.com>
Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
util/kconfig/symbol.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/util/kconfig/symbol.c b/util/kconfig/symbol.c
index 65ba465..99dc0db 100644
--- a/util/kconfig/symbol.c
+++ b/util/kconfig/symbol.c
@@ -7,7 +7,9 @@
#include <stdlib.h>
#include <string.h>
#include <regex.h>
+#ifndef __MINGW32__
#include <sys/utsname.h>
+#endif
#include "lkc.h"
@@ -45,19 +47,27 @@ static void sym_add_default(struct symbol *sym, const char *def)
void sym_init(void)
{
struct symbol *sym;
+#ifndef __MINGW32__
struct utsname uts;
+#endif
static bool inited = false;
if (inited)
return;
inited = true;
+#ifndef __MINGW32__
uname(&uts);
+#endif
sym = sym_lookup("UNAME_RELEASE", 0);
sym->type = S_STRING;
sym->flags |= SYMBOL_AUTO;
+#ifndef __MINGW32__
sym_add_default(sym, uts.release);
+#else
+ sym_add_default(sym, "mingw-unknow");
+#endif
}
enum symbol_type sym_get_type(struct symbol *sym)
More information about the coreboot-gerrit
mailing list