diff --git a/srpt/README.ofed b/srpt/README.ofed index 624a1d9f2..a4725bf34 100644 --- a/srpt/README.ofed +++ b/srpt/README.ofed @@ -58,9 +58,8 @@ Remove any distro-provided InfiniBand drivers: Now locate the file Makefile.lib and patch it such that it supports the variable PRE_CFLAGS: - find /lib/modules/$(uname -r)/build/ -name Makefile.lib - cd ... - patch -p0 < ${SCST_DIR}/srpt/patches/kernel-${KV}-scripts-Makefile.lib.patch + cd $(dirname $(find /lib/modules/$(uname -r)/build/ -name Makefile.lib)) + patch -p1 < ${SCST_DIR}/srpt/patches/kernel-${KV}-scripts-Makefile.lib.patch Next, download and install the OFED package. Make sure to disable OFED's SRP target driver (srpt=n) and to enable at least the