Rework ofed build.
Aligns the build with the FreeBSD traditional approach to not build in contrib/, and to track inter-dependencies between libraries. With help from: bdrewery Reviewed by: bdrewery, hselasky Sponsored by: Mellanox Technologies MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15648
This commit is contained in:
parent
20efcfc602
commit
f39bffc62c
@ -274,9 +274,6 @@ SUBDIR+=sys usr.bin usr.sbin
|
||||
.if ${MK_TESTS} != "no"
|
||||
SUBDIR+= tests
|
||||
.endif
|
||||
.if ${MK_OFED} != "no"
|
||||
SUBDIR+=contrib/ofed
|
||||
.endif
|
||||
|
||||
# Local directories are built in parallel with the base system directories.
|
||||
# Users may insert a .WAIT directive at the beginning or elsewhere within
|
||||
@ -2462,24 +2459,16 @@ _lib_libradius= lib/libradius
|
||||
.endif
|
||||
|
||||
.if ${MK_OFED} != "no"
|
||||
#
|
||||
# The OFED libraries are built in four steps
|
||||
# as reflected below, due to interdependencies.
|
||||
#
|
||||
# NOTE: Depending on contrib/ofed/include is only needed for
|
||||
# the lib32 compat build.
|
||||
#
|
||||
_ofed_lib= \
|
||||
contrib/ofed/include \
|
||||
contrib/ofed/usr.lib/0 \
|
||||
contrib/ofed/usr.lib/1 \
|
||||
contrib/ofed/usr.lib/2 \
|
||||
contrib/ofed/usr.lib/3
|
||||
_prebuild_libs+= \
|
||||
lib/ofed/libibverbs \
|
||||
lib/ofed/libibmad \
|
||||
lib/ofed/libibumad \
|
||||
lib/ofed/complib \
|
||||
lib/ofed/libmlx5
|
||||
|
||||
contrib/ofed/usr.lib/0__L: contrib/ofed/include__L lib/libthr__L
|
||||
contrib/ofed/usr.lib/1__L: contrib/ofed/usr.lib/0__L
|
||||
contrib/ofed/usr.lib/2__L: contrib/ofed/usr.lib/1__L
|
||||
contrib/ofed/usr.lib/3__L: contrib/ofed/usr.lib/2__L
|
||||
lib/ofed/libibmad__L: lib/ofed/libibumad__L
|
||||
lib/ofed/complib__L: lib/libthr__L
|
||||
lib/ofed/libmlx5__L: lib/ofed/libibverbs__L lib/libthr__L
|
||||
.endif
|
||||
|
||||
.if ${MK_CASPER} != "no"
|
||||
@ -2490,7 +2479,7 @@ lib/libpjdlog__L: lib/libutil__L
|
||||
lib/libcasper__L: lib/libnv__L
|
||||
lib/liblzma__L: lib/libthr__L
|
||||
|
||||
_generic_libs= ${_cddl_lib} gnu/lib ${_kerberos5_lib} lib ${_secure_lib} usr.bin/lex/lib ${_ofed_lib}
|
||||
_generic_libs= ${_cddl_lib} gnu/lib ${_kerberos5_lib} lib ${_secure_lib} usr.bin/lex/lib
|
||||
.if ${MK_IPFILTER} != "no"
|
||||
_generic_libs+= sbin/ipf/libipf
|
||||
.endif
|
||||
|
@ -1,10 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# NOTE: Make sure WITH_OFED=YES is set when building this top-level directory.
|
||||
|
||||
SUBDIR= \
|
||||
include \
|
||||
usr.lib \
|
||||
usr.bin
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,4 +0,0 @@
|
||||
BINDIR?= /usr/bin
|
||||
CFLAGS+= -I${.CURDIR}/../../..
|
||||
LDFLAGS+= -libverbs -lmlx4 -lmlx5 -lcxgb4 -lpthread
|
||||
|
@ -1,3 +0,0 @@
|
||||
BINDIR?= /usr/bin
|
||||
CFLAGS+= -I${.CURDIR}/../../..
|
||||
LDFLAGS+= -libverbs -lrdmacm -lmlx4 -lmlx5 -lcxgb4 -lpthread
|
@ -1,11 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
../libibverbs/examples/build \
|
||||
../librdmacm/examples/build \
|
||||
../opensm/opensm \
|
||||
../infiniband-diags/build
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,8 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
../../libibverbs
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,14 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
../../librdmacm \
|
||||
../../libibmad \
|
||||
../../opensm/complib \
|
||||
../../opensm/libvendor \
|
||||
../../libcxgb4 \
|
||||
../../libmlx4 \
|
||||
../../libmlx5
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,10 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
../../libibnetdisc \
|
||||
../../opensm/libopensm \
|
||||
../../../../lib/libpcap
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,8 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# NOTE: If building outside the buildworld target, install each subdirectory
|
||||
# before building the next one.
|
||||
|
||||
SUBDIR=0 1 2 3
|
||||
|
||||
.include <bsd.subdir.mk>
|
14
lib/Makefile
14
lib/Makefile
@ -67,7 +67,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \
|
||||
libopie \
|
||||
libpam \
|
||||
libpathconv \
|
||||
${_libpcap} \
|
||||
libpcap \
|
||||
libpjdlog \
|
||||
${_libproc} \
|
||||
libprocstat \
|
||||
@ -124,6 +124,9 @@ SUBDIR_DEPEND_libtacplus= libmd
|
||||
SUBDIR_DEPEND_libulog= libmd
|
||||
SUBDIR_DEPEND_libunbound= ${_libldns}
|
||||
SUBDIR_DEPEND_liblzma= ${_libthr}
|
||||
.if ${MK_OFED} != "no"
|
||||
SUBDIR_DEPEND_libpcap= ofed
|
||||
.endif
|
||||
|
||||
# NB: keep these sorted by MK_* knobs
|
||||
|
||||
@ -184,14 +187,6 @@ SUBDIR.${MK_PMC}+= libipt
|
||||
SUBDIR.${MK_BHYVE}+= libvmmapi
|
||||
.endif
|
||||
|
||||
.if ${MK_OFED} == "no"
|
||||
#
|
||||
# When OFED is enabled libpcap is built as part of
|
||||
# OFED due to library dependencies
|
||||
#
|
||||
_libpcap= libpcap
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} != "sparc64"
|
||||
_libproc= libproc
|
||||
_librtld_db= librtld_db
|
||||
@ -212,6 +207,7 @@ SUBDIR.${MK_TESTS_SUPPORT}+= atf
|
||||
SUBDIR.${MK_TESTS}+= tests
|
||||
SUBDIR.${MK_UNBOUND}+= libunbound
|
||||
SUBDIR.${MK_USB}+= libusbhid libusb
|
||||
SUBDIR.${MK_OFED}+= ofed
|
||||
|
||||
.if !make(install)
|
||||
SUBDIR_PARALLEL=
|
||||
|
30
lib/ofed/Makefile
Normal file
30
lib/ofed/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
include \
|
||||
libibverbs \
|
||||
libibcm \
|
||||
libibumad \
|
||||
librdmacm \
|
||||
libibmad \
|
||||
complib \
|
||||
libvendor \
|
||||
libcxgb4 \
|
||||
libmlx4 \
|
||||
libmlx5 \
|
||||
libibnetdisc \
|
||||
libopensm
|
||||
|
||||
SUBDIR_DEPEND_libibcm= libibverbs
|
||||
SUBDIR_DEPEND_librdmacm= libibverbs
|
||||
SUBDIR_DEPEND_libibmad= libibumad
|
||||
SUBDIR_DEPEND_libvendor= libibumad
|
||||
SUBDIR_DEPEND_libcxgb4= libibverbs
|
||||
SUBDIR_DEPEND_libmlx4= libibverbs
|
||||
SUBDIR_DEPEND_libmlx5= libibverbs
|
||||
SUBDIR_DEPEND_libibnetdisc= libibmad libibumad complib
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
1
lib/ofed/Makefile.inc
Normal file
1
lib/ofed/Makefile.inc
Normal file
@ -0,0 +1 @@
|
||||
# $FreeBSD$
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/opensm/complib
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= osmcomp
|
||||
@ -26,9 +27,9 @@ cl_timer.c \
|
||||
cl_vector.c \
|
||||
ib_statustext.c
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${_spath}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
||||
LIBADD= pthread
|
||||
VERSION_MAP= ${.CURDIR}/libosmcomp.map
|
||||
VERSION_MAP= ${_spath}/libosmcomp.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,20 +1,21 @@
|
||||
# $FreeBSD$
|
||||
|
||||
IBVERBS= ${.CURDIR}/../libibverbs
|
||||
IBMAD= ${.CURDIR}/../libibmad
|
||||
IBUMAD= ${.CURDIR}/../libibumad
|
||||
IBCM= ${.CURDIR}/../libibcm
|
||||
IBND= ${.CURDIR}/../libibnetdisc
|
||||
RDMACM= ${.CURDIR}/../librdmacm
|
||||
RDMA= ${.CURDIR}/../../../sys/ofed/include/uapi/rdma
|
||||
OSM= ${.CURDIR}/../opensm/include
|
||||
OFEDINCS= ${SRCTOP}/contrib/ofed/include
|
||||
IBVERBS= ${SRCTOP}/contrib/ofed/libibverbs
|
||||
IBMAD= ${SRCTOP}/contrib/ofed/libibmad
|
||||
IBUMAD= ${SRCTOP}/contrib/ofed/libibumad
|
||||
IBCM= ${SRCTOP}/contrib/ofed/libibcm
|
||||
IBND= ${SRCTOP}/contrib/ofed/libibnetdisc
|
||||
RDMACM= ${SRCTOP}/contrib/ofed/librdmacm
|
||||
RDMA= ${SRCTOP}/sys/ofed/include/uapi/rdma
|
||||
OSM= ${SRCTOP}/contrib/ofed/opensm/include
|
||||
|
||||
IBINCS= \
|
||||
byteorder.h \
|
||||
byteswap.h \
|
||||
endian.h \
|
||||
types.h \
|
||||
udma_barrier.h \
|
||||
${OFEDINCS}/byteorder.h \
|
||||
${OFEDINCS}/byteswap.h \
|
||||
${OFEDINCS}/endian.h \
|
||||
${OFEDINCS}/types.h \
|
||||
${OFEDINCS}/udma_barrier.h \
|
||||
${IBVERBS}/arch.h \
|
||||
${IBVERBS}/driver.h \
|
||||
${IBVERBS}/kern-abi.h \
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/libcxgb4
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= cxgb4
|
||||
@ -14,6 +15,6 @@ qp.c \
|
||||
verbs.c
|
||||
|
||||
LIBADD= ibverbs pthread
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
CFLAGS+= -I${_spath}
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/libibcm
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= ibcm
|
||||
@ -8,8 +9,8 @@ SHLIB_MAJOR= 1
|
||||
MK_PROFILE= no
|
||||
SRCS= cm.c
|
||||
LIBADD= ibverbs
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
CFLAGS+= -I${_spath}
|
||||
MAN=
|
||||
VERSION_MAP= ${.CURDIR}/libibcm.map
|
||||
VERSION_MAP= ${_spath}/libibcm.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/libibmad
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= ibmad
|
||||
@ -25,8 +26,8 @@ vendor.c
|
||||
|
||||
LIBADD= ibumad
|
||||
CFLAGS+= -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
VERSION_MAP= ${.CURDIR}/libibmad.map
|
||||
CFLAGS+= -I${_spath}
|
||||
VERSION_MAP= ${_spath}/libibmad.map
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
.include <src.opts.mk>
|
||||
|
||||
.PATH: ${.CURDIR} ${.CURDIR}/man
|
||||
_spath= ${SRCTOP}/contrib/ofed/libibnetdisc
|
||||
.PATH: ${_spath} ${_spath}/man
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB_CXX= ibnetdisc
|
||||
@ -28,11 +29,11 @@ ibnd_show_progress.3
|
||||
|
||||
LIBADD= osmcomp ibmad ibumad
|
||||
CFLAGS+= -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
CFLAGS+= -I${_spath}
|
||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
||||
.if ${COMPILER_FEATURES:Mc++11}
|
||||
CXXFLAGS+= -std=c++11
|
||||
.endif
|
||||
VERSION_MAP= ${.CURDIR}/libibnetdisc.map
|
||||
VERSION_MAP= ${_spath}/libibnetdisc.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/libibumad
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= ibumad
|
||||
@ -10,7 +11,7 @@ SRCS= \
|
||||
umad.c \
|
||||
umad_str.c \
|
||||
sysfs.c
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
VERSION_MAP= ${.CURDIR}/libibumad.map
|
||||
CFLAGS+= -I${_spath}
|
||||
VERSION_MAP= ${_spath}/libibumad.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,14 +1,15 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR} ${.CURDIR}/man
|
||||
_spath= ${SRCTOP}/contrib/ofed/libibverbs
|
||||
.PATH: ${_spath} ${_spath}/man
|
||||
|
||||
LIB= ibverbs
|
||||
SHLIB_MAJOR= 1
|
||||
SHLIBDIR?= /usr/lib
|
||||
MK_PROFILE= no
|
||||
VERSION_MAP= ${.CURDIR}/libibverbs.map
|
||||
VERSION_MAP= ${_spath}/libibverbs.map
|
||||
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
CFLAGS+= -I${_spath}
|
||||
|
||||
SRCS= \
|
||||
cmd.c \
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/libmlx4
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= mlx4
|
||||
@ -17,6 +18,6 @@ srq.c \
|
||||
verbs.c
|
||||
|
||||
LIBADD= ibverbs pthread
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
CFLAGS+= -I${_spath}
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/libmlx5
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= mlx5
|
||||
@ -17,8 +18,8 @@ srq.c \
|
||||
verbs.c
|
||||
|
||||
LIBADD= ibverbs pthread
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
VERSION_MAP= ${.CURDIR}/libmlx5.map
|
||||
CFLAGS+= -I${_spath}
|
||||
VERSION_MAP= ${_spath}/libmlx5.map
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../opensm
|
||||
_spath= ${SRCTOP}/contrib/ofed/opensm/opensm
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= opensm
|
||||
@ -13,8 +14,8 @@ osm_mad_pool.c \
|
||||
osm_helper.c
|
||||
|
||||
LIBADD= pthread
|
||||
CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${_spath} -I${_spath}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
||||
VERSION_MAP= ${.CURDIR}/../opensm/libopensm.map
|
||||
VERSION_MAP= ${_spath}/libopensm.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,12 +1,13 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR} ${.CURDIR}/man
|
||||
_spath= ${SRCTOP}/contrib/ofed/librdmacm
|
||||
.PATH: ${_spath} ${_spath}/man
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= rdmacm
|
||||
SHLIB_MAJOR= 1
|
||||
MK_PROFILE= no
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
CFLAGS+= -I${_spath}
|
||||
|
||||
SRCS= \
|
||||
acm.c \
|
||||
@ -66,6 +67,6 @@ rdma_resolve_route.3 \
|
||||
rdma_set_option.3
|
||||
|
||||
LIBADD= ibverbs
|
||||
VERSION_MAP= ${.CURDIR}/librdmacm.map
|
||||
VERSION_MAP= ${_spath}/librdmacm.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}
|
||||
_spath= ${SRCTOP}/contrib/ofed/opensm/libvendor
|
||||
.PATH: ${_spath}
|
||||
|
||||
SHLIBDIR?= /usr/lib
|
||||
LIB= osmvendor
|
||||
@ -12,8 +13,8 @@ osm_vendor_ibumad.c \
|
||||
osm_vendor_ibumad_sa.c
|
||||
|
||||
LIBADD= ibumad pthread
|
||||
CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${_spath}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
||||
VERSION_MAP= ${.CURDIR}/libosmvendor.map
|
||||
VERSION_MAP= ${_spath}/libosmvendor.map
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -492,18 +492,18 @@ LIBZFS_COREDIR= ${OBJTOP}/cddl/lib/libzfs_core
|
||||
LIBZPOOLDIR= ${OBJTOP}/cddl/lib/libzpool
|
||||
|
||||
# OFED support
|
||||
LIBCXGB4DIR= ${OBJTOP}/contrib/ofed/libcxgb4
|
||||
LIBIBCMDIR= ${OBJTOP}/contrib/ofed/libibcm
|
||||
LIBIBMADDIR= ${OBJTOP}/contrib/ofed/libibmad
|
||||
LIBIBNETDISCDIR=${OBJTOP}/contrib/ofed/libibnetdisc
|
||||
LIBIBUMADDIR= ${OBJTOP}/contrib/ofed/libibumad
|
||||
LIBIBVERBSDIR= ${OBJTOP}/contrib/ofed/libibverbs
|
||||
LIBMLX4DIR= ${OBJTOP}/contrib/ofed/libmlx4
|
||||
LIBMLX5DIR= ${OBJTOP}/contrib/ofed/libmlx5
|
||||
LIBRDMACMDIR= ${OBJTOP}/contrib/ofed/librdmacm
|
||||
LIBOSMCOMPDIR= ${OBJTOP}/contrib/ofed/opensm/complib
|
||||
LIBOPENSMDIR= ${OBJTOP}/contrib/ofed/opensm/libopensm
|
||||
LIBOSMVENDORDIR=${OBJTOP}/contrib/ofed/opensm/libvendor
|
||||
LIBCXGB4DIR= ${OBJTOP}/lib/ofed/libcxgb4
|
||||
LIBIBCMDIR= ${OBJTOP}/lib/ofed/libibcm
|
||||
LIBIBMADDIR= ${OBJTOP}/lib/ofed/libibmad
|
||||
LIBIBNETDISCDIR=${OBJTOP}/lib/ofed/libibnetdisc
|
||||
LIBIBUMADDIR= ${OBJTOP}/lib/ofed/libibumad
|
||||
LIBIBVERBSDIR= ${OBJTOP}/lib/ofed/libibverbs
|
||||
LIBMLX4DIR= ${OBJTOP}/lib/ofed/libmlx4
|
||||
LIBMLX5DIR= ${OBJTOP}/lib/ofed/libmlx5
|
||||
LIBRDMACMDIR= ${OBJTOP}/lib/ofed/librdmacm
|
||||
LIBOSMCOMPDIR= ${OBJTOP}/lib/ofed/complib
|
||||
LIBOPENSMDIR= ${OBJTOP}/lib/ofed/libopensm
|
||||
LIBOSMVENDORDIR=${OBJTOP}/lib/ofed/libvendor
|
||||
|
||||
LIBDIALOGDIR= ${OBJTOP}/gnu/lib/libdialog
|
||||
LIBGCOVDIR= ${OBJTOP}/gnu/lib/libgcov
|
||||
|
@ -292,6 +292,7 @@ SUBDIR.${MK_UTMPX}+= users
|
||||
SUBDIR.${MK_UTMPX}+= who
|
||||
SUBDIR.${MK_SVN}+= svn
|
||||
SUBDIR.${MK_SVNLITE}+= svn
|
||||
SUBDIR.${MK_OFED}+= ofed
|
||||
|
||||
# These are normally only handled for build-tools.
|
||||
.if make(clean*)
|
||||
|
@ -1,8 +1,10 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
../../libibcm \
|
||||
../../libibumad
|
||||
libibverbs \
|
||||
librdmacm \
|
||||
opensm \
|
||||
infiniband-diags
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
@ -1,12 +1,12 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../../src ${.CURDIR}/../../man
|
||||
_spath= ${SRCTOP}/contrib/ofed/infiniband-diags
|
||||
.PATH: ${_spath}/src ${_spath}/man
|
||||
|
||||
BINDIR?= /usr/bin
|
||||
SRCS+= ibdiag_common.c ibdiag_sa.c
|
||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
||||
CFLAGS+= -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${.CURDIR}/../../
|
||||
CFLAGS+= -I${.CURDIR}/../../src
|
||||
CFLAGS+= -I${_spath} -I${_spath}/src
|
||||
LIBADD+= osmcomp ibmad ibumad
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= \
|
||||
asyncwatch \
|
||||
devinfo \
|
9
usr.bin/ofed/libibverbs/Makefile.inc
Normal file
9
usr.bin/ofed/libibverbs/Makefile.inc
Normal file
@ -0,0 +1,9 @@
|
||||
# $FreeBSD$
|
||||
|
||||
_spath=${SRCTOP}/contrib/ofed/libibverbs
|
||||
.PATH: ${_spath}/examples ${_spath}/man
|
||||
|
||||
BINDIR?= /usr/bin
|
||||
CFLAGS+= -I${_spath}
|
||||
LIBADD+= ibverbs mlx4 mlx5 cxgb4 pthread
|
||||
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_asyncwatch
|
||||
MAN= ibv_asyncwatch.1
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_devices
|
||||
MAN= ibv_devices.1
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_devinfo
|
||||
MAN= ibv_devinfo.1
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_rc_pingpong
|
||||
MAN= ibv_rc_pingpong.1
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_srq_pingpong
|
||||
MAN= ibv_srq_pingpong.1
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_uc_pingpong
|
||||
MAN= ibv_uc_pingpong.1
|
@ -1,5 +1,4 @@
|
||||
# $FreeBSD$
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ibv_ud_pingpong
|
||||
MAN= ibv_ud_pingpong.1
|
8
usr.bin/ofed/librdmacm/Makefile.inc
Normal file
8
usr.bin/ofed/librdmacm/Makefile.inc
Normal file
@ -0,0 +1,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
_spath=${SRCTOP}/contrib/ofed/librdmacm
|
||||
.PATH: ${_spath}/examples ${_spath}/man
|
||||
|
||||
BINDIR?= /usr/bin
|
||||
CFLAGS+= -I${SRCTOP}/contrib/ofed
|
||||
LIBADD+= ibverbs rdmacm mlx4 mlx5 cxgb4 pthread
|
@ -1,7 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= mckey
|
||||
MAN= mckey.1
|
||||
SRCS= mckey.c
|
@ -1,7 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= rping
|
||||
MAN= rping.1
|
||||
SRCS= rping.c common.c
|
@ -1,7 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= ucmatose
|
||||
MAN= ucmatose.1
|
||||
SRCS= cmatose.c common.c
|
@ -1,7 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
|
||||
|
||||
PROG= udaddy
|
||||
MAN= udaddy.1
|
||||
SRCS= udaddy.c common.c
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR} ${.CURDIR}/../man
|
||||
_spath= ${SRCTOP}/contrib/ofed/opensm/opensm
|
||||
.PATH: ${_spath} ${_spath:H}/man
|
||||
|
||||
BINDIR?= /usr/bin
|
||||
PROG= opensm
|
||||
@ -94,7 +95,7 @@ osm_vl_arb_rcv.c \
|
||||
st.c
|
||||
|
||||
MAN= opensm.8
|
||||
CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${_spath:H} -DHAVE_CONFIG_H=1
|
||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
||||
LIBADD= opensm osmvendor osmcomp wrap pthread
|
||||
|
Loading…
Reference in New Issue
Block a user