[ofw] [PATCH] allow compilation in & outside of OFED src tree

Smith, Stan stan.smith at intel.com
Thu Apr 15 12:18:00 PDT 2010


Hi,
  Did you have an opinion on these patches?

Allow rdma_cm.c to compile (aka find getopt.c) in and outside of OFED src tree.
Makes it so rdma_cm.c can be used directly as an example instead of carrying around an example copy.

signed-off-by: stan smith <stan.smith at intel.com>

--- a/tests/perftest/rdma_bw/rdma_bw.c  Tue Apr 13 18:16:12 2010
+++ b/tests/perftest/rdma_bw/rdma_bw.c  Tue Apr 13 18:09:00 2010
@@ -36,7 +36,7 @@
 #include <winsock2.h>
 #include <time.h>

-#include "..\..\..\etc\user\getopt.c"
+#include "getopt.c"
 #include "perftest.h"
 #include <infiniband/verbs.h>
 #include <rdma/rdma_cma.h>


--- a/tests/perftest/rdma_bw/SOURCES    Thu Apr 15 12:13:27 2010
+++ b/tests/perftest/rdma_bw/SOURCES    Wed Apr 14 13:29:10 2010
@@ -15,7 +15,7 @@
 INCLUDES = ..;..\..\..\ulp\libibverbs\include;\
                   ..\..\..\ulp\librdmacm\include;\
                   ..\..\..\inc;..\..\..\inc\user;\
-                  ..\..\..\inc\user\linux
+                  ..\..\..\inc\user\linux;..\..\..\etc\user;

 TARGETLIBS =                                           \
        $(SDK_LIB_PATH)\kernel32.lib    \



More information about the ofw mailing list