369N/A
369N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
5680N/A
5680N/A#
5622N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
369N/A#
5706N/ABUILD_BITS= 64
5680N/Ainclude ../ofed-component-macros.mk
369N/A
369N/ACOMPONENT_NAME= infiniband-diags
5706N/ACOMPONENT_VERSION= 1.6.5
844N/ACOMPONENT_ARCHIVE_HASH= \
5706N/A sha256:53c4ffbc74bec30ea7fdba7bad957b557c6ee6759e337d0a130c1b0817f51307
5706N/ACOMPONENT_ARCHIVE_URL= https://www.openfabrics.org/downloads/management/$(COMPONENT_ARCHIVE)
5622N/ACOMPONENT_BUGDB= utility/ofuv_tools
369N/A
5680N/AINSTALL_TARGET=
5680N/Ainclude ../ofed-component.mk
369N/A
5680N/ACFLAGS += -I$(PROTOUSRINCDIR)/infiniband
369N/A
5803N/ALIBS += -lopensm -losmvendor -losmcomp -libumad -libmad -libverbs -lglib-2.0
369N/A
369N/ACOMPONENT_PREP_ACTION = \
369N/A cp solaris_set_nodedesc.c $(@D)/src
369N/A
5795N/ACONFIGURE_ENV += PERL=$(PERL)
5795N/ACOMPONENT_INSTALL_ENV += PERL=$(PERL)
369N/A
5706N/ALDFLAGS += -L$(PROTOUSRLIBDIR64)
369N/A
5706N/A#
5706N/A# For some weird reason PKG_CONFIG is generating
5706N/A# additional linker flags for 64bit builds. We are enforcing
5706N/A# the GLIB_LIBS with only glib-2.0 here.
5706N/A#
5706N/ACONFIGURE_ENV += GLIB_LIBS="-lglib-2.0"
5706N/A
5706N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/infiniband
5706N/ACONFIGURE_OPTIONS += --disable-rdma-ndd
5706N/ACONFIGURE_OPTIONS += --enable-compat-utils
5706N/ACONFIGURE_OPTIONS += --enable-test-utils
5706N/A
369N/A# it apears that configure is broken
369N/ACOMPONENT_BUILD_ARGS += LIBS="$(LIBS)"
369N/A
369N/ACOMPONENT_PRE_CONFIGURE_ACTION =\
369N/A $(SYMLINK) ../../$(COMPONENT_SRC)/include $(@D)/include
369N/A
369N/ACOMPONENT_POST_CONFIGURE_ACTION=\
369N/A $(SYMLINK) ../../../$(COMPONENT_SRC)/scripts/IBswcountlimits.pm $(@D)/scripts
369N/A
5795N/A# Adjust '#!/usr/bin/perl'
5795N/APERL_SCRIPTS= \
5795N/A $(PROTOUSRSBINDIR)/ibdiscover.pl \
5795N/A $(PROTOUSRSBINDIR)/ibfindnodesusing.pl \
5795N/A $(PROTOUSRSBINDIR)/ibidsverify.pl \
5795N/A $(PROTOUSRSBINDIR)/iblinkinfo.pl \
5795N/A $(PROTOUSRSBINDIR)/ibprintca.pl \
5795N/A $(PROTOUSRSBINDIR)/ibprintrt.pl \
5795N/A $(PROTOUSRSBINDIR)/ibprintswitch.pl \
5795N/A $(PROTOUSRSBINDIR)/ibqueryerrors.pl \
5795N/A $(PROTOUSRSBINDIR)/ibswportwatch.pl
5795N/A
369N/ACLEANUP_FILES =\
369N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibnetdisc.la\
369N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibnetdisc.so \
369N/A $(PROTOUSRBINDIR)/vendstat\
369N/A $(PROTOUSRBINDIR)/dump_lfts.sh \
369N/A $(PROTOUSRBINDIR)/dump_mfts.sh\
369N/A $(PROTOUSRBINDIR)/ibidsverify.pl \
369N/A $(PROTOUSRBINDIR)/ibfindnodesusing.pl\
5680N/A $(PROTOUSRSHAREMAN8DIR)/vendstat.8 \
5680N/A $(PROTOUSRSHAREMAN8DIR)/dump_lfts.8 \
5680N/A $(PROTOUSRSHAREMAN8DIR)/dump_mfts.8 \
5680N/A $(PROTOUSRSHAREMAN8DIR)/ibidsverify.8 \
5680N/A $(PROTOUSRSHAREMAN8DIR)/ibfindnodesusing.8 \
369N/A $(PROTOUSRINCDIR)/infiniband/ibnetdisc.h\
369N/A
5795N/ACOMPONENT_POST_INSTALL_ACTION+= \
5795N/A $(RM) $(CLEANUP_FILES); \
5680N/A $(INSTALL) -m 644 manpages/set_nodedesc.sh.8 $(PROTOUSRSHAREMAN8DIR)
369N/A
369N/A# common targets
5706N/Ainstall: $(INSTALL_64)
369N/A