aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/Rules.mk
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-19 13:39:59 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-19 13:39:59 +0100
commit3158496ec82f755fea8ea4037aa977c74ac04f89 (patch)
tree0969d4002a010ab48e1295b2a36affeea501ce59 /buildconfigs/Rules.mk
parent963785e3ee1eb58f9574170e79714c1329110e55 (diff)
downloadxen-3158496ec82f755fea8ea4037aa977c74ac04f89.tar.gz
xen-3158496ec82f755fea8ea4037aa977c74ac04f89.tar.bz2
xen-3158496ec82f755fea8ea4037aa977c74ac04f89.zip
Better fix to detect failed patch application when building
guest kernels. Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
Diffstat (limited to 'buildconfigs/Rules.mk')
-rw-r--r--buildconfigs/Rules.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/buildconfigs/Rules.mk b/buildconfigs/Rules.mk
index 2970945810..5b70d23508 100644
--- a/buildconfigs/Rules.mk
+++ b/buildconfigs/Rules.mk
@@ -80,11 +80,12 @@ clean::
rm -f patches/*/.makedep
ref-%/.valid-ref: pristine-%/.valid-pristine
+ set -e
rm -rf $(@D)
cp -al $(<D) $(@D)
- which patch || exit 1
- ([ -d patches/$* ] && \
- for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done) || true
+ if [ -d patches/$* ] ; then \
+ for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done ; \
+ fi
touch $@ # update timestamp to avoid rebuild
endif