author | John Beck <John.Beck@Oracle.COM> |
Fri, 21 Nov 2014 16:37:26 -0800 | |
changeset 2225 | f064d3d3190d |
parent 2164 | b580bc10e31a |
child 3817 | 30b42c38bbc4 |
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 |
# |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1344
diff
changeset
|
23 |
# Copyright (c) 2013, 2014, 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 |
|
40 |
include ../../make-rules/prep.mk |
|
41 |
include ../../make-rules/configure.mk |
|
42 |
include ../../make-rules/ips.mk |
|
43 |
||
44 |
||
45 |
CC += $(CC_BITS) |
|
46 |
LDFLAGS += $(CC_BITS) |
|
47 |
COMPONENT_BUILD_ARGS += CC="$(CC)" |
|
48 |
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)" |
|
49 |
||
50 |
CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include |
|
51 |
CONFIGURE_OPTIONS += --disable-static |
|
52 |
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
53 |
||
54 |
# Don't use rpath! |
|
55 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
|
56 |
(cd $(BUILD_DIR_64) ; \ |
|
57 |
$(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \ |
|
58 |
$(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool) |
|
59 |
||
60 |
# Move the section 8 man pages into section 1m. |
|
61 |
COMPONENT_POST_INSTALL_ACTION = \ |
|
62 |
for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \ |
|
63 |
mv $$f $${f%.8}.1m; \ |
|
64 |
done ; \ |
|
65 |
$(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m |
|
66 |
||
67 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
68 |
||
69 |
COMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL) |
|
70 |
COMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR) |
|
71 |
$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64) |
|
72 |
$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR64) |
|
73 |
||
2164
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
74 |
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
|
75 |
COMPONENT_TEST_CMD = \ |
1344 | 76 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_general -V; \ |
77 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_phy_event -V; \ |
|
78 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_route_info -V; \ |
|
79 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_man_pass -V; \ |
|
80 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_perm_tbl -V; \ |
|
81 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_phy_info -V; \ |
|
82 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover -V; \ |
|
83 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover_list -V; \ |
|
84 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_ena_dis_zoning -V; \ |
|
85 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_control -V; \ |
|
86 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_test -V; \ |
|
87 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_read_gpio -V; \ |
|
88 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_broadcast -V; \ |
|
89 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_exp_route_tbl -V; \ |
|
90 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_general -V; \ |
|
91 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_manufacturer -V; \ |
|
92 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_err_log -V; \ |
|
93 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event -V; \ |
|
94 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event_list -V; \ |
|
95 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_sata -V; \ |
|
96 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_route_info -V; \ |
|
97 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_self_conf_stat -V; \ |
|
98 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_man_pass -V; \ |
|
99 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_perm_tbl -V; \ |
|
100 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_write_gpio -V; \ |
|
101 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_activate -V; \ |
|
102 |
$(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_lock -V; \ |
|
103 |
$(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
|
104 |
$(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
|
105 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
106 |
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
|
107 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
108 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2164
diff
changeset
|
109 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2164
diff
changeset
|
110 |
|
2164
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
111 |
build: $(BUILD_64) |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
112 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
113 |
install: $(INSTALL_64) |
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
114 |
|
b580bc10e31a
19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
115 |
test: install $(TEST_64) |
1344 | 116 |
|
117 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
118 |
||
119 |
include ../../make-rules/depend.mk |