[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] PATCH: linux-patch makefile target


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
  • From: Rik van Riel <riel@xxxxxxxxxx>
  • Date: Mon, 1 Nov 2004 15:15:28 -0500 (EST)
  • Delivery-date: Mon, 01 Nov 2004 20:31:15 +0000
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>

Summary: add linux-patch Makefile target

the patch below, together with the attached script, add a
Makefile target called "linux-patch", which automatically
generates a kernel patch that can be applied to a vanilla
Linux kernel tree to add Xen.

This is useful for people who want to add Xen to the kernel
package of a Linux distribution.


===== Makefile 1.51 vs edited =====
--- 1.51/Makefile       Sat Oct 23 13:50:04 2004
+++ edited/Makefile     Mon Nov  1 15:08:52 2004
@@ -75,7 +75,7 @@
        $(RM) -rf $(LINUX_TREES)
        echo $(LINUX_SRC) | grep -q bz2 && \
            tar -jxf $(LINUX_SRC) || tar -zxf $(LINUX_SRC)
-       mv linux-$(LINUX_VER) linux-$(LINUX_VER)-xen0
+       cp -al linux-$(LINUX_VER) linux-$(LINUX_VER)-xen0
        ( cd linux-$(LINUX_VER)-xen-sparse ; \
           ./mkbuildtree ../linux-$(LINUX_VER)-xen0 )
        cp -al linux-$(LINUX_VER)-xen0 linux-$(LINUX_VER)-xenU
@@ -86,6 +86,11 @@
           sed -e 's/^EXTRAVERSION.*/&-xenU/' Makefile >Mk.tmp ; \
           rm -f Makefile ; mv Mk.tmp Makefile )
 endif
+
+linux-$(LINUX_VER)-xen.patch: mk-linux-trees
+       ./xendiff linux-$(LINUX_VER) linux-$(LINUX_VER)-xen0 > 
linux-$(LINUX_VER)-xen.patch
+
+linux-patch: linux-$(LINUX_VER)-xen.patch
 
 # configure the specified linux tree
 CDIR = $(subst config-,linux-$(LINUX_VER)-,$@)

Attachment: xendiff
Description: Text document


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.