Fix in-kernel build of ibcore module.
Requested by: Sobczak, Bartosz <bartosz.sobczak@intel.com> Sponsored by: Mellanox Technologies
This commit is contained in:
parent
c69c74b892
commit
17f313e53c
108
sys/conf/files
108
sys/conf/files
@ -4402,58 +4402,62 @@ compat/linuxkpi/common/src/linux_work.c optional compat_linuxkpi \
|
||||
compile-with "${LINUXKPI_C}"
|
||||
|
||||
# OpenFabrics Enterprise Distribution (Infiniband)
|
||||
ofed/drivers/infiniband/core/addr.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/agent.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/cache.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
# XXX Mad.c must be ordered before cm.c for sysinit sets to occur in
|
||||
# the correct order.
|
||||
ofed/drivers/infiniband/core/mad.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/cm.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/ -Wno-unused-function"
|
||||
ofed/drivers/infiniband/core/cma.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/device.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/fmr_pool.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/iwcm.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/mad_rmpp.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/multicast.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/packer.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/peer_mem.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/sa_query.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/smi.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/sysfs.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/ucm.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/ucma.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/ud_header.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/umem.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/user_mad.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/uverbs_cmd.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/uverbs_main.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/uverbs_marshall.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/verbs.c optional ofed \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/core/"
|
||||
ofed/drivers/infiniband/core/ib_addr.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_agent.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_cache.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_cm.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_cma.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_cq.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_device.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_fmr_pool.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_iwcm.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_iwpm_msg.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_iwpm_util.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_mad.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_mad_rmpp.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_multicast.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_packer.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_sa_query.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_smi.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_sysfs.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_ucm.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_ucma.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_ud_header.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_umem.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_user_mad.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_uverbs_cmd.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_uverbs_main.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_uverbs_marshall.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
ofed/drivers/infiniband/core/ib_verbs.c optional ofed \
|
||||
compile-with "${OFED_C}"
|
||||
|
||||
ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c optional ipoib \
|
||||
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/"
|
||||
|
@ -177,9 +177,10 @@ LINUXKPI_C= ${NORMAL_C} ${LINUXKPI_INCLUDES}
|
||||
|
||||
# Infiniband C flags. Correct include paths and omit errors that linux
|
||||
# does not honor.
|
||||
OFEDINCLUDES= -I$S/ofed/include ${LINUXKPI_INCLUDES}
|
||||
OFEDINCLUDES= -I$S/ofed/include -I$S/ofed/include/uapi ${LINUXKPI_INCLUDES}
|
||||
OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith
|
||||
OFEDCFLAGS= ${CFLAGS:N-I*} ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR}
|
||||
OFEDCFLAGS= ${CFLAGS:N-I*} -DCONFIG_INFINIBAND_USER_MEM \
|
||||
${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR}
|
||||
OFED_C_NOIMP= ${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR} ${PROF}
|
||||
OFED_C= ${OFED_C_NOIMP} ${.IMPSRC}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user