components/open-fabrics/libibverbs/Makefile
author qian.l.liu@oracle.com <qian.l.liu@oracle.com>
Mon, 06 Feb 2017 13:02:58 -0800
changeset 7646 80b442bd41f4
parent 5708 49b43e37ce26
child 7687 1093e2a9adbd
permissions -rw-r--r--
25478135 shipping a libibverbs lint library to ON
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
817
f45ca7242301 7154945 userland FMR and shared PD OFUV libraries support
Christophe Juhasz <Chris.Juhasz@Sun.COM>
parents: 800
diff changeset
     1
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     3
#
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     7
#
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    12
#
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    18
#
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    22
#
7646
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    24
#
5708
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    25
BUILD_BITS= 64
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    26
include ../ofed-component-macros.mk
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    27
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		libibverbs
5708
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    29
COMPONENT_VERSION=	1.1.8
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 636
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
5708
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    31
	sha256:7c766e679e1e6dbcb37bdfc624c64310787e3a380baf7ee1eebde39c6991828f
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    32
COMPONENT_ARCHIVE_URL= https://www.openfabrics.org/downloads/verbs/$(COMPONENT_ARCHIVE)
5624
8174ebe3b8ea 22959219 update open-fabrics BUGDB data
John Beck <John.Beck@Oracle.COM>
parents: 4661
diff changeset
    33
COMPONENT_BUGDB=	library/ofuv_lib
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    34
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    35
INSTALL_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    36
include ../ofed-component.mk
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    37
817
f45ca7242301 7154945 userland FMR and shared PD OFUV libraries support
Christophe Juhasz <Chris.Juhasz@Sun.COM>
parents: 800
diff changeset
    38
MAN3FILES =	ibv_alloc_shpd.3 \
f45ca7242301 7154945 userland FMR and shared PD OFUV libraries support
Christophe Juhasz <Chris.Juhasz@Sun.COM>
parents: 800
diff changeset
    39
		ibv_reg_mr_relaxed.3 \
1125
47a52afcc302 PSARC 2012/384 Fast IB node death detection
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 817
diff changeset
    40
		ibv_share_pd.3 \
47a52afcc302 PSARC 2012/384 Fast IB node death detection
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 817
diff changeset
    41
		ibv_gid_reachable.3 \
47a52afcc302 PSARC 2012/384 Fast IB node death detection
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 817
diff changeset
    42
		ibv_register_sm_events.3
817
f45ca7242301 7154945 userland FMR and shared PD OFUV libraries support
Christophe Juhasz <Chris.Juhasz@Sun.COM>
parents: 800
diff changeset
    43
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    44
include $(WS_MAKE_RULES)/shared-targets.mk
7646
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    45
include $(WS_MAKE_RULES)/lint-libraries.mk
817
f45ca7242301 7154945 userland FMR and shared PD OFUV libraries support
Christophe Juhasz <Chris.Juhasz@Sun.COM>
parents: 800
diff changeset
    46
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    47
# add flags to get at extra bits from other components' source trees
5708
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    48
CPPFLAGS +=	-I$(PWD)/../libmlx4/libmlx4-1.0.6/src
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    49
CPPFLAGS +=	-I$(PWD)/../librdmacm/librdmacm-1.0.21/include
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    50
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    51
LIBS +=	-lkstat
4661
353f8a998732 PSARC 2015/310 IBTF and OFUV updates
boris.chiu@oracle.com
parents: 4339
diff changeset
    52
5708
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    53
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/infiniband
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    54
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    55
# --disable-libcheck is not a supported option for this component
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    56
DISABLE_LIBCHECK=
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    57
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    58
COMPONENT_PREP_ACTION = \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    59
	cp ofa_solaris.h $(@D)/include/infiniband ; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    60
	cp solaris_compatibility.c $(@D)/src ; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    61
	cd ../libmlx4; gmake prep; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    62
	cd ../librdmacm; gmake prep
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    63
7646
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    64
# Userland lint-install code (lint-libraries.mk) would install llib-libverbs.ln
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    65
# to the directory 'build/prototype/$(MACH)/usr/lib/$(MACH64)',
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    66
# which doesn't exist and must be created manually to let the installation pass.
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    67
COMPONENT_PRE_INSTALL_ACTION = \
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    68
        $(MKDIR) $(BUILD_DIR)/prototype/$(MACH)/usr/lib/$(MACH64)
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    69
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    70
COMPONENT_POST_INSTALL_ACTION = \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    71
	$(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.$(BITS))/ibv_uc_pingpong; \
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    72
	$(RM) $(PROTOUSRSHAREMAN1DIR)/ibv_uc_pingpong.1 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    73
	$(PROTOUSRSHAREMAN3DIR)/ibv_reg_xrc_rcv_qp.3 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    74
	$(PROTOUSRSHAREMAN3DIR)/ibv_create_xrc_srq.3 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    75
	$(PROTOUSRSHAREMAN3DIR)/ibv_open_xrc_domain.3 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    76
	$(PROTOUSRSHAREMAN3DIR)/ibv_close_xrc_domain.3 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    77
	$(PROTOUSRSHAREMAN3DIR)/ibv_unreg_xrc_rcv_qp.3 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    78
	$(PROTOUSRSHAREMAN3DIR)/ibv_query_xrc_rcv_qp.3 \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5624
diff changeset
    79
	$(PROTOUSRSHAREMAN3DIR)/ibv_create_xrc_rcv_qp.3 \
7646
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    80
	$(PROTOUSRSHAREMAN3DIR)/ibv_modify_xrc_rcv_qp.3; \
80b442bd41f4 25478135 shipping a libibverbs lint library to ON
qian.l.liu@oracle.com <qian.l.liu@oracle.com>
parents: 5708
diff changeset
    81
	$(INSTALL) -c llib-libverbs $(PROTOUSRLIBDIR)/llib-libverbs
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    82
5708
49b43e37ce26 PSARC/2016/109 Solaris OFED (OFUV) Version 3.18 and other updates
boris.chiu@oracle.com
parents: 5682
diff changeset
    83
install:	$(INSTALL_64) $(PROTOMAN3FILES)
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    84