Print this page
NEX-16705 Turn off globallint
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>
re #13842 make clobber leaves trash
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/uts/i86pc/Makefile
+++ new/usr/src/uts/i86pc/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.
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 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # This makefile drives the production of all implementation architecture
26 26 # dependent modules for the i86pc architecture.
27 27 #
28 28
29 29 UTSBASE = ..
30 30
31 31 include Makefile.i86pc
32 32
33 33 #
34 34 # The following are x86 specific (rather than i86pc) specific modules
35 35 # which are required for the i86pc kernel to completely lint. They are
36 36 # not involved in the build in any other way. In order to minimize
37 37 # build time, it is assumed that they are up to date.
38 38 #
39 39 INTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
40 40
41 41 INTEL_LINTS = genunix
42 42
43 43 LINT_LIBS = \
44 44 $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
45 45 $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
46 46 $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
47 47
48 48 I86PC_LINTS = dr drmach_acpi
49 49
50 50 #
51 51 #
52 52 #
53 53 def := TARGET= def
54 54 all := TARGET= all
55 55 install := TARGET= install
56 56 install_h := TARGET= install_h
57 57 clean := TARGET= clean
58 58 clobber := TARGET= clobber
59 59 lint := TARGET= lint
60 60 lintlib := TARGET= lintlib
61 61 machmodlintlib := TARGET= modlintlib
62 62 modlist := TARGET= modlist
63 63 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
64 64 clean.lint := TARGET= clean.lint
65 65 check := TARGET= check
66 66
67 67 .KEEP_STATE:
68 68
69 69 .PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
70 70
71 71 INITIAL_TARGETS = \
72 72 genassym \
73 73 unix \
74 74 cpu/scripts
75 75
76 76 def all clean clobber clean.lint: setup genassym unix .WAIT \
77 77 $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
78 78
79 79 install: install_platforms setup genassym unix .WAIT \
80 80 $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
81 81
82 82 # Need to clean in here too because of lint.
83 83 clean: $(I86PC_LINTS)
84 84
85 85 # list the modules under i86pc.
86 86 modlist: unix $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
87 87
88 88 # list the modules for Install -k i86pc.
89 89 modlist.karch: modlist modlist.intel
90 90
91 91 modlist.intel:
92 92 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
93 93
94 94 lintlib: unix
95 95
96 96 modlintlib: $(KMODS)
97 97
98 98 genassym unix $(KMODS): FRC
99 99 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
100 100
101 101 setup: FRC
102 102 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
103 103
104 104 $(IMPLEMENTATIONS): FRC
105 105 @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
106 106
107 107 $(XMODS): FRC
108 108 @if [ -f $@/Makefile ]; then \
109 109 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
110 110 else \
111 111 true; \
112 112 fi
113 113
114 114 install_h check: $(IMPLEMENTATIONS) FRC
115 115 @cd sys; pwd; $(MAKE) $(TARGET)
116 116
117 117 #
118 118 # Definitions for the /platform directory aliases.
119 119 # Currently none for i86pc.
120 120 #
121 121 PLAT_LINKS =
122 122
123 123 #
124 124 # Make the /platform directories. This is hardwired here because
125 125 # the first stage of the project (KBI) only implements the userland
|
↓ open down ↓ |
125 lines elided |
↑ open up ↑ |
126 126 # changes, but the only reasonable place to record the aliases is
127 127 # here in kernel land.
128 128 #
129 129 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
130 130 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
131 131 $(OEM_USR_PLAT_LINKS)
132 132
133 133 #
134 134 # Full kernel lint target.
135 135 #
136 -LINT_TARGET = globallint
136 +LINT_TARGET = # globallint
137 137
138 138 # workaround for multiply defined errors
139 139 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
140 140
141 141 globallint:
142 142 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
143 143 @-$(LINT) $(LINTFLAGS) $(LINT_LIB) $(LINT_LIBS) 2>&1 | $(LGREP.2)
144 144
145 145 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS) \
146 146 $(IMPLEMENTATIONS)
147 147
148 148 $(INTEL_LINTS): FRC
149 149 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
150 150
151 151 include ../Makefile.targ
152 152
153 153 #
154 154 # Cross-reference customization: build a cross-reference over all of the
155 155 # i86pc-related directories.
156 156 #
157 157 XRDIRS = ../i86pc ../intel ../common
158 158
159 159 XRPRUNE = sun4u sun4
160 160
161 161 cscope.out tags: FRC
162 162 $(XREF) -x $@
|
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX