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