1 # This file tells config what files go into building a kernel,
2 # files marked standard are always included.
7 # common files stuff between i386 and amd64
8 include "conf/files.x86"
10 # The long compile-with and dependency lines are required because of
11 # limitations in config: backslash-newline doesn't work in strings, and
12 # dependency lines other than the first are silently ignored.
14 cloudabi32_vdso.o optional compat_cloudabi32 \
15 dependency "$S/contrib/cloudabi/cloudabi_vdso_i686.S" \
16 compile-with "${CC} -x assembler-with-cpp -shared -nostdinc -nostdlib -Wl,-T$S/compat/cloudabi/cloudabi_vdso.lds $S/contrib/cloudabi/cloudabi_vdso_i686.S -o ${.TARGET}" \
17 no-obj no-implicit-rule \
18 clean "cloudabi32_vdso.o"
20 cloudabi32_vdso_blob.o optional compat_cloudabi32 \
21 dependency "cloudabi32_vdso.o" \
22 compile-with "${OBJCOPY} --input-target binary --output-target elf32-i386-freebsd --binary-architecture i386 cloudabi32_vdso.o ${.TARGET}" \
24 clean "cloudabi32_vdso_blob.o"
26 linux_genassym.o optional compat_linux \
27 dependency "$S/i386/linux/linux_genassym.c offset.inc" \
28 compile-with "${CC} ${CFLAGS:N-flto:N-fno-common} -c ${.IMPSRC}" \
29 no-obj no-implicit-rule \
30 clean "linux_genassym.o"
32 linux_assym.h optional compat_linux \
33 dependency "$S/kern/genassym.sh linux_genassym.o" \
34 compile-with "sh $S/kern/genassym.sh linux_genassym.o > ${.TARGET}" \
35 no-obj no-implicit-rule before-depend \
38 linux_locore.o optional compat_linux \
39 dependency "linux_assym.h $S/i386/linux/linux_locore.asm" \
40 compile-with "${CC} -x assembler-with-cpp -DLOCORE -shared -s -pipe -I. -I$S -Werror -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/i386/linux/linux_vdso.lds.s -Wl,-soname=linux_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
41 no-obj no-implicit-rule \
42 clean "linux_locore.o"
44 linux_vdso.so optional compat_linux \
45 dependency "linux_locore.o" \
46 compile-with "${OBJCOPY} --input-target binary --output-target elf32-i386-freebsd --binary-architecture i386 linux_locore.o ${.TARGET}" \
50 font.h optional sc_dflt_font \
51 compile-with "uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'static u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'static u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'static u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" \
52 no-obj no-implicit-rule before-depend \
53 clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8"
55 atkbdmap.h optional atkbd_dflt_keymap \
56 compile-with "kbdcontrol -P ${S:S/sys$/share/}/vt/keymaps -P ${S:S/sys$/share/}/syscons/keymaps -L ${ATKBD_DFLT_KEYMAP} | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > atkbdmap.h" \
57 no-obj no-implicit-rule before-depend \
60 cddl/contrib/opensolaris/common/atomic/i386/opensolaris_atomic.S optional zfs | dtrace compile-with "${ZFS_S}"
61 cddl/dev/dtrace/i386/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}"
62 cddl/dev/dtrace/i386/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}"
63 compat/linprocfs/linprocfs.c optional linprocfs
64 compat/linsysfs/linsysfs.c optional linsysfs
65 compat/linux/linux_event.c optional compat_linux
66 compat/linux/linux_emul.c optional compat_linux
67 compat/linux/linux_errno.c optional compat_linux
68 compat/linux/linux_file.c optional compat_linux
69 compat/linux/linux_fork.c optional compat_linux
70 compat/linux/linux_futex.c optional compat_linux
71 compat/linux/linux_getcwd.c optional compat_linux
72 compat/linux/linux_ioctl.c optional compat_linux
73 compat/linux/linux_ipc.c optional compat_linux
74 compat/linux/linux_mib.c optional compat_linux
75 compat/linux/linux_misc.c optional compat_linux
76 compat/linux/linux_mmap.c optional compat_linux
77 compat/linux/linux_signal.c optional compat_linux
78 compat/linux/linux_socket.c optional compat_linux
79 compat/linux/linux_stats.c optional compat_linux
80 compat/linux/linux_sysctl.c optional compat_linux
81 compat/linux/linux_time.c optional compat_linux
82 compat/linux/linux_timer.c optional compat_linux
83 compat/linux/linux_uid16.c optional compat_linux
84 compat/linux/linux_util.c optional compat_linux
85 compat/linux/linux_vdso.c optional compat_linux
86 compat/linux/linux.c optional compat_linux
87 compat/ndis/kern_ndis.c optional ndisapi pci
88 compat/ndis/kern_windrv.c optional ndisapi pci
89 compat/ndis/subr_hal.c optional ndisapi pci
90 compat/ndis/subr_ndis.c optional ndisapi pci
91 compat/ndis/subr_ntoskrnl.c optional ndisapi pci
92 compat/ndis/subr_pe.c optional ndisapi pci
93 compat/ndis/subr_usbd.c optional ndisapi pci
94 compat/ndis/winx32_wrap.S optional ndisapi pci
95 bf_enc.o optional crypto | ipsec | ipsec_support \
96 dependency "$S/crypto/blowfish/arch/i386/bf_enc.S $S/crypto/blowfish/arch/i386/bf_enc_586.S $S/crypto/blowfish/arch/i386/bf_enc_686.S" \
97 compile-with "${CC} -c -I$S/crypto/blowfish/arch/i386 ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}" \
99 crypto/aesni/aeskeys_i386.S optional aesni
100 crypto/des/arch/i386/des_enc.S optional crypto | ipsec | ipsec_support | netsmb
101 dev/agp/agp_ali.c optional agp
102 dev/agp/agp_amd.c optional agp
103 dev/agp/agp_amd64.c optional agp
104 dev/agp/agp_ati.c optional agp
105 dev/agp/agp_i810.c optional agp
106 dev/agp/agp_intel.c optional agp
107 dev/agp/agp_nvidia.c optional agp
108 dev/agp/agp_sis.c optional agp
109 dev/agp/agp_via.c optional agp
110 dev/amdsbwd/amdsbwd.c optional amdsbwd
111 dev/amdsmn/amdsmn.c optional amdsmn | amdtemp
112 dev/amdtemp/amdtemp.c optional amdtemp
113 dev/arcmsr/arcmsr.c optional arcmsr pci
114 dev/asmc/asmc.c optional asmc isa
115 dev/atkbdc/atkbd.c optional atkbd atkbdc
116 dev/atkbdc/atkbd_atkbdc.c optional atkbd atkbdc
117 dev/atkbdc/atkbdc.c optional atkbdc
118 dev/atkbdc/atkbdc_isa.c optional atkbdc isa
119 dev/atkbdc/atkbdc_subr.c optional atkbdc
120 dev/atkbdc/psm.c optional psm atkbdc
121 dev/ce/ceddk.c optional ce
122 dev/ce/if_ce.c optional ce
123 dev/ce/tau32-ddk.c optional ce \
124 compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}"
125 dev/coretemp/coretemp.c optional coretemp
126 dev/cp/cpddk.c optional cp
127 dev/cp/if_cp.c optional cp
128 dev/cpuctl/cpuctl.c optional cpuctl
129 dev/ctau/ctau.c optional ctau
130 dev/ctau/ctddk.c optional ctau
131 dev/ctau/if_ct.c optional ctau
132 dev/cx/csigma.c optional cx
133 dev/cx/cxddk.c optional cx
134 dev/cx/if_cx.c optional cx
135 dev/dpms/dpms.c optional dpms
136 dev/fb/fb.c optional fb | vga
137 dev/fb/s3_pci.c optional s3pci
138 dev/fb/vesa.c optional vga vesa
139 dev/fb/vga.c optional vga
140 dev/glxiic/glxiic.c optional glxiic
141 dev/glxsb/glxsb.c optional glxsb
142 dev/glxsb/glxsb_hash.c optional glxsb
143 dev/gpio/bytgpio.c optional bytgpio
144 dev/gpio/chvgpio.c optional chvgpio
145 dev/hwpmc/hwpmc_amd.c optional hwpmc
146 dev/hwpmc/hwpmc_intel.c optional hwpmc
147 dev/hwpmc/hwpmc_core.c optional hwpmc
148 dev/hwpmc/hwpmc_uncore.c optional hwpmc
149 dev/hwpmc/hwpmc_tsc.c optional hwpmc
150 dev/hwpmc/hwpmc_x86.c optional hwpmc
151 dev/hyperv/vmbus/i386/hyperv_machdep.c optional hyperv
152 dev/hyperv/vmbus/i386/vmbus_vector.S optional hyperv
153 dev/ichwd/ichwd.c optional ichwd
154 dev/if_ndis/if_ndis.c optional ndis
155 dev/if_ndis/if_ndis_pccard.c optional ndis pccard
156 dev/if_ndis/if_ndis_pci.c optional ndis cardbus | ndis pci
157 dev/if_ndis/if_ndis_usb.c optional ndis usb
158 dev/imcsmb/imcsmb.c optional imcsmb
159 dev/imcsmb/imcsmb_pci.c optional imcsmb pci
160 dev/intel/spi.c optional intelspi
161 dev/io/iodev.c optional io
162 dev/ipmi/ipmi.c optional ipmi
163 dev/ipmi/ipmi_acpi.c optional ipmi acpi
164 dev/ipmi/ipmi_isa.c optional ipmi isa
165 dev/ipmi/ipmi_kcs.c optional ipmi
166 dev/ipmi/ipmi_smic.c optional ipmi
167 dev/ipmi/ipmi_smbus.c optional ipmi smbus
168 dev/ipmi/ipmi_smbios.c optional ipmi
169 dev/ipmi/ipmi_ssif.c optional ipmi smbus
170 dev/ipmi/ipmi_pci.c optional ipmi pci
171 dev/ipmi/ipmi_linux.c optional ipmi compat_linux
172 dev/le/if_le_isa.c optional le isa
173 dev/nctgpio/nctgpio.c optional nctgpio
174 dev/nfe/if_nfe.c optional nfe pci
175 dev/ntb/if_ntb/if_ntb.c optional if_ntb
176 dev/ntb/ntb_transport.c optional ntb_transport | if_ntb
177 dev/ntb/ntb.c optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw
178 dev/ntb/ntb_if.m optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw
179 dev/ntb/ntb_hw/ntb_hw_amd.c optional ntb_hw_amd | ntb_hw
180 dev/ntb/ntb_hw/ntb_hw_intel.c optional ntb_hw_intel | ntb_hw
181 dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw
182 dev/nvram/nvram.c optional nvram isa
183 dev/ofw/ofwpci.c optional fdt pci
184 dev/pcf/pcf_isa.c optional pcf
185 dev/random/ivy.c optional rdrand_rng !random_loadable
186 dev/random/nehemiah.c optional padlock_rng !random_loadable
187 dev/sbni/if_sbni.c optional sbni
188 dev/sbni/if_sbni_isa.c optional sbni isa
189 dev/sbni/if_sbni_pci.c optional sbni pci
190 dev/sio/sio.c optional sio
191 dev/sio/sio_isa.c optional sio isa
192 dev/sio/sio_pccard.c optional sio pccard
193 dev/sio/sio_pci.c optional sio pci
194 dev/sio/sio_puc.c optional sio puc
195 dev/speaker/spkr.c optional speaker
196 dev/superio/superio.c optional superio isa
197 dev/syscons/apm/apm_saver.c optional apm_saver apm
198 dev/syscons/scvesactl.c optional sc vga vesa
199 dev/syscons/scvgarndr.c optional sc vga
200 dev/tpm/tpm.c optional tpm
201 dev/tpm/tpm_acpi.c optional tpm acpi
202 dev/tpm/tpm_isa.c optional tpm isa
203 dev/uart/uart_cpu_x86.c optional uart
204 dev/viawd/viawd.c optional viawd
205 dev/vmware/vmxnet3/if_vmx.c optional vmx
206 dev/vmware/vmci/vmci.c optional vmci
207 dev/vmware/vmci/vmci_datagram.c optional vmci
208 dev/vmware/vmci/vmci_doorbell.c optional vmci
209 dev/vmware/vmci/vmci_driver.c optional vmci
210 dev/vmware/vmci/vmci_event.c optional vmci
211 dev/vmware/vmci/vmci_hashtable.c optional vmci
212 dev/vmware/vmci/vmci_kernel_if.c optional vmci
213 dev/vmware/vmci/vmci_qpair.c optional vmci
214 dev/vmware/vmci/vmci_queue_pair.c optional vmci
215 dev/vmware/vmci/vmci_resource.c optional vmci
216 dev/acpi_support/acpi_wmi_if.m standard
217 dev/wbwd/wbwd.c optional wbwd
218 i386/acpica/acpi_machdep.c optional acpi
219 acpi_wakecode.o optional acpi \
220 dependency "$S/i386/acpica/acpi_wakecode.S assym.inc" \
221 compile-with "${NORMAL_S}" \
222 no-obj no-implicit-rule before-depend \
223 clean "acpi_wakecode.o"
224 acpi_wakecode.bin optional acpi \
225 dependency "acpi_wakecode.o" \
226 compile-with "${OBJCOPY} -S -O binary acpi_wakecode.o ${.TARGET}" \
227 no-obj no-implicit-rule before-depend \
228 clean "acpi_wakecode.bin"
229 acpi_wakecode.h optional acpi \
230 dependency "acpi_wakecode.bin" \
231 compile-with "file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}" \
232 no-obj no-implicit-rule before-depend \
233 clean "acpi_wakecode.h"
234 acpi_wakedata.h optional acpi \
235 dependency "acpi_wakecode.o" \
236 compile-with '${NM} -n --defined-only acpi_wakecode.o | while read offset dummy what; do echo "#define $${what} 0x$${offset}"; done > ${.TARGET}' \
237 no-obj no-implicit-rule before-depend \
238 clean "acpi_wakedata.h"
240 i386/bios/apm.c optional apm
241 i386/bios/smapi.c optional smapi
242 i386/bios/smapi_bios.S optional smapi
243 i386/cloudabi32/cloudabi32_sysvec.c optional compat_cloudabi32
244 #i386/i386/apic_vector.s optional apic
245 i386/i386/bios.c standard
246 i386/i386/bioscall.s standard
247 i386/i386/bpf_jit_machdep.c optional bpf_jitter
248 i386/i386/copyout.c standard
249 i386/i386/db_disasm.c optional ddb
250 i386/i386/db_interface.c optional ddb
251 i386/i386/db_trace.c optional ddb
252 i386/i386/elan-mmcr.c optional cpu_elan | cpu_soekris
253 i386/i386/elf_machdep.c standard
254 i386/i386/exception.s standard
255 i386/i386/gdb_machdep.c optional gdb
256 i386/i386/geode.c optional cpu_geode
257 i386/i386/in_cksum.c optional inet | inet6
258 i386/i386/initcpu.c standard
259 i386/i386/io.c optional io
260 i386/i386/k6_mem.c optional mem
261 i386/i386/locore.s standard no-obj
262 i386/i386/longrun.c optional cpu_enable_longrun
263 i386/i386/machdep.c standard
264 i386/i386/mem.c optional mem
265 i386/i386/minidump_machdep.c standard
266 i386/i386/minidump_machdep_pae.c standard
267 i386/i386/minidump_machdep_nopae.c standard
268 i386/i386/mp_clock.c optional smp
269 i386/i386/mp_machdep.c optional smp
270 i386/i386/mpboot.s optional smp
271 i386/i386/npx.c standard
272 i386/i386/perfmon.c optional perfmon
273 i386/i386/pmap_base.c standard
274 i386/i386/pmap_nopae.c standard
275 i386/i386/pmap_pae.c standard
276 i386/i386/prof_machdep.c optional profiling-routine
277 i386/i386/ptrace_machdep.c standard
278 i386/i386/sigtramp.s standard
279 i386/i386/support.s standard
280 i386/i386/swtch.s standard
281 i386/i386/sys_machdep.c standard
282 i386/i386/trap.c standard
283 i386/i386/uio_machdep.c standard
284 i386/i386/vm86.c standard
285 i386/i386/vm_machdep.c standard
286 i386/linux/imgact_linux.c optional compat_linux
287 i386/linux/linux_copyout.c optional compat_linux
288 i386/linux/linux_dummy.c optional compat_linux
289 i386/linux/linux_machdep.c optional compat_linux
290 i386/linux/linux_ptrace.c optional compat_linux
291 i386/linux/linux_sysent.c optional compat_linux
292 i386/linux/linux_sysvec.c optional compat_linux
293 i386/pci/pci_cfgreg.c optional pci
294 i386/pci/pci_pir.c optional pci
295 isa/syscons_isa.c optional sc
296 isa/vga_isa.c optional vga
297 kern/kern_clocksource.c standard
298 kern/imgact_aout.c optional compat_aout
299 kern/subr_sfbuf.c standard
300 libkern/divdi3.c standard
301 libkern/ffsll.c standard
302 libkern/flsll.c standard
303 libkern/memcmp.c standard
304 libkern/memset.c standard
305 libkern/moddi3.c standard
306 libkern/qdivrem.c standard
307 libkern/ucmpdi2.c standard
308 libkern/udivdi3.c standard
309 libkern/umoddi3.c standard
311 # x86 real mode BIOS support, required by dpms/pci/vesa
313 compat/x86bios/x86bios.c optional x86bios | dpms | pci | vesa
317 dev/bvm/bvm_console.c optional bvmconsole
318 dev/bvm/bvm_dbg.c optional bvmdebug
319 # Common files where we currently configure the system differently, but perhaps shouldn't
320 # config(8) doesn't have a way to force standard options, so we've been inconsistent
321 # about marking non-optional things 'standard'.
322 x86/acpica/madt.c optional acpi apic
323 x86/cpufreq/smist.c optional cpufreq
324 x86/isa/atpic.c optional atpic
325 x86/isa/elcr.c optional atpic | apic
326 x86/isa/isa.c optional isa
327 x86/isa/isa_dma.c optional isa
328 x86/x86/io_apic.c optional apic
329 x86/x86/local_apic.c optional apic
330 x86/x86/mptable.c optional apic
331 x86/x86/mptable_pci.c optional apic pci
332 x86/x86/msi.c optional apic pci