author | Stacey Marshall <Stacey.Marshall@Oracle.COM> |
Wed, 16 Dec 2015 08:57:57 +0000 | |
changeset 5200 | 07b9fdb30f45 |
parent 5000 | ba06ad809495 |
child 5682 | 94c0ca64c022 |
permissions | -rw-r--r-- |
1344 | 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 |
# |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
23 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
1344 | 24 |
# |
25 |
||
26 |
include ../../make-rules/shared-macros.mk |
|
27 |
||
28 |
COMPONENT_NAME= smp_utils |
|
29 |
COMPONENT_VERSION= 0.97 |
|
30 |
COMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html |
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
|
34 |
sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b |
|
35 |
COMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE) |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1344
diff
changeset
|
36 |
COMPONENT_BUGDB= utility/smputils |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1344
diff
changeset
|
37 |
|
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1344
diff
changeset
|
38 |
TPNO= 11065 |
1344 | 39 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/prep.mk |
4970
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
41 |
|
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
42 |
# Needs header file from ON only available in S12. |
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
43 |
ifeq ($(BUILD_TYPE), evaluation) |
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
44 |
BUILD_64= |
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
45 |
INSTALL_64= |
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
46 |
PUBLISH_STAMP= |
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
47 |
endif |
6c5babcca659
21960093 do not publish open-fabrics or smp_utils for BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
48 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
49 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
50 |
include $(WS_MAKE_RULES)/ips.mk |
1344 | 51 |
|
52 |
||
53 |
CC += $(CC_BITS) |
|
54 |
LDFLAGS += $(CC_BITS) |
|
55 |
COMPONENT_BUILD_ARGS += CC="$(CC)" |
|
56 |
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)" |
|
57 |
||
58 |
CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include |
|
59 |
CONFIGURE_OPTIONS += --disable-static |
|
60 |
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
61 |
||
62 |
# Don't use rpath! |
|
63 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
|
64 |
(cd $(BUILD_DIR_64) ; \ |
|
65 |
$(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \ |
|
66 |
$(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool) |
|
67 |
||
68 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
69 |
||
70 |
COMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL) |
|
71 |
COMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR) |
|
72 |
$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64) |
|
73 |
$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR64) |
|
74 |
||
2164
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
75 |
COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64) |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
76 |
COMPONENT_TEST_CMD = \ |
1344 | 77 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_general -V; \ |
78 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_phy_event -V; \ |
|
79 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_route_info -V; \ |
|
80 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_man_pass -V; \ |
|
81 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_perm_tbl -V; \ |
|
82 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_phy_info -V; \ |
|
83 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover -V; \ |
|
84 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover_list -V; \ |
|
85 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_ena_dis_zoning -V; \ |
|
86 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_control -V; \ |
|
87 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_test -V; \ |
|
88 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_read_gpio -V; \ |
|
89 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_broadcast -V; \ |
|
90 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_exp_route_tbl -V; \ |
|
91 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_general -V; \ |
|
92 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_manufacturer -V; \ |
|
93 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_err_log -V; \ |
|
94 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event -V; \ |
|
95 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event_list -V; \ |
|
96 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_sata -V; \ |
|
97 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_route_info -V; \ |
|
98 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_self_conf_stat -V; \ |
|
99 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_man_pass -V; \ |
|
100 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_perm_tbl -V; \ |
|
101 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_write_gpio -V; \ |
|
102 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_activate -V; \ |
|
103 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_lock -V; \ |
|
104 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_unlock -V; \ |
|
2164
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
105 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_zoned_broadcast -V |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
106 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
107 |
ASLR_MODE = $(ASLR_ENABLE) |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
108 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
109 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2164
diff
changeset
|
110 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2164
diff
changeset
|
111 |
|
2164
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
112 |
build: $(BUILD_64) |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
113 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
114 |
install: $(INSTALL_64) |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
115 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
116 |
test: install $(TEST_64) |
1344 | 117 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
118 |
# Add install dependency as above after system-test targets are implemented. |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
119 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
120 |
|
1344 | 121 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
122 |
REQUIRED_PACKAGES += system/library |