1# This file tells config what files go into building a kernel, 2# files marked standard are always included. 3# 4# $FreeBSD$ 5# 6# The long compile-with and dependency lines are required because of 7# limitations in config: backslash-newline doesn't work in strings, and 8# dependency lines other than the first are silently ignored. 9# 10linux_genassym.o optional compat_linux \ 11 dependency "$S/i386/linux/linux_genassym.c" \ 12 compile-with "${CC} ${CFLAGS:N-fno-common} -c ${.IMPSRC}" \ 13 no-obj no-implicit-rule \ 14 clean "linux_genassym.o" 15# 16linux_assym.h optional compat_linux \ 17 dependency "$S/kern/genassym.sh linux_genassym.o" \ 18 compile-with "sh $S/kern/genassym.sh linux_genassym.o > ${.TARGET}" \ 19 no-obj no-implicit-rule before-depend \ 20 clean "linux_assym.h" 21# 22svr4_genassym.o optional compat_svr4 \ 23 dependency "$S/i386/svr4/svr4_genassym.c" \ 24 compile-with "${CC} ${CFLAGS:N-fno-common} -c ${.IMPSRC}" \ 25 no-obj no-implicit-rule \ 26 clean "svr4_genassym.o" 27# 28svr4_assym.h optional compat_svr4 \ 29 dependency "$S/kern/genassym.sh svr4_genassym.o" \ 30 compile-with "sh $S/kern/genassym.sh svr4_genassym.o > ${.TARGET}" \ 31 no-obj no-implicit-rule before-depend \ 32 clean "svr4_assym.h" 33# 34font.h optional sc_dflt_font \ 35 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" \ 36 no-obj no-implicit-rule before-depend \ 37 clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8" 38# 39atkbdmap.h optional atkbd_dflt_keymap \ 40 compile-with "/usr/sbin/kbdcontrol -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" \ 41 no-obj no-implicit-rule before-depend \ 42 clean "atkbdmap.h" 43# 44ukbdmap.h optional ukbd_dflt_keymap \ 45 compile-with "/usr/sbin/kbdcontrol -L ${UKBD_DFLT_KEYMAP} | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > ukbdmap.h" \ 46 no-obj no-implicit-rule before-depend \ 47 clean "ukbdmap.h" 48# 49nvenetlib.o optional nve pci \ 50 dependency "$S/contrib/dev/nve/i386/nvenetlib.o.bz2.uu" \ 51 compile-with "uudecode $S/contrib/dev/nve/i386/nvenetlib.o.bz2.uu ; bzip2 -df nvenetlib.o.bz2" \ 52 no-implicit-rule 53# 54os+%DIKED-nve.h optional nve pci \ 55 dependency "$S/contrib/dev/nve/os.h" \ 56 compile-with "sed -e 's/^.*#include.*phy\.h.*$$//' $S/contrib/dev/nve/os.h > os+%DIKED-nve.h" \ 57 no-implicit-rule no-obj before-depend \ 58 clean "os+%DIKED-nve.h" 59# 60hptmvraid.o optional hptmv \ 61 dependency "$S/dev/hptmv/i386-elf.raid.o.uu" \ 62 compile-with "uudecode < $S/dev/hptmv/i386-elf.raid.o.uu" \ 63 no-implicit-rule 64# 65hptrr_lib.o optional hptrr \ 66 dependency "$S/dev/hptrr/i386-elf.hptrr_lib.o.uu" \ 67 compile-with "uudecode < $S/dev/hptrr/i386-elf.hptrr_lib.o.uu" \ 68 no-implicit-rule 69# 70compat/linprocfs/linprocfs.c optional linprocfs 71compat/linsysfs/linsysfs.c optional linsysfs 72compat/linux/linux_emul.c optional compat_linux 73compat/linux/linux_file.c optional compat_linux 74compat/linux/linux_fork.c optional compat_linux 75compat/linux/linux_futex.c optional compat_linux 76compat/linux/linux_getcwd.c optional compat_linux 77compat/linux/linux_ioctl.c optional compat_linux 78compat/linux/linux_ipc.c optional compat_linux 79compat/linux/linux_mib.c optional compat_linux 80compat/linux/linux_misc.c optional compat_linux 81compat/linux/linux_signal.c optional compat_linux 82compat/linux/linux_socket.c optional compat_linux 83compat/linux/linux_stats.c optional compat_linux 84compat/linux/linux_sysctl.c optional compat_linux 85compat/linux/linux_time.c optional compat_linux 86compat/linux/linux_uid16.c optional compat_linux 87compat/linux/linux_util.c optional compat_linux 88compat/ndis/kern_ndis.c optional ndisapi pci 89compat/ndis/kern_windrv.c optional ndisapi pci 90compat/ndis/subr_hal.c optional ndisapi pci 91compat/ndis/subr_ndis.c optional ndisapi pci 92compat/ndis/subr_ntoskrnl.c optional ndisapi pci 93compat/ndis/subr_pe.c optional ndisapi pci 94compat/ndis/subr_usbd.c optional ndisapi pci 95compat/ndis/winx32_wrap.S optional ndisapi pci 96compat/svr4/imgact_svr4.c optional compat_svr4 97compat/svr4/svr4_fcntl.c optional compat_svr4 98compat/svr4/svr4_filio.c optional compat_svr4 99compat/svr4/svr4_ioctl.c optional compat_svr4 100compat/svr4/svr4_ipc.c optional compat_svr4 101compat/svr4/svr4_misc.c optional compat_svr4 102compat/svr4/svr4_resource.c optional compat_svr4 103compat/svr4/svr4_signal.c optional compat_svr4 104compat/svr4/svr4_socket.c optional compat_svr4 105compat/svr4/svr4_sockio.c optional compat_svr4 106compat/svr4/svr4_stat.c optional compat_svr4 107compat/svr4/svr4_stream.c optional compat_svr4 108compat/svr4/svr4_syscallnames.c optional compat_svr4 109compat/svr4/svr4_sysent.c optional compat_svr4 110compat/svr4/svr4_sysvec.c optional compat_svr4 111compat/svr4/svr4_termios.c optional compat_svr4 112bf_enc.o optional crypto | ipsec \ 113 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" \ 114 compile-with "${CC} -c -I$S/crypto/blowfish/arch/i386 ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}" \ 115 no-implicit-rule 116crypto/aesni/aesencdec_i386.S optional aesni 117crypto/aesni/aeskeys_i386.S optional aesni 118crypto/aesni/aesni.c optional aesni 119crypto/aesni/aesni_wrap.c optional aesni 120crypto/des/arch/i386/des_enc.S optional crypto | ipsec | netsmb 121crypto/via/padlock.c optional padlock 122crypto/via/padlock_cipher.c optional padlock 123crypto/via/padlock_hash.c optional padlock 124dev/advansys/adv_isa.c optional adv isa 125dev/agp/agp_ali.c optional agp 126dev/agp/agp_amd.c optional agp 127dev/agp/agp_amd64.c optional agp 128dev/agp/agp_ati.c optional agp 129dev/agp/agp_i810.c optional agp 130dev/agp/agp_intel.c optional agp 131dev/agp/agp_nvidia.c optional agp 132dev/agp/agp_sis.c optional agp 133dev/agp/agp_via.c optional agp 134dev/aic/aic_isa.c optional aic isa 135dev/amdsbwd/amdsbwd.c optional amdsbwd 136dev/amdtemp/amdtemp.c optional amdtemp 137dev/arcmsr/arcmsr.c optional arcmsr pci 138dev/asmc/asmc.c optional asmc isa 139dev/atkbdc/atkbd.c optional atkbd atkbdc 140dev/atkbdc/atkbd_atkbdc.c optional atkbd atkbdc 141dev/atkbdc/atkbdc.c optional atkbdc 142dev/atkbdc/atkbdc_isa.c optional atkbdc isa 143dev/atkbdc/atkbdc_subr.c optional atkbdc 144dev/atkbdc/psm.c optional psm atkbdc 145dev/ce/ceddk.c optional ce 146dev/ce/if_ce.c optional ce 147dev/ce/tau32-ddk.c optional ce 148dev/cm/if_cm_isa.c optional cm isa 149dev/coretemp/coretemp.c optional coretemp 150dev/cp/cpddk.c optional cp 151dev/cp/if_cp.c optional cp 152dev/cpuctl/cpuctl.c optional cpuctl 153dev/ctau/ctau.c optional ctau 154dev/ctau/ctddk.c optional ctau 155dev/ctau/if_ct.c optional ctau 156dev/cx/csigma.c optional cx 157dev/cx/cxddk.c optional cx 158dev/cx/if_cx.c optional cx 159dev/dpms/dpms.c optional dpms 160dev/ed/if_ed_3c503.c optional ed isa ed_3c503 161dev/ed/if_ed_isa.c optional ed isa 162dev/ed/if_ed_wd80x3.c optional ed isa 163dev/ed/if_ed_hpp.c optional ed isa ed_hpp 164dev/ed/if_ed_sic.c optional ed isa ed_sic 165dev/fb/fb.c optional fb | vga 166dev/fb/s3_pci.c optional s3pci 167dev/fb/vesa.c optional vga vesa 168dev/fb/vga.c optional vga 169dev/fdc/fdc.c optional fdc 170dev/fdc/fdc_acpi.c optional fdc 171dev/fdc/fdc_isa.c optional fdc isa 172dev/fdc/fdc_pccard.c optional fdc pccard 173dev/fe/if_fe_isa.c optional fe isa 174dev/glxiic/glxiic.c optional glxiic 175dev/glxsb/glxsb.c optional glxsb 176dev/glxsb/glxsb_hash.c optional glxsb 177dev/hptmv/entry.c optional hptmv 178dev/hptmv/mv.c optional hptmv 179dev/hptmv/gui_lib.c optional hptmv 180dev/hptmv/hptproc.c optional hptmv 181dev/hptmv/ioctl.c optional hptmv 182dev/hptrr/hptrr_os_bsd.c optional hptrr 183dev/hptrr/hptrr_osm_bsd.c optional hptrr 184dev/hptrr/hptrr_config.c optional hptrr 185dev/hwpmc/hwpmc_amd.c optional hwpmc 186dev/hwpmc/hwpmc_intel.c optional hwpmc 187dev/hwpmc/hwpmc_core.c optional hwpmc 188dev/hwpmc/hwpmc_uncore.c optional hwpmc 189dev/hwpmc/hwpmc_pentium.c optional hwpmc 190dev/hwpmc/hwpmc_piv.c optional hwpmc 191dev/hwpmc/hwpmc_ppro.c optional hwpmc 192dev/hwpmc/hwpmc_tsc.c optional hwpmc 193dev/hwpmc/hwpmc_x86.c optional hwpmc 194dev/ichwd/ichwd.c optional ichwd 195dev/if_ndis/if_ndis.c optional ndis 196dev/if_ndis/if_ndis_pccard.c optional ndis pccard 197dev/if_ndis/if_ndis_pci.c optional ndis cardbus | ndis pci 198dev/if_ndis/if_ndis_usb.c optional ndis usb 199dev/io/iodev.c optional io 200dev/ipmi/ipmi.c optional ipmi 201dev/ipmi/ipmi_acpi.c optional ipmi acpi 202dev/ipmi/ipmi_isa.c optional ipmi isa 203dev/ipmi/ipmi_kcs.c optional ipmi 204dev/ipmi/ipmi_smic.c optional ipmi 205dev/ipmi/ipmi_smbus.c optional ipmi smbus 206dev/ipmi/ipmi_smbios.c optional ipmi 207dev/ipmi/ipmi_ssif.c optional ipmi smbus 208dev/ipmi/ipmi_pci.c optional ipmi pci 209dev/ipmi/ipmi_linux.c optional ipmi compat_linux 210dev/kbd/kbd.c optional atkbd | sc | ukbd 211dev/le/if_le_isa.c optional le isa 212dev/lindev/full.c optional lindev 213dev/lindev/lindev.c optional lindev 214dev/mse/mse.c optional mse 215dev/mse/mse_isa.c optional mse isa 216dev/nfe/if_nfe.c optional nfe pci 217dev/nve/if_nve.c optional nve pci 218dev/nvram/nvram.c optional nvram isa 219dev/pcf/pcf_isa.c optional pcf 220dev/random/nehemiah.c optional random 221dev/sbni/if_sbni.c optional sbni 222dev/sbni/if_sbni_isa.c optional sbni isa 223dev/sbni/if_sbni_pci.c optional sbni pci 224dev/sio/sio.c optional sio 225dev/sio/sio_isa.c optional sio isa 226dev/sio/sio_pccard.c optional sio pccard 227dev/sio/sio_pci.c optional sio pci 228dev/sio/sio_puc.c optional sio puc 229dev/speaker/spkr.c optional speaker 230dev/syscons/apm/apm_saver.c optional apm_saver apm 231dev/syscons/scterm-teken.c optional sc 232dev/syscons/scvesactl.c optional sc vga vesa 233dev/syscons/scvgarndr.c optional sc vga 234dev/syscons/scvtb.c optional sc 235dev/tpm/tpm.c optional tpm 236dev/tpm/tpm_acpi.c optional tpm acpi 237dev/tpm/tpm_isa.c optional tpm isa 238dev/uart/uart_cpu_i386.c optional uart 239dev/viawd/viawd.c optional viawd 240dev/acpica/acpi_if.m standard 241dev/acpi_support/acpi_wmi_if.m standard 242dev/wpi/if_wpi.c optional wpi 243i386/acpica/acpi_machdep.c optional acpi 244acpi_wakecode.o optional acpi \ 245 dependency "$S/i386/acpica/acpi_wakecode.S assym.s" \ 246 compile-with "${NORMAL_S}" \ 247 no-obj no-implicit-rule before-depend \ 248 clean "acpi_wakecode.o" 249acpi_wakecode.bin optional acpi \ 250 dependency "acpi_wakecode.o" \ 251 compile-with "objcopy -S -O binary acpi_wakecode.o ${.TARGET}" \ 252 no-obj no-implicit-rule before-depend \ 253 clean "acpi_wakecode.bin" 254acpi_wakecode.h optional acpi \ 255 dependency "acpi_wakecode.bin" \ 256 compile-with "file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}" \ 257 no-obj no-implicit-rule before-depend \ 258 clean "acpi_wakecode.h" 259acpi_wakedata.h optional acpi \ 260 dependency "acpi_wakecode.o" \ 261 compile-with '${NM} -n --defined-only acpi_wakecode.o | while read offset dummy what; do echo "#define $${what} 0x$${offset}"; done > ${.TARGET}' \ 262 no-obj no-implicit-rule before-depend \ 263 clean "acpi_wakedata.h" 264# 265i386/acpica/acpi_wakeup.c optional acpi 266i386/bios/apm.c optional apm 267i386/bios/mca_machdep.c optional mca 268i386/bios/smapi.c optional smapi 269i386/bios/smapi_bios.S optional smapi 270#i386/i386/apic_vector.s optional apic 271i386/i386/atomic.c standard \ 272 compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} ${.IMPSRC}" 273i386/i386/autoconf.c standard 274i386/i386/bios.c optional native 275i386/i386/bioscall.s optional native 276i386/i386/bpf_jit_machdep.c optional bpf_jitter 277i386/i386/db_disasm.c optional ddb 278i386/i386/db_interface.c optional ddb 279i386/i386/db_trace.c optional ddb 280i386/i386/elan-mmcr.c optional cpu_elan | cpu_soekris 281i386/i386/elf_machdep.c standard 282i386/i386/exception.s optional native 283i386/xen/exception.s optional xen 284i386/i386/gdb_machdep.c optional gdb 285i386/i386/geode.c optional cpu_geode 286i386/i386/i686_mem.c optional mem 287i386/i386/identcpu.c standard 288i386/i386/in_cksum.c optional inet | inet6 289i386/i386/initcpu.c standard 290i386/i386/intr_machdep.c standard 291i386/i386/io.c optional io 292i386/i386/k6_mem.c optional mem 293i386/i386/legacy.c optional native 294i386/i386/locore.s optional native no-obj 295i386/xen/locore.s optional xen no-obj 296i386/i386/longrun.c optional cpu_enable_longrun 297i386/i386/machdep.c standard 298i386/xen/xen_machdep.c optional xen 299i386/i386/mem.c optional mem 300i386/i386/minidump_machdep.c standard 301i386/i386/mp_clock.c optional smp 302i386/i386/mp_machdep.c optional native smp 303i386/xen/mp_machdep.c optional xen smp 304i386/i386/mp_watchdog.c optional mp_watchdog smp 305i386/i386/mpboot.s optional smp native 306i386/xen/mptable.c optional apic xen 307i386/i386/perfmon.c optional perfmon 308i386/i386/pmap.c optional native 309i386/xen/pmap.c optional xen 310i386/i386/ptrace_machdep.c standard 311i386/i386/stack_machdep.c optional ddb | stack 312i386/i386/support.s standard 313i386/i386/swtch.s standard 314i386/i386/sys_machdep.c standard 315i386/i386/trap.c standard 316i386/i386/uio_machdep.c standard 317i386/i386/vm86.c standard 318i386/i386/vm_machdep.c standard 319i386/ibcs2/ibcs2_errno.c optional ibcs2 320i386/ibcs2/ibcs2_fcntl.c optional ibcs2 321i386/ibcs2/ibcs2_ioctl.c optional ibcs2 322i386/ibcs2/ibcs2_ipc.c optional ibcs2 323i386/ibcs2/ibcs2_isc.c optional ibcs2 324i386/ibcs2/ibcs2_isc_sysent.c optional ibcs2 325i386/ibcs2/ibcs2_misc.c optional ibcs2 326i386/ibcs2/ibcs2_msg.c optional ibcs2 327i386/ibcs2/ibcs2_other.c optional ibcs2 328i386/ibcs2/ibcs2_signal.c optional ibcs2 329i386/ibcs2/ibcs2_socksys.c optional ibcs2 330i386/ibcs2/ibcs2_stat.c optional ibcs2 331i386/ibcs2/ibcs2_sysent.c optional ibcs2 332i386/ibcs2/ibcs2_sysi86.c optional ibcs2 333i386/ibcs2/ibcs2_sysvec.c optional ibcs2 334i386/ibcs2/ibcs2_util.c optional ibcs2 335i386/ibcs2/ibcs2_xenix.c optional ibcs2 336i386/ibcs2/ibcs2_xenix_sysent.c optional ibcs2 337i386/ibcs2/imgact_coff.c optional ibcs2 338i386/xen/clock.c optional xen 339i386/xen/xen_clock_util.c optional xen 340i386/xen/xen_rtc.c optional xen 341i386/isa/elink.c optional ep | ie 342i386/isa/npx.c optional npx 343i386/isa/pmtimer.c optional pmtimer 344i386/isa/prof_machdep.c optional profiling-routine 345i386/isa/spic.c optional spic 346i386/linux/imgact_linux.c optional compat_linux 347i386/linux/linux_dummy.c optional compat_linux 348i386/linux/linux_locore.s optional compat_linux \ 349 dependency "linux_assym.h" 350i386/linux/linux_machdep.c optional compat_linux 351i386/linux/linux_ptrace.c optional compat_linux 352i386/linux/linux_support.s optional compat_linux \ 353 dependency "linux_assym.h" 354i386/linux/linux_sysent.c optional compat_linux 355i386/linux/linux_sysvec.c optional compat_linux 356i386/pci/pci_cfgreg.c optional pci 357i386/pci/pci_pir.c optional pci 358i386/svr4/svr4_locore.s optional compat_svr4 \ 359 dependency "svr4_assym.h" \ 360 warning "COMPAT_SVR4 is broken and should be avoided" 361i386/svr4/svr4_machdep.c optional compat_svr4 362# 363isa/syscons_isa.c optional sc 364isa/vga_isa.c optional vga 365kern/kern_clocksource.c standard 366kern/imgact_aout.c optional compat_aout 367kern/imgact_gzip.c optional gzip 368libkern/divdi3.c standard 369libkern/ffsl.c standard 370libkern/flsl.c standard 371libkern/memmove.c standard 372libkern/memset.c standard 373libkern/moddi3.c standard 374libkern/qdivrem.c standard 375libkern/ucmpdi2.c standard 376libkern/udivdi3.c standard 377libkern/umoddi3.c standard 378i386/xbox/xbox.c optional xbox 379i386/xbox/xboxfb.c optional xboxfb 380dev/fb/boot_font.c optional xboxfb 381i386/xbox/pic16l.s optional xbox 382# 383# x86 real mode BIOS support, required by atkbdc/dpms/vesa 384# 385compat/x86bios/x86bios.c optional x86bios | atkbd | dpms | vesa 386# 387# x86 shared code between IA32, AMD64 and PC98 architectures 388# 389x86/acpica/OsdEnvironment.c optional acpi 390x86/acpica/acpi_apm.c optional acpi 391x86/acpica/madt.c optional acpi apic 392x86/acpica/srat.c optional acpi 393x86/bios/smbios.c optional smbios 394x86/bios/vpd.c optional vpd 395x86/cpufreq/est.c optional cpufreq 396x86/cpufreq/hwpstate.c optional cpufreq 397x86/cpufreq/p4tcc.c optional cpufreq 398x86/cpufreq/powernow.c optional cpufreq 399x86/cpufreq/smist.c optional cpufreq 400x86/isa/atpic.c optional atpic 401x86/isa/atrtc.c optional atpic 402x86/isa/clock.c optional native 403x86/isa/elcr.c standard 404x86/isa/isa.c optional isa 405x86/isa/isa_dma.c optional isa 406x86/isa/nmi.c standard 407x86/isa/orm.c optional isa 408x86/pci/pci_bus.c optional pci 409x86/pci/qpi.c optional pci 410x86/x86/busdma_machdep.c standard 411x86/x86/dump_machdep.c standard 412x86/x86/io_apic.c optional apic 413x86/x86/local_apic.c optional apic 414x86/x86/mca.c standard 415x86/x86/mptable.c optional apic native 416x86/x86/mptable_pci.c optional apic native pci 417x86/x86/msi.c optional apic pci 418x86/x86/nexus.c standard 419x86/x86/tsc.c standard 420