If no .config exists, then default to qemu for defconfig targets. As a further extension, I think we should consider allowing the user to pass the desired mainboard via an environment variable:

make MAINBOARD=amd/db800 defconfig

Jordan
[PATCH] coreboot-v3:  Default to QEMU

In the absence of any .config, 'make defconfig' fails.  If no other
indication is provided, then default to the QEMU default configuration.

Signed-off-by: Jordan Crouse <[EMAIL PROTECTED]>
Index: coreboot-v3/Makefile
===================================================================
--- coreboot-v3.orig/Makefile	2008-12-02 09:34:04.000000000 -0700
+++ coreboot-v3/Makefile	2008-12-02 09:41:54.000000000 -0700
@@ -61,6 +61,13 @@
 KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
 export KERNELVERSION
 
+ifeq ($(strip $(CONFIG_MAINBOARD_DIR)),)
+MAINBOARDDIR=emulation/qemu-x86
+else
+MAINBOARDDIR=$(shell echo $(CONFIG_MAINBOARD_DIR))
+endif
+export MAINBOARDDIR
+
 include $(shell $(src)/util/xcompile/xcompile > $(src)/.xcompile || \
 	{ echo "complete\\ toolchain" && rm -f $(src)/.xcompile && exit 1; }; echo $(src)/.xcompile)
 
@@ -81,8 +88,7 @@
 	$(Q)printf "  DONE\n"
 
 ARCH:=$(shell echo $(CONFIG_ARCH))
-MAINBOARDDIR=$(shell echo $(CONFIG_MAINBOARD_DIR))
-export MAINBOARDDIR
+
 
 COREBOOTINCLUDE    :=   -I$(src) -Iinclude \
 			-I$(src)/include \
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to