[coreboot] v3 defconfig

Myles Watson myles at pel.cs.byu.edu
Thu Feb 7 00:48:35 CET 2008


I'd like to make buildrom support v3 in the same way that it supports
v2.  I don't want buildrom to keep config files if it can help it.

I thought it would be the best to support make defconfig in the same
way that the kernel does.  I'd like to be able to type make defconfig
CONFIG_MAINBOARD_NAME=emulation/qemu-i386 and have it do the right
thing.

This patch doesn't work unfortunately, and I don't know why.

Myles

Index: util/kconfig/symbol.c
===================================================================
--- util/kconfig/symbol.c	(revision 574)
+++ util/kconfig/symbol.c	(working copy)
@@ -54,6 +54,13 @@

 	uname(&uts);

+	sym = sym_lookup("MAINBOARDDIR", 0);
+	sym->type = S_STRING;
+	sym->flags |= SYMBOL_AUTO;
+	p = getenv("MAINBOARDDIR");
+	if (p)
+		sym_add_default(sym, p);
+
 	sym = sym_lookup("ARCH", 0);
 	sym->type = S_STRING;
 	sym->flags |= SYMBOL_AUTO;
Index: util/kconfig/confdata.c
===================================================================
--- util/kconfig/confdata.c	(revision 574)
+++ util/kconfig/confdata.c	(working copy)
@@ -22,7 +22,7 @@

 const char conf_def_filename[] = ".config";

-const char conf_defname[] = "arch/$ARCH/defconfig";
+const char conf_defname[] = "mainboard/$MAINBOARDDIR/defconfig";

 const char *conf_confnames[] = {
 	".config",




More information about the coreboot mailing list