aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/Rules.mk
diff options
context:
space:
mode:
authorvhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>2005-12-08 08:57:55 +0000
committervhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>2005-12-08 08:57:55 +0000
commitdf5dc503db829979f913c45db53f5d32e47c8d72 (patch)
tree8ec669e6ba6b0a249befb35685f5f6d7fc78f9c8 /buildconfigs/Rules.mk
parentcc5c32ece6fc76a9f5c31e35c44da089496e1240 (diff)
downloadxen-df5dc503db829979f913c45db53f5d32e47c8d72.tar.gz
xen-df5dc503db829979f913c45db53f5d32e47c8d72.tar.bz2
xen-df5dc503db829979f913c45db53f5d32e47c8d72.zip
really fix mkpatches to work correctly.
unfortunately, add some code duplication in mkpatches area. Signed-off-by: Vincent Hanquez <vincent@xensource.com>
Diffstat (limited to 'buildconfigs/Rules.mk')
-rw-r--r--buildconfigs/Rules.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk
index 26ee89472b..61cd156027 100644
--- a/buildconfigs/Rules.mk
+++ b/buildconfigs/Rules.mk
@@ -110,7 +110,12 @@ endif
%-config:
$(MAKE) -f buildconfigs/mk.$* config
-linux-2.6-xen.patch: linux-$(LINUX_VER)-xen.patch
+linux-2.6-xen.patch: ref-linux-$(LINUX_VER)/.valid-ref
+ rm -rf tmp-$@
+ cp -al $(<D) tmp-$@
+ ( cd linux-2.6-xen-sparse && ./mkbuildtree ../tmp-$@ )
+ diff -Nurp $(<D) tmp-$@ > $@ || true
+ rm -rf tmp-$@
%-xen.patch: ref-%/.valid-ref
rm -rf tmp-$@