1# This file tells config what files go into building a kernel, 2# files marked standard are always included. 3# 4# $FreeBSD$ 5# 6 7# common files stuff between i386 and amd64 8include "conf/files.x86" 9 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. 13# 14cloudabi32_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" 19# 20cloudabi32_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}" \ 23 no-implicit-rule \ 24 clean "cloudabi32_vdso_blob.o" 25# 26linux_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" 31# 32linux_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 \ 36 clean "linux_assym.h" 37# 38linux_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" 43# 44linux_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}" \ 47 no-implicit-rule \ 48 clean "linux_vdso.so" 49# 50font.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" 54# 55atkbdmap.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 \ 58 clean "atkbdmap.h" 59# 60cddl/contrib/opensolaris/common/atomic/i386/opensolaris_atomic.S optional zfs | dtrace compile-with "${ZFS_S}" 61cddl/dev/dtrace/i386/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" 62cddl/dev/dtrace/i386/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" 63compat/linprocfs/linprocfs.c optional linprocfs 64compat/linsysfs/linsysfs.c optional linsysfs 65compat/linux/linux_event.c optional compat_linux 66compat/linux/linux_emul.c optional compat_linux 67compat/linux/linux_errno.c optional compat_linux 68compat/linux/linux_file.c optional compat_linux 69compat/linux/linux_fork.c optional compat_linux 70compat/linux/linux_futex.c optional compat_linux 71compat/linux/linux_getcwd.c optional compat_linux 72compat/linux/linux_ioctl.c optional compat_linux 73compat/linux/linux_ipc.c optional compat_linux 74compat/linux/linux_mib.c optional compat_linux 75compat/linux/linux_misc.c optional compat_linux 76compat/linux/linux_mmap.c optional compat_linux 77compat/linux/linux_signal.c optional compat_linux 78compat/linux/linux_socket.c optional compat_linux 79compat/linux/linux_stats.c optional compat_linux 80compat/linux/linux_sysctl.c optional compat_linux 81compat/linux/linux_time.c optional compat_linux 82compat/linux/linux_timer.c optional compat_linux 83compat/linux/linux_uid16.c optional compat_linux 84compat/linux/linux_util.c optional compat_linux 85compat/linux/linux_vdso.c optional compat_linux 86compat/linux/linux.c optional compat_linux 87compat/ndis/winx32_wrap.S optional ndisapi pci 88bf_enc.o optional crypto | ipsec | ipsec_support \ 89 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" \ 90 compile-with "${CC} -c -I$S/crypto/blowfish/arch/i386 ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}" \ 91 no-implicit-rule 92crypto/aesni/aeskeys_i386.S optional aesni 93crypto/des/arch/i386/des_enc.S optional crypto | ipsec | ipsec_support | netsmb 94dev/agp/agp_ali.c optional agp 95dev/agp/agp_amd.c optional agp 96dev/agp/agp_amd64.c optional agp 97dev/agp/agp_ati.c optional agp 98dev/agp/agp_i810.c optional agp 99dev/agp/agp_intel.c optional agp 100dev/agp/agp_nvidia.c optional agp 101dev/agp/agp_sis.c optional agp 102dev/agp/agp_via.c optional agp 103dev/amdsbwd/amdsbwd.c optional amdsbwd 104dev/amdsmn/amdsmn.c optional amdsmn | amdtemp 105dev/amdtemp/amdtemp.c optional amdtemp 106dev/arcmsr/arcmsr.c optional arcmsr pci 107dev/asmc/asmc.c optional asmc isa 108dev/atkbdc/atkbd.c optional atkbd atkbdc 109dev/atkbdc/atkbd_atkbdc.c optional atkbd atkbdc 110dev/atkbdc/atkbdc.c optional atkbdc 111dev/atkbdc/atkbdc_isa.c optional atkbdc isa 112dev/atkbdc/atkbdc_subr.c optional atkbdc 113dev/atkbdc/psm.c optional psm atkbdc 114dev/ce/ceddk.c optional ce 115dev/ce/if_ce.c optional ce 116dev/ce/tau32-ddk.c optional ce \ 117 compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}" 118dev/coretemp/coretemp.c optional coretemp 119dev/cp/cpddk.c optional cp 120dev/cp/if_cp.c optional cp 121dev/cpuctl/cpuctl.c optional cpuctl 122dev/ctau/ctau.c optional ctau 123dev/ctau/ctddk.c optional ctau 124dev/ctau/if_ct.c optional ctau 125dev/cx/csigma.c optional cx 126dev/cx/cxddk.c optional cx 127dev/cx/if_cx.c optional cx 128dev/dpms/dpms.c optional dpms 129dev/fb/fb.c optional fb | vga 130dev/fb/s3_pci.c optional s3pci 131dev/fb/vesa.c optional vga vesa 132dev/fb/vga.c optional vga 133dev/glxiic/glxiic.c optional glxiic 134dev/glxsb/glxsb.c optional glxsb 135dev/glxsb/glxsb_hash.c optional glxsb 136dev/gpio/bytgpio.c optional bytgpio 137dev/gpio/chvgpio.c optional chvgpio 138dev/hyperv/vmbus/i386/hyperv_machdep.c optional hyperv 139dev/hyperv/vmbus/i386/vmbus_vector.S optional hyperv 140dev/ichwd/ichwd.c optional ichwd 141dev/if_ndis/if_ndis.c optional ndis 142dev/if_ndis/if_ndis_pccard.c optional ndis pccard 143dev/if_ndis/if_ndis_pci.c optional ndis cardbus | ndis pci 144dev/if_ndis/if_ndis_usb.c optional ndis usb 145dev/imcsmb/imcsmb.c optional imcsmb 146dev/imcsmb/imcsmb_pci.c optional imcsmb pci 147dev/intel/spi.c optional intelspi 148dev/io/iodev.c optional io 149dev/le/if_le_isa.c optional le isa 150dev/nctgpio/nctgpio.c optional nctgpio 151dev/nfe/if_nfe.c optional nfe pci 152dev/ntb/if_ntb/if_ntb.c optional if_ntb 153dev/ntb/ntb_transport.c optional ntb_transport | if_ntb 154dev/ntb/ntb.c optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw 155dev/ntb/ntb_if.m optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw 156dev/ntb/ntb_hw/ntb_hw_amd.c optional ntb_hw_amd | ntb_hw 157dev/ntb/ntb_hw/ntb_hw_intel.c optional ntb_hw_intel | ntb_hw 158dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw 159dev/ntb/test/ntb_tool.c optional ntb_tool 160dev/nvram/nvram.c optional nvram isa 161dev/ofw/ofwpci.c optional fdt pci 162dev/pcf/pcf_isa.c optional pcf 163dev/random/ivy.c optional rdrand_rng !random_loadable 164dev/random/nehemiah.c optional padlock_rng !random_loadable 165dev/sbni/if_sbni.c optional sbni 166dev/sbni/if_sbni_isa.c optional sbni isa 167dev/sbni/if_sbni_pci.c optional sbni pci 168dev/sio/sio.c optional sio 169dev/sio/sio_isa.c optional sio isa 170dev/sio/sio_pccard.c optional sio pccard 171dev/sio/sio_pci.c optional sio pci 172dev/sio/sio_puc.c optional sio puc 173dev/speaker/spkr.c optional speaker 174dev/superio/superio.c optional superio isa 175dev/syscons/apm/apm_saver.c optional apm_saver apm 176dev/syscons/scvesactl.c optional sc vga vesa 177dev/syscons/scvgarndr.c optional sc vga 178dev/tpm/tpm.c optional tpm 179dev/tpm/tpm_acpi.c optional tpm acpi 180dev/tpm/tpm_isa.c optional tpm isa 181dev/uart/uart_cpu_x86.c optional uart 182dev/viawd/viawd.c optional viawd 183dev/vmware/vmxnet3/if_vmx.c optional vmx 184dev/vmware/vmci/vmci.c optional vmci 185dev/vmware/vmci/vmci_datagram.c optional vmci 186dev/vmware/vmci/vmci_doorbell.c optional vmci 187dev/vmware/vmci/vmci_driver.c optional vmci 188dev/vmware/vmci/vmci_event.c optional vmci 189dev/vmware/vmci/vmci_hashtable.c optional vmci 190dev/vmware/vmci/vmci_kernel_if.c optional vmci 191dev/vmware/vmci/vmci_qpair.c optional vmci 192dev/vmware/vmci/vmci_queue_pair.c optional vmci 193dev/vmware/vmci/vmci_resource.c optional vmci 194dev/acpi_support/acpi_wmi_if.m standard 195dev/wbwd/wbwd.c optional wbwd 196i386/acpica/acpi_machdep.c optional acpi 197acpi_wakecode.o optional acpi \ 198 dependency "$S/i386/acpica/acpi_wakecode.S assym.inc" \ 199 compile-with "${NORMAL_S}" \ 200 no-obj no-implicit-rule before-depend \ 201 clean "acpi_wakecode.o" 202acpi_wakecode.bin optional acpi \ 203 dependency "acpi_wakecode.o" \ 204 compile-with "${OBJCOPY} -S -O binary acpi_wakecode.o ${.TARGET}" \ 205 no-obj no-implicit-rule before-depend \ 206 clean "acpi_wakecode.bin" 207acpi_wakecode.h optional acpi \ 208 dependency "acpi_wakecode.bin" \ 209 compile-with "file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}" \ 210 no-obj no-implicit-rule before-depend \ 211 clean "acpi_wakecode.h" 212acpi_wakedata.h optional acpi \ 213 dependency "acpi_wakecode.o" \ 214 compile-with '${NM} -n --defined-only acpi_wakecode.o | while read offset dummy what; do echo "#define $${what} 0x$${offset}"; done > ${.TARGET}' \ 215 no-obj no-implicit-rule before-depend \ 216 clean "acpi_wakedata.h" 217# 218i386/bios/apm.c optional apm 219i386/bios/smapi.c optional smapi 220i386/bios/smapi_bios.S optional smapi 221i386/cloudabi32/cloudabi32_sysvec.c optional compat_cloudabi32 222#i386/i386/apic_vector.s optional apic 223i386/i386/bios.c standard 224i386/i386/bioscall.s standard 225i386/i386/bpf_jit_machdep.c optional bpf_jitter 226i386/i386/copyout.c standard 227i386/i386/db_disasm.c optional ddb 228i386/i386/db_interface.c optional ddb 229i386/i386/db_trace.c optional ddb 230i386/i386/elan-mmcr.c optional cpu_elan | cpu_soekris 231i386/i386/elf_machdep.c standard 232i386/i386/exception.s standard 233i386/i386/gdb_machdep.c optional gdb 234i386/i386/geode.c optional cpu_geode 235i386/i386/in_cksum.c optional inet | inet6 236i386/i386/initcpu.c standard 237i386/i386/io.c optional io 238i386/i386/k6_mem.c optional mem 239i386/i386/locore.s standard no-obj 240i386/i386/longrun.c optional cpu_enable_longrun 241i386/i386/machdep.c standard 242i386/i386/mem.c optional mem 243i386/i386/minidump_machdep.c standard 244i386/i386/minidump_machdep_pae.c standard 245i386/i386/minidump_machdep_nopae.c standard 246i386/i386/mp_clock.c optional smp 247i386/i386/mp_machdep.c optional smp 248i386/i386/mpboot.s optional smp 249i386/i386/npx.c standard 250i386/i386/perfmon.c optional perfmon 251i386/i386/pmap_base.c standard 252i386/i386/pmap_nopae.c standard 253i386/i386/pmap_pae.c standard 254i386/i386/prof_machdep.c optional profiling-routine 255i386/i386/ptrace_machdep.c standard 256i386/i386/sigtramp.s standard 257i386/i386/support.s standard 258i386/i386/swtch.s standard 259i386/i386/sys_machdep.c standard 260i386/i386/trap.c standard 261i386/i386/uio_machdep.c standard 262i386/i386/vm86.c standard 263i386/i386/vm_machdep.c standard 264i386/linux/imgact_linux.c optional compat_linux 265i386/linux/linux_copyout.c optional compat_linux 266i386/linux/linux_dummy.c optional compat_linux 267i386/linux/linux_machdep.c optional compat_linux 268i386/linux/linux_ptrace.c optional compat_linux 269i386/linux/linux_sysent.c optional compat_linux 270i386/linux/linux_sysvec.c optional compat_linux 271i386/pci/pci_cfgreg.c optional pci 272i386/pci/pci_pir.c optional pci 273isa/syscons_isa.c optional sc 274isa/vga_isa.c optional vga 275kern/kern_clocksource.c standard 276kern/imgact_aout.c optional compat_aout 277kern/subr_sfbuf.c standard 278libkern/divdi3.c standard 279libkern/ffsll.c standard 280libkern/flsll.c standard 281libkern/memcmp.c standard 282libkern/memset.c standard 283libkern/moddi3.c standard 284libkern/qdivrem.c standard 285libkern/ucmpdi2.c standard 286libkern/udivdi3.c standard 287libkern/umoddi3.c standard 288# 289# x86 real mode BIOS support, required by dpms/pci/vesa 290# 291compat/x86bios/x86bios.c optional x86bios | dpms | pci | vesa 292# 293# bvm console 294# 295dev/bvm/bvm_console.c optional bvmconsole 296dev/bvm/bvm_dbg.c optional bvmdebug 297# Common files where we currently configure the system differently, but perhaps shouldn't 298# config(8) doesn't have a way to force standard options, so we've been inconsistent 299# about marking non-optional things 'standard'. 300x86/acpica/madt.c optional acpi apic 301x86/cpufreq/smist.c optional cpufreq 302x86/isa/atpic.c optional atpic 303x86/isa/elcr.c optional atpic | apic 304x86/isa/isa.c optional isa 305x86/isa/isa_dma.c optional isa 306x86/x86/io_apic.c optional apic 307x86/x86/local_apic.c optional apic 308x86/x86/mptable.c optional apic 309x86/x86/mptable_pci.c optional apic pci 310x86/x86/msi.c optional apic pci 311