xref: /titanic_52/usr/src/uts/i86pc/Makefile.rules (revision b0f673c4626e4cb1db7785287eaeed2731dfefe8)
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#
23# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24#
25
26#	This Makefile defines the build rules for the directory uts/i86pc
27#	and its children. These are the source files which are i86pc
28#	"implementation architecture" dependent.
29#
30#	The following two-level ordering must be maintained in this file.
31#	  Lines are sorted first in order of decreasing specificity based on
32#	  the first directory component.  That is, i86pc rules come before
33#	  intel rules come before common rules.
34#
35#	  Lines whose initial directory components are equal are sorted
36#	  alphabetically by the remaining components.
37
38#
39#	Section 1a: C object build rules
40#
41$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/conf/%.c
42	$(COMPILE.c) -o $@ $<
43	$(CTFCONVERT_O)
44
45$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/cpu/amd_opteron/%.c
46	$(COMPILE.c) -o $@ $<
47	$(CTFCONVERT_O)
48
49$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/cpu/authenticamd/%.c
50	$(COMPILE.c) -o $@ $<
51	$(CTFCONVERT_O)
52
53$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/cpu/generic_cpu/%.c
54	$(COMPILE.c) -o $@ $<
55	$(CTFCONVERT_O)
56
57$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/cpu/genuineintel/%.c
58	$(COMPILE.c) -o $@ $<
59	$(CTFCONVERT_O)
60
61$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/%.c
62	$(COMPILE.c) -o $@ $<
63	$(CTFCONVERT_O)
64
65$(OBJS_DIR)/%.o:                $(UTSBASE)/i86pc/io/acpi_drv/%.c
66	$(COMPILE.c) -o $@ $<
67	$(CTFCONVERT_O)
68
69$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/fipe/%.c
70	$(COMPILE.c) -o $@ $<
71	$(CTFCONVERT_O)
72
73$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/acpi/acpidev/%.c
74	$(COMPILE.c) -o $@ $<
75	$(CTFCONVERT_O)
76
77$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/acpi/acpinex/%.c
78	$(COMPILE.c) -o $@ $<
79	$(CTFCONVERT_O)
80
81SBD_IOCTL	= $(UTSBASE)/i86pc/sys/sbd_ioctl.h
82DRMACH_IO	= $(UTSBASE)/i86pc/io/acpi/drmach_acpi
83DRMACH_GENERR	= $(DRMACH_IO)/sbdgenerr
84DR_IO		= $(UTSBASE)/i86pc/io/dr
85DR_GENERR	= $(DR_IO)/sbdgenerr
86
87$(DRMACH_GENERR):	$(DR_IO)/sbdgenerr.pl
88	$(RM) $@
89	$(CAT) $(DR_IO)/sbdgenerr.pl > $@
90	$(CHMOD) +x $@
91
92$(DRMACH_IO)/drmach_err.c:	$(DRMACH_GENERR) $(SBD_IOCTL)
93	$(RM) $@
94	$(DRMACH_GENERR) EX86 < $(SBD_IOCTL) > $(DRMACH_IO)/drmach_err.c
95
96$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
97	$(COMPILE.c) -o $@ $<
98	$(CTFCONVERT_O)
99
100$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/amd_iommu/%.c
101	$(COMPILE.c) -o $@ $<
102	$(CTFCONVERT_O)
103
104$(DR_GENERR):			$(DR_IO)/sbdgenerr.pl
105	$(RM) $@
106	$(CAT) $(DR_IO)/sbdgenerr.pl > $@
107	$(CHMOD) +x $@
108
109$(DR_IO)/dr_err.c:		$(DR_GENERR) $(SBD_IOCTL)
110	$(RM) $@
111	$(DR_GENERR) ESBD < $(SBD_IOCTL) > $(DR_IO)/dr_err.c
112
113$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/dr/%.c
114	$(COMPILE.c) -o $@ $<
115	$(CTFCONVERT_O)
116
117$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/ioat/%.c
118	$(COMPILE.c) -o $@ $<
119	$(CTFCONVERT_O)
120
121$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/pci/%.c
122	$(COMPILE.c) -o $@ $<
123	$(CTFCONVERT_O)
124
125$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/pciex/%.c
126	$(COMPILE.c) -o $@ $<
127	$(CTFCONVERT_O)
128
129$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/pciex/hotplug/%.c
130	$(COMPILE.c) -o $@ $<
131	$(CTFCONVERT_O)
132
133$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/pcplusmp/%.c
134	$(COMPILE.c) -o $@ $<
135	$(CTFCONVERT_O)
136
137$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/pcplusmp/%.s
138	$(COMPILE.s) -o $@ $<
139
140$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/apix/%.c
141	$(COMPILE.c) -o $@ $<
142	$(CTFCONVERT_O)
143
144$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/ppm/%.c
145	$(COMPILE.c) -o $@ $<
146	$(CTFCONVERT_O)
147
148$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/ppm/%.s
149	$(COMPILE.s) -o $@ $<
150
151$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/psm/%.c
152	$(COMPILE.c) -o $@ $<
153	$(CTFCONVERT_O)
154
155$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/psm/%.s
156	$(COMPILE.s) -o $@ $<
157
158$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/tzmon/%.c
159	$(COMPILE.c) -o $@ $<
160	$(CTFCONVERT_O)
161
162$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/ml/%.s
163	$(COMPILE.s) -o $@ $<
164
165$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/os/%.c
166	$(COMPILE.c) -o $@ $<
167	$(CTFCONVERT_O)
168
169$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/os/cpupm/%.c
170	$(COMPILE.c) -o $@ $<
171	$(CTFCONVERT_O)
172
173$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/boot/%.c
174	$(COMPILE.c) -o $@ $<
175	$(CTFCONVERT_O)
176
177$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/vm/%.c
178	$(COMPILE.c) -o $@ $<
179	$(CTFCONVERT_O)
180
181$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/%.c
182	$(COMPILE.c) -o $@ $<
183	$(CTFCONVERT_O)
184
185$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/ppm/%.c
186	$(COMPILE.c) -o $@ $<
187	$(CTFCONVERT_O)
188
189$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/pciex/%.c
190	$(COMPILE.c) -o $@ $<
191	$(CTFCONVERT_O)
192
193$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
194	$(COMPILE.c) -o $@ $<
195	$(CTFCONVERT_O)
196
197$(OBJS_DIR)/%.o:		$(SRC)/common/dis/i386/%.c
198	$(COMPILE.c) -o $@ $<
199	$(CTFCONVERT_O)
200
201$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/gfx_private/%.c
202	$(COMPILE.c) -o $@ $<
203	$(CTFCONVERT_O)
204
205$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/io/xsvc/%.c
206	$(COMPILE.c) -o $@ $<
207	$(CTFCONVERT_O)
208
209$(OBJS_DIR)/%.o:		$(UTSBASE)/common/xen/os/%.c
210	$(COMPILE.c) -o $@ $<
211	$(CTFCONVERT_O)
212
213#
214# dboot stuff is always 32 bit, linked to run with phys_addr == virt_addr
215#
216DBOOT_OBJS_DIR	= dboot/$(OBJS_DIR)
217DBOOT_MACH_32	= -D_BOOT_TARGET_i386
218DBOOT_MACH_64	= -D_BOOT_TARGET_amd64
219DBOOT_DEFS	= -D_BOOT $(DBOOT_MACH_$(CLASS))
220DBOOT_DEFS	+= -D_MACHDEP -D_KMEMUSER -U_KERNEL -D_I32LPx
221DBOOT_FLAGS	= $(CCVERBOSE) $(CERRWARN) $(CCNOAUTOINLINE)
222
223DBOOT_CC_INCL	= -I$(SRC)/common $(INCLUDE_PATH)
224DBOOT_AS_INCL	= $(AS_INC_PATH)
225
226DBOOT_AS	= $(ONBLD_TOOLS)/bin/$(MACH)/aw
227
228DBOOT_LINTS_DIR	= $(DBOOT_OBJS_DIR)
229DBOOT_LINTFLAGS_i86pc	= $(LINTFLAGS_i386_32) $(LINTTAGS_i386_32)
230
231DBOOT_LINTFLAGS = $(DBOOT_LINTFLAGS_$(PLATFORM)) $(LINTTAGS) $(C99LMODE) \
232	$(CPPFLAGS) $(DBOOT_DEFS)
233DBOOT_LOCAL_LINTFLAGS   = -c -dirout=$(DBOOT_LINTS_DIR) -I$(SRC)/common \
234	$(DBOOT_LINTFLAGS) $(DBOOT_LINTTAGS)
235
236$(DBOOT_OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/boot/%.c
237	$(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
238
239$(DBOOT_OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/dboot/%.c
240	$(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
241
242$(DBOOT_OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/%.s
243	$(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
244
245$(DBOOT_OBJS_DIR)/%.o:		$(COMMONBASE)/crypto/sha1/%.c
246	$(i386_CC) $(CERRWARN) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
247
248$(DBOOT_OBJS_DIR)/%.o:		$(COMMONBASE)/util/%.c
249	$(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
250
251$(DBOOT_OBJS_DIR)/%.o:		$(COMMONBASE)/util/i386/%.s
252	$(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
253
254$(DBOOT_OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/dboot/%.s
255	$(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
256
257#
258# Stuff to build bios_call.o for the kernel.
259#
260MAPFILE_BIOS	= $(UTSBASE)/i86pc/conf/Mapfile.bios
261$(OBJS_DIR)/bios_call.o:    $(UTSBASE)/i86pc/ml/bios_call_src.s
262	$(COMPILE.s) -o $(OBJS_DIR)/bios_call_src.o \
263		$(UTSBASE)/i86pc/ml/bios_call_src.s
264	$(LD) -dn -M $(MAPFILE_BIOS)  \
265		-o $(OBJS_DIR)/bios_call_src $(OBJS_DIR)/bios_call_src.o
266	@echo "  .data"				> $(OBJS_DIR)/bios_call.s
267	@echo "  .globl bios_image"		>> $(OBJS_DIR)/bios_call.s
268	@echo "bios_image:"			>> $(OBJS_DIR)/bios_call.s
269	$(ELFEXTRACT) $(OBJS_DIR)/bios_call_src	>> $(OBJS_DIR)/bios_call.s
270	@echo "  .align 4"			>> $(OBJS_DIR)/bios_call.s
271	@echo "  .globl bios_size"		>> $(OBJS_DIR)/bios_call.s
272	@echo "bios_size:"			>> $(OBJS_DIR)/bios_call.s
273	@echo "  .long . - bios_image"		>> $(OBJS_DIR)/bios_call.s
274	$(COMPILE.s) -o $@ $(OBJS_DIR)/bios_call.s
275
276#
277# Stuff to build fb_swtch.o for the kernel.
278#
279MAPFILE_FBSWTCH	= $(UTSBASE)/i86pc/conf/Mapfile.fb_swtch
280$(OBJS_DIR)/fb_swtch.o:    $(UTSBASE)/i86pc/ml/fb_swtch_src.s
281	$(COMPILE.s) -o $(OBJS_DIR)/fb_swtch_src.o \
282		$(UTSBASE)/i86pc/ml/fb_swtch_src.s
283	$(LD) -dn -M $(MAPFILE_FBSWTCH)  \
284		-o $(OBJS_DIR)/fb_swtch_src $(OBJS_DIR)/fb_swtch_src.o
285	@echo "  .data"				> $(OBJS_DIR)/fb_swtch.s
286	@echo "  .globl fb_swtch_image"		>> $(OBJS_DIR)/fb_swtch.s
287	@echo "fb_swtch_image:"			>> $(OBJS_DIR)/fb_swtch.s
288	$(ELFEXTRACT) $(OBJS_DIR)/fb_swtch_src	>> $(OBJS_DIR)/fb_swtch.s
289	@echo "  .align 4"			>> $(OBJS_DIR)/fb_swtch.s
290	@echo "  .globl fb_swtch_size"		>> $(OBJS_DIR)/fb_swtch.s
291	@echo "fb_swtch_size:"			>> $(OBJS_DIR)/fb_swtch.s
292	@echo "  .long . - fb_swtch_image"	>> $(OBJS_DIR)/fb_swtch.s
293	$(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s
294
295# ridiculous contortions ---
296ATOMIC_SUBDIR_32	= i386
297ATOMIC_SUBDIR_64	= amd64
298ATOMIC_SUBDIR		= $(ATOMIC_SUBDIR_$(CLASS))
299
300$(OBJS_DIR)/%.o:		$(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
301	$(COMPILE.s) -o $@ $<
302
303#
304# dtrace stubs
305#
306
307$(OBJS_DIR)/dtracestubs.s:	$(UNIX_O) $(LIBS)
308	$(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
309	    $(UNIQ) | $(NAWK) '{ \
310	    printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
311	    $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
312
313$(DTRACESTUBS):	$(DTRACESTUBS_O)
314	$(BUILD.SO) $(DTRACESTUBS_O)
315
316#
317#	Section 1b: Lint `object' build rules
318#
319$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/conf/%.c
320	@($(LHEAD) $(LINT.c) $< $(LTAIL))
321
322$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/cpu/amd_opteron/%.c
323	@($(LHEAD) $(LINT.c) $< $(LTAIL))
324
325$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/cpu/authenticamd/%.c
326	@($(LHEAD) $(LINT.c) $< $(LTAIL))
327
328$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/cpu/generic_cpu/%.c
329	@($(LHEAD) $(LINT.c) $< $(LTAIL))
330
331$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/cpu/genuineintel/%.c
332	@($(LHEAD) $(LINT.c) $< $(LTAIL))
333
334$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/%.c
335	@($(LHEAD) $(LINT.c) $< $(LTAIL))
336
337$(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/io/acpi_drv/%.c
338	@($(LHEAD) $(LINT.c) $< $(LTAIL))
339
340$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/fipe/%.c
341	@($(LHEAD) $(LINT.c) $< $(LTAIL))
342
343$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/acpi/acpidev/%.c
344	@($(LHEAD) $(LINT.c) $< $(LTAIL))
345
346$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/acpi/acpinex/%.c
347	@($(LHEAD) $(LINT.c) $< $(LTAIL))
348
349$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
350	@($(LHEAD) $(LINT.c) $< $(LTAIL))
351
352$(LINTS_DIR)/%.ln:              $(UTSBASE)/i86pc/io/amd_iommu/%.c
353	@($(LHEAD) $(LINT.c) $< $(LTAIL))
354
355$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/dr/%.c
356	@($(LHEAD) $(LINT.c) $< $(LTAIL))
357
358$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/ioat/%.c
359	@($(LHEAD) $(LINT.c) $< $(LTAIL))
360
361$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/pci/%.c
362	@($(LHEAD) $(LINT.c) $< $(LTAIL))
363
364$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/pciex/%.c
365	@($(LHEAD) $(LINT.c) $< $(LTAIL))
366
367$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/pciex/hotplug/%.c
368	@($(LHEAD) $(LINT.c) $< $(LTAIL))
369
370$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/pcplusmp/%.c
371	@($(LHEAD) $(LINT.c) $< $(LTAIL))
372
373$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/pcplusmp/%.s
374	@($(LHEAD) $(LINT.s) $< $(LTAIL))
375
376$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/apix/%.c
377	@($(LHEAD) $(LINT.c) $< $(LTAIL))
378
379$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/apix/%.s
380	@($(LHEAD) $(LINT.s) $< $(LTAIL))
381
382$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/ppm/%.c
383	@($(LHEAD) $(LINT.c) $< $(LTAIL))
384
385$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/ppm/%.s
386	@($(LHEAD) $(LINT.s) $< $(LTAIL))
387
388$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/psm/%.c
389	@($(LHEAD) $(LINT.c) $< $(LTAIL))
390
391$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/psm/%.s
392	@($(LHEAD) $(LINT.s) $< $(LTAIL))
393
394$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/tzmon/%.c
395	@($(LHEAD) $(LINT.c) $< $(LTAIL))
396
397$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/ml/%.s
398	@($(LHEAD) $(LINT.s) $< $(LTAIL))
399
400$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/os/%.c
401	@($(LHEAD) $(LINT.c) $< $(LTAIL))
402
403$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/os/cpupm/%.c
404	@($(LHEAD) $(LINT.c) $< $(LTAIL))
405
406$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/boot/%.c
407	@($(LHEAD) $(LINT.c) $< $(LTAIL))
408
409$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/vm/%.c
410	@($(LHEAD) $(LINT.c) $< $(LTAIL))
411
412$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/%.c
413	@($(LHEAD) $(LINT.c) $< $(LTAIL))
414
415$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/ppm/%.c
416	@($(LHEAD) $(LINT.c) $< $(LTAIL))
417
418$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/pciex/%.c
419	@($(LHEAD) $(LINT.c) $< $(LTAIL))
420
421$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
422	@($(LHEAD) $(LINT.c) $< $(LTAIL))
423
424$(LINTS_DIR)/%.ln:		$(SRC)/common/dis/i386/%.c
425	@($(LHEAD) $(LINT.c) $< $(LTAIL))
426
427$(LINTS_DIR)/%.ln:		$(SRC)/common/atomic/%.c
428	@($(LHEAD) $(LINT.c) $< $(LTAIL))
429
430$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/gfx_private/%.c
431	@($(LHEAD) $(LINT.c) $< $(LTAIL))
432
433$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/io/xsvc/%.c
434	@($(LHEAD) $(LINT.c) $< $(LTAIL))
435
436$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/xen/os/%.c
437	@($(LHEAD) $(LINT.c) $< $(LTAIL))
438
439#
440# bios call has a funky name change while building
441#
442$(LINTS_DIR)/bios_call.ln:	$(UTSBASE)/i86pc/ml/bios_call_src.s
443	@($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/bios_call_src.s  $(LTAIL))
444	@mv $(LINTS_DIR)/bios_call_src.ln $(LINTS_DIR)/bios_call.ln
445
446#
447# So does fb_swtch
448#
449$(LINTS_DIR)/fb_swtch.ln:	$(UTSBASE)/i86pc/ml/fb_swtch_src.s
450	@($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/fb_swtch_src.s  $(LTAIL))
451	@mv $(LINTS_DIR)/fb_swtch_src.ln $(LINTS_DIR)/fb_swtch.ln
452
453#
454# dboot always compiles in 32-bit mode, so force lint to be 32-bit mode too.
455#
456$(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c
457	@($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
458
459$(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.s
460	@($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
461
462$(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/sha1/%.c
463	@($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
464
465$(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
466	@($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
467
468$(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/%.c
469	@($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
470
471$(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/i386/%.s
472	@($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
473