From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: [PATCH] Specify the dom0 config file Date: Wed, 08 Oct 2008 15:10:46 +0100 Message-ID: <48ECBF66.6040008@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010101040004020102030305" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010101040004020102030305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Signed-off-by: Jean Guyader Cheers, -- Jean Guyader --------------010101040004020102030305 Content-Type: text/plain; name="use_specified_dom0_config_file.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="use_specified_dom0_config_file.patch" diff -r 78e98657021a buildconfigs/mk.linux-2.6-common --- a/buildconfigs/mk.linux-2.6-common Fri Oct 03 09:42:11 2008 +0100 +++ b/buildconfigs/mk.linux-2.6-common Wed Oct 08 15:10:30 2008 +0100 @@ -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 \ --------------010101040004020102030305 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------010101040004020102030305--