From 1a4dc2afa01d2be327b0c864a7099cf65d159b3f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 31 Oct 2010 10:57:33 +0000 Subject: [PATCH] Works again. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2522 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 900d2a0d5..9054c6be2 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -585,7 +585,10 @@ EOF include/scsi/libsrp.h \ include/scsi/srp.h do - add_patch "ibmvstgt/in-tree-patches/${kernel_version}/$(basename $f).patch" $f + patch="ibmvstgt/in-tree-patches/${kernel_version}/$(basename $f).patch" + if [ -e "${patch}" ]; then + add_patch "${patch}" $f + fi done add_file "ibmvstgt/README" "Documentation/powerpc/ibmvstgt.txt" fi