Print this page
10593 illumos build should not use kernel modules as link-editor input
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/vfalls/Makefile
+++ new/usr/src/uts/sun4v/vfalls/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 -# uts/sun4v/vfalls/Makefile
23 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 23 # Use is subject to license terms.
24 +
25 25 #
26 -#ident "%Z%%M% %I% %E% SMI"
27 26 #
28 27 # This makefile drives the production of the UltraSPARC-T2+ cpu module.
29 28 #
30 29 # sun4v implementation architecture dependent
31 30 #
32 31
33 32 #
34 33 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 34 #
36 35 UTSBASE = ../..
37 36
38 37 #
39 38 # Define the module and object file sets.
40 39 #
41 40 MODULE = SUNW,UltraSPARC-T2+
42 41 OBJECTS = $(NIAGARA2CPU_OBJS:%=$(OBJS_DIR)/%)
43 42 LINTS = $(NIAGARA2CPU_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 43 ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
45 44
46 45 CPU_DIR = .
47 46 HERE = ../vfalls
48 47
49 48 #
50 49 # Include common rules.
51 50 #
52 51 include $(UTSBASE)/sun4v/Makefile.sun4v
53 52
54 53 #
55 54 # Override defaults
56 55 #
57 56 CLEANFILES += $(CPULIB) $(SYM_MOD)
58 57
59 58 #
60 59 # Define targets
61 60 #
62 61 ALL_TARGET = $(SYM_MOD)
63 62 LINT_TARGET = $(MODULE).lint
64 63 INSTALL_TARGET = def $(BINARY) $(ROOTMODULE)
65 64
66 65 #
67 66 # lint pass one enforcement
68 67 #
69 68 CFLAGS += $(CCVERBOSE) -DVFALLS_IMPL
70 69
71 70 #
72 71 # cpu-module-specific flags
73 72 #
74 73 CPPFLAGS += -DCPU_MODULE -DVFALLS_IMPL
75 74 CPPFLAGS += -DSUN4V_CONTIG_MEM_PREALLOC_SIZE_MB=68
76 75 AS_CPPFLAGS += -DCPU_MODULE -DVFALLS_IMPL
77 76
78 77 #
79 78 # The ATOMIC_BO_ENABLE_SHIFT enables backoff in atomic routines.
80 79 # It is also used to scale final limit value w.r.t. number of
81 80 # online cpus.
82 81 #
83 82 ATOMIC_BO_FLAG = -DATOMIC_BO_ENABLE_SHIFT=4
84 83 CFLAGS += $(ATOMIC_BO_FLAG)
85 84 CPPFLAGS +=$(ATOMIC_BO_FLAG)
86 85 AS_CPPFLAGS += $(ATOMIC_BO_FLAG)
87 86
88 87 #
89 88 # Default build targets.
90 89 #
91 90 .KEEP_STATE:
92 91
93 92 def: $(DEF_DEPS)
94 93
95 94 all: $(ALL_DEPS)
96 95
97 96 clean: $(CLEAN_DEPS)
98 97
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
99 98 clobber: $(CLOBBER_DEPS)
100 99
101 100 lint: $(LINT_DEPS)
102 101
103 102 modlintlib: $(MODLINTLIB_DEPS)
104 103
105 104 clean.lint: $(CLEAN_LINT_DEPS)
106 105
107 106 install: $(INSTALL_DEPS)
108 107
109 -$(CPULIB): $(BINARY)
110 - $(BUILD.SO) $(BINARY)
108 +$(CPULIB): $(OBJECTS)
109 + $(BUILD.SO) $(OBJECTS)
111 110
112 111 $(SYM_MOD): $(UNIX_O) $(CPULIB)
113 112 @echo "resolving symbols against unix.o"
114 113 @(cd $(UNIX_DIR); pwd; \
115 114 CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
116 115
117 116 # Include common targets.
118 117 #
119 118 include $(UTSBASE)/$(PLATFORM)/Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX