[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] PATCH: linux-patch makefile target
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |