1766N/A#
1766N/A# CDDL HEADER START
1766N/A#
1766N/A# The contents of this file are subject to the terms of the
1766N/A# Common Development and Distribution License (the "License").
1766N/A# You may not use this file except in compliance with the License.
1766N/A#
1766N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1766N/A# or http://www.opensolaris.org/os/licensing.
1766N/A# See the License for the specific language governing permissions
1766N/A# and limitations under the License.
1766N/A#
1766N/A# When distributing Covered Code, include this CDDL HEADER in each
1766N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1766N/A# If applicable, add the following below this CDDL HEADER, with the
1766N/A# fields enclosed by brackets "[]" replaced with your own identifying
1766N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1766N/A#
1766N/A# CDDL HEADER END
1766N/A#
1766N/A
1766N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1766N/A#
5680N/ABUILD_BITS= 64
1766N/Ainclude ../../make-rules/shared-macros.mk
1766N/A
1766N/ACOMPONENT_NAME= smp_utils
1766N/ACOMPONENT_VERSION= 0.97
1766N/ACOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
1766N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1766N/ACOMPONENT_ARCHIVE_HASH= \
1766N/A sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
1766N/ACOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
2899N/ACOMPONENT_BUGDB= utility/smputils
2899N/A
2899N/ATPNO= 11065
1766N/A
4968N/A# Needs header file from ON only available in S12.
4968N/Aifeq ($(BUILD_TYPE), evaluation)
4968N/ABUILD_64=
4968N/AINSTALL_64=
4968N/APUBLISH_STAMP=
4968N/Aendif
4968N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
1766N/A
1766N/ACPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
1766N/ACONFIGURE_OPTIONS += --disable-static
1766N/A
1766N/A# Don't use rpath!
1766N/ACOMPONENT_POST_CONFIGURE_ACTION = \
1766N/A (cd $(BUILD_DIR_64) ; \
1766N/A $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
1766N/A $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
1766N/A
1766N/ACOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
1766N/ACOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
1766N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
5680N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR)
1766N/A
3353N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64)
3353N/ACOMPONENT_TEST_CMD = \
5680N/A $(PROTOUSRBINDIR)/smp_conf_general -V; \
5680N/A $(PROTOUSRBINDIR)/smp_conf_phy_event -V; \
5680N/A $(PROTOUSRBINDIR)/smp_conf_route_info -V; \
5680N/A $(PROTOUSRBINDIR)/smp_conf_zone_man_pass -V; \
5680N/A $(PROTOUSRBINDIR)/smp_conf_zone_perm_tbl -V; \
5680N/A $(PROTOUSRBINDIR)/smp_conf_zone_phy_info -V; \
5680N/A $(PROTOUSRBINDIR)/smp_discover -V; \
5680N/A $(PROTOUSRBINDIR)/smp_discover_list -V; \
5680N/A $(PROTOUSRBINDIR)/smp_ena_dis_zoning -V; \
5680N/A $(PROTOUSRBINDIR)/smp_phy_control -V; \
5680N/A $(PROTOUSRBINDIR)/smp_phy_test -V; \
5680N/A $(PROTOUSRBINDIR)/smp_read_gpio -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_broadcast -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_exp_route_tbl -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_general -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_manufacturer -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_phy_err_log -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_phy_event -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_phy_event_list -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_phy_sata -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_route_info -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_self_conf_stat -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_zone_man_pass -V; \
5680N/A $(PROTOUSRBINDIR)/smp_rep_zone_perm_tbl -V; \
5680N/A $(PROTOUSRBINDIR)/smp_write_gpio -V; \
5680N/A $(PROTOUSRBINDIR)/smp_zone_activate -V; \
5680N/A $(PROTOUSRBINDIR)/smp_zone_lock -V; \
5680N/A $(PROTOUSRBINDIR)/smp_zone_unlock -V; \
5680N/A $(PROTOUSRBINDIR)/smp_zoned_broadcast -V
3353N/A