From a41e4ea1b5ec5ba75ec106be655f169910dcc264 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 3 Sep 2014 09:12:08 +0000 Subject: [PATCH] srpt/README: Fix SLES patch instructions (merge r5682 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5746 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/README.ofed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/README.ofed b/srpt/README.ofed index 42a5d577e..788b8b941 100644 --- a/srpt/README.ofed +++ b/srpt/README.ofed @@ -61,7 +61,7 @@ the variable PRE_CFLAGS: if [ -e /lib/modules/$(uname -r)/build/scripts/Makefile.lib ]; then cd /lib/modules/$(uname -r)/build else - cd /usr/src/linux-$(uname -r) + cd /usr/src/linux-$(uname -r | sed 's/\(-default\|-trace\|-xen\)$//;s/\.[0-9]\+\.[0-9]\+\.[0-9]\+\.PTF$//') fi patch -p1 < ${SCST_DIR}/srpt/patches/kernel-${KV}-pre-cflags.patch