@@ -617,7 +617,7 @@ add_subdirectory(providers/ipathverbs)
add_subdirectory(providers/rxe)
add_subdirectory(providers/rxe/man)
-add_subdirectory(ibdiags/libibmad/src)
+add_subdirectory(libibmad)
add_subdirectory(ibdiags/libibnetdisc/src)
add_subdirectory(ibdiags/libibnetdisc/man)
add_subdirectory(ibdiags/src)
similarity index 86%
rename from ibdiags/libibmad/src/CMakeLists.txt
rename to libibmad/CMakeLists.txt
@@ -1,6 +1,6 @@
publish_headers(infiniband
- ../include/infiniband/mad.h
- ../include/infiniband/mad_osd.h
+ mad.h
+ mad_osd.h
)
publish_internal_headers(util
similarity index 100%
rename from ibdiags/libibmad/src/bm.c
rename to libibmad/bm.c
similarity index 100%
rename from ibdiags/libibmad/src/cc.c
rename to libibmad/cc.c
similarity index 100%
rename from ibdiags/libibmad/src/dump.c
rename to libibmad/dump.c
similarity index 100%
rename from ibdiags/libibmad/src/fields.c
rename to libibmad/fields.c
similarity index 100%
rename from ibdiags/libibmad/src/gs.c
rename to libibmad/gs.c
similarity index 100%
rename from ibdiags/libibmad/src/iba_types.h
rename to libibmad/iba_types.h
similarity index 100%
rename from ibdiags/libibmad/src/libibmad.map
rename to libibmad/libibmad.map
similarity index 100%
rename from ibdiags/libibmad/src/mad.c
rename to libibmad/mad.c
similarity index 100%
rename from ibdiags/libibmad/include/infiniband/mad.h
rename to libibmad/mad.h
similarity index 100%
rename from ibdiags/libibmad/src/mad_internal.h
rename to libibmad/mad_internal.h
similarity index 100%
rename from ibdiags/libibmad/include/infiniband/mad_osd.h
rename to libibmad/mad_osd.h
similarity index 100%
rename from ibdiags/libibmad/src/portid.c
rename to libibmad/portid.c
similarity index 100%
rename from ibdiags/libibmad/src/register.c
rename to libibmad/register.c
similarity index 100%
rename from ibdiags/libibmad/src/resolve.c
rename to libibmad/resolve.c
similarity index 100%
rename from ibdiags/libibmad/src/rpc.c
rename to libibmad/rpc.c
similarity index 100%
rename from ibdiags/libibmad/src/sa.c
rename to libibmad/sa.c
similarity index 100%
rename from ibdiags/libibmad/src/serv.c
rename to libibmad/serv.c
similarity index 100%
rename from ibdiags/libibmad/src/smp.c
rename to libibmad/smp.c
similarity index 100%
rename from ibdiags/libibmad/src/vendor.c
rename to libibmad/vendor.c