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: linux-patch makefile target

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PATCH: linux-patch makefile target
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
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>