--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/smp_utils/Makefile Mon Nov 07 17:10:14 2016 -0800
@@ -0,0 +1,93 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME= smp_utils
+COMPONENT_VERSION= 0.97
+COMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
+COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
+COMPONENT_ARCHIVE_HASH= \
+ sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
+COMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB= utility/smputils
+
+TPNO= 11065
+
+include $(WS_MAKE_RULES)/prep.mk
+include $(WS_MAKE_RULES)/configure.mk
+include $(WS_MAKE_RULES)/ips.mk
+
+CC += $(CC_BITS)
+CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
+CONFIGURE_OPTIONS += --disable-static
+CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
+
+PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
+
+ASLR_MODE = $(ASLR_ENABLE)
+
+COMPONENT_INSTALL_ARGS += sbindir=$(USRSBINDIR)
+
+# common targets
+build: $(BUILD_64)
+
+install: $(INSTALL_64)
+
+test: install $(TEST_64)
+
+# Actions to show versions of each utility for test target
+COMPONENT_PRE_TEST_ACTION = \
+ $(PROTOUSRSBINDIR)/smp_conf_general -V; \
+ $(PROTOUSRSBINDIR)/smp_conf_phy_event -V; \
+ $(PROTOUSRSBINDIR)/smp_conf_route_info -V; \
+ $(PROTOUSRSBINDIR)/smp_conf_zone_man_pass -V; \
+ $(PROTOUSRSBINDIR)/smp_conf_zone_perm_tbl -V; \
+ $(PROTOUSRSBINDIR)/smp_conf_zone_phy_info -V; \
+ $(PROTOUSRSBINDIR)/smp_discover -V; \
+ $(PROTOUSRSBINDIR)/smp_discover_list -V; \
+ $(PROTOUSRSBINDIR)/smp_ena_dis_zoning -V; \
+ $(PROTOUSRSBINDIR)/smp_phy_control -V; \
+ $(PROTOUSRSBINDIR)/smp_phy_test -V; \
+ $(PROTOUSRSBINDIR)/smp_read_gpio -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_broadcast -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_exp_route_tbl -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_general -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_manufacturer -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_phy_err_log -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_phy_event -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_phy_event_list -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_phy_sata -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_route_info -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_self_conf_stat -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_zone_man_pass -V; \
+ $(PROTOUSRSBINDIR)/smp_rep_zone_perm_tbl -V; \
+ $(PROTOUSRSBINDIR)/smp_write_gpio -V; \
+ $(PROTOUSRSBINDIR)/smp_zone_activate -V; \
+ $(PROTOUSRSBINDIR)/smp_zone_lock -V; \
+ $(PROTOUSRSBINDIR)/smp_zone_unlock -V; \
+ $(PROTOUSRSBINDIR)/smp_zoned_broadcast -V;
+
+REQUIRED_PACKAGES += system/library