components/smp_utils/Makefile
branchs11u3-sru
changeset 7259 39b1b8abc92d
equal deleted inserted replaced
7256:c523ba6bf5f1 7259:39b1b8abc92d
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 include ../../make-rules/shared-macros.mk
       
    26 
       
    27 COMPONENT_NAME=		smp_utils
       
    28 COMPONENT_VERSION=	0.97
       
    29 COMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
       
    30 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
       
    32 COMPONENT_ARCHIVE_HASH= \
       
    33     sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
       
    34 COMPONENT_ARCHIVE_URL=	http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
       
    35 COMPONENT_BUGDB=	utility/smputils
       
    36 
       
    37 TPNO=			11065
       
    38 
       
    39 include $(WS_MAKE_RULES)/prep.mk
       
    40 include $(WS_MAKE_RULES)/configure.mk
       
    41 include $(WS_MAKE_RULES)/ips.mk
       
    42 
       
    43 CC += $(CC_BITS)
       
    44 CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
       
    45 CONFIGURE_OPTIONS +=	--disable-static
       
    46 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
       
    47 
       
    48 PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
       
    49 
       
    50 ASLR_MODE = $(ASLR_ENABLE)
       
    51 
       
    52 COMPONENT_INSTALL_ARGS += sbindir=$(USRSBINDIR)
       
    53 
       
    54 # common targets
       
    55 build:		$(BUILD_64)
       
    56 
       
    57 install:	$(INSTALL_64)
       
    58 
       
    59 test:		install $(TEST_64)
       
    60 
       
    61 # Actions to show versions of each utility for test target
       
    62 COMPONENT_PRE_TEST_ACTION =	\
       
    63 		$(PROTOUSRSBINDIR)/smp_conf_general -V; \
       
    64 		$(PROTOUSRSBINDIR)/smp_conf_phy_event -V; \
       
    65 		$(PROTOUSRSBINDIR)/smp_conf_route_info -V; \
       
    66 		$(PROTOUSRSBINDIR)/smp_conf_zone_man_pass -V; \
       
    67 		$(PROTOUSRSBINDIR)/smp_conf_zone_perm_tbl -V; \
       
    68 		$(PROTOUSRSBINDIR)/smp_conf_zone_phy_info -V; \
       
    69 		$(PROTOUSRSBINDIR)/smp_discover -V; \
       
    70 		$(PROTOUSRSBINDIR)/smp_discover_list -V; \
       
    71 		$(PROTOUSRSBINDIR)/smp_ena_dis_zoning -V; \
       
    72 		$(PROTOUSRSBINDIR)/smp_phy_control -V; \
       
    73 		$(PROTOUSRSBINDIR)/smp_phy_test -V; \
       
    74 		$(PROTOUSRSBINDIR)/smp_read_gpio -V; \
       
    75 		$(PROTOUSRSBINDIR)/smp_rep_broadcast -V; \
       
    76 		$(PROTOUSRSBINDIR)/smp_rep_exp_route_tbl -V; \
       
    77 		$(PROTOUSRSBINDIR)/smp_rep_general -V; \
       
    78 		$(PROTOUSRSBINDIR)/smp_rep_manufacturer -V; \
       
    79 		$(PROTOUSRSBINDIR)/smp_rep_phy_err_log -V; \
       
    80 		$(PROTOUSRSBINDIR)/smp_rep_phy_event -V; \
       
    81 		$(PROTOUSRSBINDIR)/smp_rep_phy_event_list -V; \
       
    82 		$(PROTOUSRSBINDIR)/smp_rep_phy_sata -V; \
       
    83 		$(PROTOUSRSBINDIR)/smp_rep_route_info -V; \
       
    84 		$(PROTOUSRSBINDIR)/smp_rep_self_conf_stat -V; \
       
    85 		$(PROTOUSRSBINDIR)/smp_rep_zone_man_pass -V; \
       
    86 		$(PROTOUSRSBINDIR)/smp_rep_zone_perm_tbl -V; \
       
    87 		$(PROTOUSRSBINDIR)/smp_write_gpio -V; \
       
    88 		$(PROTOUSRSBINDIR)/smp_zone_activate -V; \
       
    89 		$(PROTOUSRSBINDIR)/smp_zone_lock -V; \
       
    90 		$(PROTOUSRSBINDIR)/smp_zone_unlock -V; \
       
    91 		$(PROTOUSRSBINDIR)/smp_zoned_broadcast -V;
       
    92 
       
    93 REQUIRED_PACKAGES += system/library