28 # dependent modules for the i86xpv architecture.
29 #
30
31 UTSBASE = ..
32
33 include Makefile.i86xpv
34
35 #
36 # The following are x86 specific (rather than i86pc) specific modules
37 # which are required for the i86pc kernel to completely lint. They are
38 # not involved in the build in any other way. In order to minimize
39 # build time, it is assumed that they are up to date.
40 #
41 INTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
42
43 INTEL_LINTS = genunix
44
45 LINT_LIBS = $(LINT_LIB) \
46 $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
47 $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
48 $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
49 $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
50
51 #
52 #
53 #
54 def := TARGET= def
55 all := TARGET= all
56 install := TARGET= install
57 clean := TARGET= clean
58 clobber := TARGET= clobber
59 lint := TARGET= lint
60 lintlib := TARGET= lintlib
61 machmodlintlib := TARGET= modlintlib
62 modlist := TARGET= modlist
63 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
64 clean.lint := TARGET= clean.lint
65 check := TARGET= check
66
67 .KEEP_STATE:
68
69 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
70 modlist modlist.intel
71
72 INITIAL_TARGETS = \
73 genassym \
74 unix \
75 cpu/scripts
76
77 def all clean clobber clean.lint: setup genassym unix .WAIT \
78 $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
79
80 install: install_platforms setup genassym unix .WAIT \
81 $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
82
83 # list the modules under i86xpv.
84 modlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
85
86 # list the modules for Install -k i86xpv.
87 modlist.karch: modlist modlist.intel
88
89 modlist.intel:
90 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
91
92 lintlib: unix
93
94 modlintlib: $(KMODS) $(CLOSED_KMODS)
95
96 genassym unix $(KMODS): FRC
97 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
98
99 setup: FRC
100 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
101
102 $(XMODS): FRC
103 @if [ -f $@/Makefile ]; then \
104 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
105 else \
106 true; \
107 fi
108
109 $(CLOSED_KMODS): FRC
110 cd $(CLOSED)/uts/i86xpv/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
111
112 $(CLOSED_XMODS): FRC
113 @if [ -f $(CLOSED)/uts/i86xpv/$@/Makefile ]; then \
114 cd $(CLOSED)/uts/i86xpv/$@; pwd; \
115 $(MAKE) $(NO_STATE) $(TARGET); \
116 else \
117 true; \
118 fi
119
120 install_h check: FRC
121 @cd sys; pwd; $(MAKE) $(TARGET)
122
123 #
124 # Definitions for the /platform directory aliases.
125 # Currently none for i86xpv.
126 #
127 PLAT_LINKS =
128
129 #
130 # Make the /platform directories. This is hardwired here because
131 # the first stage of the project (KBI) only implements the userland
132 # changes, but the only reasonable place to record the aliases is
133 # here in kernel land.
134 #
135 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
136 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
137 $(OEM_USR_PLAT_LINKS)
138
139 #
144 # workaround for multiply defined errors
145 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
146
147 globallint:
148 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
149 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
150
151 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
152
153 $(INTEL_LINTS): FRC
154 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
155
156 FRC:
157
158 include ../Makefile.targ
159
160 #
161 # Cross-reference customization: build a cross-reference over all of the
162 # i86pc-related directories.
163 #
164 SHARED_XRDIRS = ../i86xpv ../i86pc ../intel ../common
165 XRDIRS = $(SHARED_XRDIRS)
166 CLOSED_XRDIRS1 = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
167 CLOSED_XRDIRS2 = $(CLOSED_XRDIRS1:../../../closed/uts/i86pc=)
168 $(CLOSED_BUILD)XRDIRS = $(CLOSED_XRDIRS2:../../../closed/uts/i86xpv=)
169 XRPRUNE = sun4v sun4u sun4 sfmmu sparc
170
171 cscope.out tags: FRC
172 $(XREF) -x $@
|
28 # dependent modules for the i86xpv architecture.
29 #
30
31 UTSBASE = ..
32
33 include Makefile.i86xpv
34
35 #
36 # The following are x86 specific (rather than i86pc) specific modules
37 # which are required for the i86pc kernel to completely lint. They are
38 # not involved in the build in any other way. In order to minimize
39 # build time, it is assumed that they are up to date.
40 #
41 INTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
42
43 INTEL_LINTS = genunix
44
45 LINT_LIBS = $(LINT_LIB) \
46 $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
47 $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
48 $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
49
50 #
51 #
52 #
53 def := TARGET= def
54 all := TARGET= all
55 install := TARGET= install
56 clean := TARGET= clean
57 clobber := TARGET= clobber
58 lint := TARGET= lint
59 lintlib := TARGET= lintlib
60 machmodlintlib := TARGET= modlintlib
61 modlist := TARGET= modlist
62 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
63 clean.lint := TARGET= clean.lint
64 check := TARGET= check
65
66 .KEEP_STATE:
67
68 .PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
69
70 INITIAL_TARGETS = \
71 genassym \
72 unix \
73 cpu/scripts
74
75 def all clean clobber clean.lint: setup genassym unix .WAIT \
76 $(KMODS) $(XMODS)
77
78 install: install_platforms setup genassym unix .WAIT \
79 $(KMODS) $(XMODS)
80
81 # list the modules under i86xpv.
82 modlist: unix $(KMODS) $(XMODS)
83
84 # list the modules for Install -k i86xpv.
85 modlist.karch: modlist modlist.intel
86
87 modlist.intel:
88 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
89
90 lintlib: unix
91
92 modlintlib: $(KMODS)
93
94 genassym unix $(KMODS): FRC
95 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
96
97 setup: FRC
98 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
99
100 $(XMODS): FRC
101 @if [ -f $@/Makefile ]; then \
102 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
103 else \
104 true; \
105 fi
106
107 install_h check: FRC
108 @cd sys; pwd; $(MAKE) $(TARGET)
109
110 #
111 # Definitions for the /platform directory aliases.
112 # Currently none for i86xpv.
113 #
114 PLAT_LINKS =
115
116 #
117 # Make the /platform directories. This is hardwired here because
118 # the first stage of the project (KBI) only implements the userland
119 # changes, but the only reasonable place to record the aliases is
120 # here in kernel land.
121 #
122 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
123 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
124 $(OEM_USR_PLAT_LINKS)
125
126 #
131 # workaround for multiply defined errors
132 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
133
134 globallint:
135 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
136 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
137
138 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
139
140 $(INTEL_LINTS): FRC
141 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
142
143 FRC:
144
145 include ../Makefile.targ
146
147 #
148 # Cross-reference customization: build a cross-reference over all of the
149 # i86pc-related directories.
150 #
151 XRDIRS = ../i86xpv ../i86pc ../intel ../common
152 XRPRUNE = sun4v sun4u sun4 sfmmu sparc
153
154 cscope.out tags: FRC
155 $(XREF) -x $@
|