In case we are compiling against a newer kernel then what the out-of-tree
is expecting, Output to the user that use of in-tree modules are recommended.

This will still fail the compilation. because we don't want to compile in that
case. But the user can see that this is an acceptable situation and he can 

[Mike, we could return with @exit 0 and let the Makefile attempt a compilation,
 but I think it is better this way?]

Signed-off-by: Boaz Harrosh <>
 kernel/Makefile |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/kernel/Makefile b/kernel/Makefile
index b29cfed..9bfd5db 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -101,6 +101,11 @@ linux_2_6_28: $(unpatch_code)
 linux_2_6_29: $(unpatch_code)
+linux_2_6_%: $(unpatch_code)
+       @echo "Compiling against:" $@
+       @echo "With new Kernels, use iscsi modules that came with the Kernel"
+       @exit 1
        echo "Un-patching source code for use with linux-2.6.14 and up ..."
        patch -R -E -p1 < $(cur_patched)

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to