Skip to contentSkip to conversation

Specify the dom0 config file

PATCH New Jean Guyader 1 participant 1 message Oct 8, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Specify the dom0 config file

Hi,

Here a small patch to use a given dom0 config file for the dom0 kernel compilation. The env variable XEN_LINUX_CONFIG is used to specify this file.

Cheers,

Signature · 1 line
Jean Guyader
buildconfigs/mk.linux-2.6-common +3 -1
diff -r 78e98657021a buildconfigs/mk.linux-2.6-common
@@ -75,7 +75,9 @@
 	# tree. Finally attempt to use make defconfig.
 	set -e ; \
 	CONFIG_VERSION=$$(sed -ne 's/$$(XENGUEST)//; s/^EXTRAVERSION = //p' $(LINUX_SRCDIR)/Makefile); \
-	if [ -r $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) ] ; then \
+	if [ ! -z "$(XEN_LINUX_CONFIG)" -a -r $(XEN_LINUX_CONFIG) ]; then \
+	  cp $(XEN_LINUX_CONFIG) $(CONFIG_FILE); \
+	elif [ -r $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) ] ; then \
 	  cp $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) $(CONFIG_FILE) ; \
         elif [ -e $(LINUX_SRCDIR)/buildconfigs/create_config.sh ] ; then \
 	  cd $(LINUX_SRCDIR) && sh buildconfigs/create_config.sh \

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel