WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Specify the dom0 config file

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Specify the dom0 config file
From: Jean Guyader <jean.guyader@xxxxxxxxxxxxx>
Date: Wed, 08 Oct 2008 15:10:46 +0100
Delivery-date: Wed, 08 Oct 2008 07:11:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)
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 <jean.guyader@xxxxxxxxxxxxx>

Cheers,

--
Jean Guyader
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 \
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Specify the dom0 config file, Jean Guyader <=