Mailing List Archive

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)-,$@)
Re: PATCH: linux-patch makefile target [ In reply to ]
> Summary: add linux-patch Makefile target

Rik,

I've been giving the build system a bit of an overhaul and will
push out a change set later on today that I believe will do
something roughly equivalent.

Let me know if it doesn't..

Thanks,
Ian


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel