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