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# 14# 15ia32_genassym.o standard \ 16 dependency "$S/compat/ia32/ia32_genassym.c offset.inc" \ 17 compile-with "${CC} ${CFLAGS:N-flto:N-fno-common} -fcommon -c ${.IMPSRC}" \ 18 no-obj no-implicit-rule \ 19 clean "ia32_genassym.o" 20# 21ia32_assym.h standard \ 22 dependency "$S/kern/genassym.sh ia32_genassym.o" \ 23 compile-with "env NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh ia32_genassym.o > ${.TARGET}" \ 24 no-obj no-implicit-rule before-depend \ 25 clean "ia32_assym.h" 26# 27amd64/acpica/acpi_machdep.c optional acpi 28amd64/acpica/acpi_wakeup.c optional acpi 29acpi_wakecode.o optional acpi \ 30 dependency "$S/amd64/acpica/acpi_wakecode.S assym.inc" \ 31 compile-with "${NORMAL_S}" \ 32 no-obj no-implicit-rule before-depend \ 33 clean "acpi_wakecode.o" 34acpi_wakecode.bin optional acpi \ 35 dependency "acpi_wakecode.o" \ 36 compile-with "${OBJCOPY} -S -O binary acpi_wakecode.o ${.TARGET}" \ 37 no-obj no-implicit-rule before-depend \ 38 clean "acpi_wakecode.bin" 39acpi_wakecode.h optional acpi \ 40 dependency "acpi_wakecode.bin" \ 41 compile-with "file2c -sx 'static char wakecode[] = {' '};' < acpi_wakecode.bin > ${.TARGET}" \ 42 no-obj no-implicit-rule before-depend \ 43 clean "acpi_wakecode.h" 44acpi_wakedata.h optional acpi \ 45 dependency "acpi_wakecode.o" \ 46 compile-with '${NM} -n --defined-only acpi_wakecode.o | while read offset dummy what; do echo "#define $${what} 0x$${offset}"; done > ${.TARGET}' \ 47 no-obj no-implicit-rule before-depend \ 48 clean "acpi_wakedata.h" 49# 50#amd64/amd64/apic_vector.S standard 51amd64/amd64/bios.c standard 52amd64/amd64/bpf_jit_machdep.c optional bpf_jitter 53amd64/amd64/copyout.c standard 54amd64/amd64/cpu_switch.S standard 55amd64/amd64/db_disasm.c optional ddb 56amd64/amd64/db_interface.c optional ddb 57amd64/amd64/db_trace.c optional ddb 58amd64/amd64/efirt_machdep.c optional efirt 59amd64/amd64/efirt_support.S optional efirt 60amd64/amd64/elf_machdep.c standard 61amd64/amd64/exception.S standard 62amd64/amd64/exec_machdep.c standard 63amd64/amd64/fpu.c standard 64amd64/amd64/gdb_machdep.c optional gdb 65amd64/amd64/in_cksum.c optional inet | inet6 66amd64/amd64/initcpu.c standard 67amd64/amd64/io.c optional io 68amd64/amd64/locore.S standard no-obj 69amd64/amd64/xen-locore.S optional xenhvm \ 70 compile-with "${NORMAL_S} -g0" \ 71 no-ctfconvert 72amd64/amd64/machdep.c standard 73amd64/amd64/mem.c optional mem 74amd64/amd64/minidump_machdep.c standard 75amd64/amd64/mp_machdep.c optional smp 76amd64/amd64/mpboot.S optional smp 77amd64/amd64/pmap.c standard 78amd64/amd64/ptrace_machdep.c standard 79amd64/amd64/sigtramp.S standard 80amd64/amd64/support.S standard 81amd64/amd64/sys_machdep.c standard 82amd64/amd64/trap.c standard 83amd64/amd64/uio_machdep.c standard 84amd64/amd64/uma_machdep.c standard 85amd64/amd64/vm_machdep.c standard 86amd64/pci/pci_cfgreg.c optional pci 87cddl/dev/dtrace/amd64/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" 88cddl/dev/dtrace/amd64/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" 89crypto/aesni/aeskeys_amd64.S optional aesni 90crypto/des/des_enc.c optional netsmb 91crypto/openssl/amd64/chacha-x86_64.S optional ossl 92crypto/openssl/amd64/poly1305-x86_64.S optional ossl 93crypto/openssl/amd64/sha1-x86_64.S optional ossl 94crypto/openssl/amd64/sha256-x86_64.S optional ossl 95crypto/openssl/amd64/sha512-x86_64.S optional ossl 96dev/acpi_support/acpi_wmi_if.m standard 97dev/agp/agp_amd64.c optional agp 98dev/agp/agp_i810.c optional agp 99dev/agp/agp_via.c optional agp 100dev/amdgpio/amdgpio.c optional amdgpio 101dev/axgbe/if_axgbe_pci.c optional axp 102dev/axgbe/xgbe-desc.c optional axp 103dev/axgbe/xgbe-dev.c optional axp 104dev/axgbe/xgbe-drv.c optional axp 105dev/axgbe/xgbe-mdio.c optional axp 106dev/axgbe/xgbe-sysctl.c optional axp 107dev/axgbe/xgbe-txrx.c optional axp 108dev/axgbe/xgbe_osdep.c optional axp 109dev/axgbe/xgbe-i2c.c optional axp 110dev/axgbe/xgbe-phy-v2.c optional axp 111dev/hyperv/vmbus/amd64/hyperv_machdep.c optional hyperv 112dev/hyperv/vmbus/amd64/vmbus_vector.S optional hyperv 113dev/ice/if_ice_iflib.c optional ice pci \ 114 compile-with "${NORMAL_C} -I$S/dev/ice" 115dev/ice/ice_lib.c optional ice pci \ 116 compile-with "${NORMAL_C} -I$S/dev/ice" 117dev/ice/ice_osdep.c optional ice pci \ 118 compile-with "${NORMAL_C} -I$S/dev/ice" 119dev/ice/ice_resmgr.c optional ice pci \ 120 compile-with "${NORMAL_C} -I$S/dev/ice" 121dev/ice/ice_strings.c optional ice pci \ 122 compile-with "${NORMAL_C} -I$S/dev/ice" 123dev/ice/ice_iflib_recovery_txrx.c optional ice pci \ 124 compile-with "${NORMAL_C} -I$S/dev/ice" 125dev/ice/ice_iflib_txrx.c optional ice pci \ 126 compile-with "${NORMAL_C} -I$S/dev/ice" 127dev/ice/ice_common.c optional ice pci \ 128 compile-with "${NORMAL_C} -I$S/dev/ice" 129dev/ice/ice_controlq.c optional ice pci \ 130 compile-with "${NORMAL_C} -I$S/dev/ice" 131dev/ice/ice_dcb.c optional ice pci \ 132 compile-with "${NORMAL_C} -I$S/dev/ice" 133dev/ice/ice_flex_pipe.c optional ice pci \ 134 compile-with "${NORMAL_C} -I$S/dev/ice" 135dev/ice/ice_flow.c optional ice pci \ 136 compile-with "${NORMAL_C} -I$S/dev/ice" 137dev/ice/ice_nvm.c optional ice pci \ 138 compile-with "${NORMAL_C} -I$S/dev/ice" 139dev/ice/ice_sched.c optional ice pci \ 140 compile-with "${NORMAL_C} -I$S/dev/ice" 141dev/ice/ice_sriov.c optional ice pci \ 142 compile-with "${NORMAL_C} -I$S/dev/ice" 143dev/ice/ice_switch.c optional ice pci \ 144 compile-with "${NORMAL_C} -I$S/dev/ice" 145dev/ice/ice_vlan_mode.c optional ice pci \ 146 compile-with "${NORMAL_C} -I$S/dev/ice" 147ice_ddp.c optional ice_ddp \ 148 compile-with "${AWK} -f $S/tools/fw_stub.awk ice_ddp.fw:ice_ddp:0x01031800 -mice_ddp -c${.TARGET}" \ 149 no-ctfconvert no-implicit-rule before-depend local \ 150 clean "ice_ddp.c" 151ice_ddp.fwo optional ice_ddp \ 152 dependency "ice_ddp.fw" \ 153 compile-with "${NORMAL_FWO}" \ 154 no-implicit-rule \ 155 clean "ice_ddp.fwo" 156ice_ddp.fw optional ice_ddp \ 157 dependency "$S/contrib/dev/ice/ice-1.3.24.0.pkg" \ 158 compile-with "${CP} $S/contrib/dev/ice/ice-1.3.24.0.pkg ice_ddp.fw" \ 159 no-obj no-implicit-rule \ 160 clean "ice_ddp.fw" 161dev/ioat/ioat.c optional ioat pci 162dev/ioat/ioat_test.c optional ioat pci 163dev/ixl/if_ixl.c optional ixl pci \ 164 compile-with "${NORMAL_C} -I$S/dev/ixl" 165dev/ixl/ixl_pf_main.c optional ixl pci \ 166 compile-with "${NORMAL_C} -I$S/dev/ixl" 167dev/ixl/ixl_pf_iflib.c optional ixl pci \ 168 compile-with "${NORMAL_C} -I$S/dev/ixl" 169dev/ixl/ixl_pf_qmgr.c optional ixl pci \ 170 compile-with "${NORMAL_C} -I$S/dev/ixl" 171dev/ixl/ixl_pf_iov.c optional ixl pci pci_iov \ 172 compile-with "${NORMAL_C} -I$S/dev/ixl" 173dev/ixl/ixl_pf_i2c.c optional ixl pci \ 174 compile-with "${NORMAL_C} -I$S/dev/ixl" 175dev/ixl/if_iavf.c optional iavf pci \ 176 compile-with "${NORMAL_C} -I$S/dev/ixl" 177dev/ixl/iavf_vc.c optional iavf pci \ 178 compile-with "${NORMAL_C} -I$S/dev/ixl" 179dev/ixl/ixl_txrx.c optional ixl pci | iavf pci \ 180 compile-with "${NORMAL_C} -I$S/dev/ixl" 181dev/ixl/i40e_osdep.c optional ixl pci | iavf pci \ 182 compile-with "${NORMAL_C} -I$S/dev/ixl" 183dev/ixl/i40e_lan_hmc.c optional ixl pci | iavf pci \ 184 compile-with "${NORMAL_C} -I$S/dev/ixl" 185dev/ixl/i40e_hmc.c optional ixl pci | iavf pci \ 186 compile-with "${NORMAL_C} -I$S/dev/ixl" 187dev/ixl/i40e_common.c optional ixl pci | iavf pci \ 188 compile-with "${NORMAL_C} -I$S/dev/ixl" 189dev/ixl/i40e_nvm.c optional ixl pci | iavf pci \ 190 compile-with "${NORMAL_C} -I$S/dev/ixl" 191dev/ixl/i40e_adminq.c optional ixl pci | iavf pci \ 192 compile-with "${NORMAL_C} -I$S/dev/ixl" 193dev/ixl/i40e_dcb.c optional ixl pci \ 194 compile-with "${NORMAL_C} -I$S/dev/ixl" 195dev/nctgpio/nctgpio.c optional nctgpio 196dev/nfe/if_nfe.c optional nfe pci 197dev/ntb/if_ntb/if_ntb.c optional if_ntb 198dev/ntb/ntb_transport.c optional ntb_transport | if_ntb 199dev/ntb/ntb.c optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw 200dev/ntb/ntb_if.m optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw 201dev/ntb/ntb_hw/ntb_hw_amd.c optional ntb_hw_amd | ntb_hw 202dev/ntb/ntb_hw/ntb_hw_intel.c optional ntb_hw_intel | ntb_hw 203dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw 204dev/ntb/test/ntb_tool.c optional ntb_tool 205dev/nvram/nvram.c optional nvram isa 206dev/random/ivy.c optional rdrand_rng !random_loadable 207dev/random/nehemiah.c optional padlock_rng !random_loadable 208dev/qlxge/qls_dbg.c optional qlxge pci 209dev/qlxge/qls_dump.c optional qlxge pci 210dev/qlxge/qls_hw.c optional qlxge pci 211dev/qlxge/qls_ioctl.c optional qlxge pci 212dev/qlxge/qls_isr.c optional qlxge pci 213dev/qlxge/qls_os.c optional qlxge pci 214dev/qlxgb/qla_dbg.c optional qlxgb pci 215dev/qlxgb/qla_hw.c optional qlxgb pci 216dev/qlxgb/qla_ioctl.c optional qlxgb pci 217dev/qlxgb/qla_isr.c optional qlxgb pci 218dev/qlxgb/qla_misc.c optional qlxgb pci 219dev/qlxgb/qla_os.c optional qlxgb pci 220dev/qlxgbe/ql_dbg.c optional qlxgbe pci 221dev/qlxgbe/ql_hw.c optional qlxgbe pci 222dev/qlxgbe/ql_ioctl.c optional qlxgbe pci 223dev/qlxgbe/ql_isr.c optional qlxgbe pci 224dev/qlxgbe/ql_misc.c optional qlxgbe pci 225dev/qlxgbe/ql_os.c optional qlxgbe pci 226dev/qlxgbe/ql_reset.c optional qlxgbe pci 227dev/qlxgbe/ql_fw.c optional qlxgbe pci 228dev/qlxgbe/ql_boot.c optional qlxgbe pci 229dev/qlxgbe/ql_minidump.c optional qlxgbe pci 230dev/qlnx/qlnxe/ecore_cxt.c optional qlnxe pci \ 231 compile-with "${LINUXKPI_C}" 232dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c optional qlnxe pci \ 233 compile-with "${LINUXKPI_C}" 234dev/qlnx/qlnxe/ecore_dcbx.c optional qlnxe pci \ 235 compile-with "${LINUXKPI_C}" 236dev/qlnx/qlnxe/ecore_dev.c optional qlnxe pci \ 237 compile-with "${LINUXKPI_C}" 238dev/qlnx/qlnxe/ecore_hw.c optional qlnxe pci \ 239 compile-with "${LINUXKPI_C}" 240dev/qlnx/qlnxe/ecore_init_fw_funcs.c optional qlnxe pci \ 241 compile-with "${LINUXKPI_C}" 242dev/qlnx/qlnxe/ecore_init_ops.c optional qlnxe pci \ 243 compile-with "${LINUXKPI_C}" 244dev/qlnx/qlnxe/ecore_int.c optional qlnxe pci \ 245 compile-with "${LINUXKPI_C}" 246dev/qlnx/qlnxe/ecore_l2.c optional qlnxe pci \ 247 compile-with "${LINUXKPI_C}" 248dev/qlnx/qlnxe/ecore_mcp.c optional qlnxe pci \ 249 compile-with "${LINUXKPI_C}" 250dev/qlnx/qlnxe/ecore_sp_commands.c optional qlnxe pci \ 251 compile-with "${LINUXKPI_C}" 252dev/qlnx/qlnxe/ecore_spq.c optional qlnxe pci \ 253 compile-with "${LINUXKPI_C}" 254dev/qlnx/qlnxe/qlnx_ioctl.c optional qlnxe pci \ 255 compile-with "${LINUXKPI_C}" 256dev/qlnx/qlnxe/qlnx_os.c optional qlnxe pci \ 257 compile-with "${LINUXKPI_C}" 258dev/sfxge/common/ef10_ev.c optional sfxge pci 259dev/sfxge/common/ef10_filter.c optional sfxge pci 260dev/sfxge/common/ef10_image.c optional sfxge pci 261dev/sfxge/common/ef10_intr.c optional sfxge pci 262dev/sfxge/common/ef10_mac.c optional sfxge pci 263dev/sfxge/common/ef10_mcdi.c optional sfxge pci 264dev/sfxge/common/ef10_nic.c optional sfxge pci 265dev/sfxge/common/ef10_nvram.c optional sfxge pci 266dev/sfxge/common/ef10_phy.c optional sfxge pci 267dev/sfxge/common/ef10_rx.c optional sfxge pci 268dev/sfxge/common/ef10_tx.c optional sfxge pci 269dev/sfxge/common/ef10_vpd.c optional sfxge pci 270dev/sfxge/common/efx_bootcfg.c optional sfxge pci 271dev/sfxge/common/efx_crc32.c optional sfxge pci 272dev/sfxge/common/efx_ev.c optional sfxge pci 273dev/sfxge/common/efx_filter.c optional sfxge pci 274dev/sfxge/common/efx_hash.c optional sfxge pci 275dev/sfxge/common/efx_intr.c optional sfxge pci 276dev/sfxge/common/efx_lic.c optional sfxge pci 277dev/sfxge/common/efx_mac.c optional sfxge pci 278dev/sfxge/common/efx_mcdi.c optional sfxge pci 279dev/sfxge/common/efx_mon.c optional sfxge pci 280dev/sfxge/common/efx_nic.c optional sfxge pci 281dev/sfxge/common/efx_nvram.c optional sfxge pci 282dev/sfxge/common/efx_phy.c optional sfxge pci 283dev/sfxge/common/efx_port.c optional sfxge pci 284dev/sfxge/common/efx_rx.c optional sfxge pci 285dev/sfxge/common/efx_sram.c optional sfxge pci 286dev/sfxge/common/efx_tunnel.c optional sfxge pci 287dev/sfxge/common/efx_tx.c optional sfxge pci 288dev/sfxge/common/efx_vpd.c optional sfxge pci 289dev/sfxge/common/hunt_nic.c optional sfxge pci 290dev/sfxge/common/mcdi_mon.c optional sfxge pci 291dev/sfxge/common/medford_nic.c optional sfxge pci 292dev/sfxge/common/medford2_nic.c optional sfxge pci 293dev/sfxge/common/siena_mac.c optional sfxge pci 294dev/sfxge/common/siena_mcdi.c optional sfxge pci 295dev/sfxge/common/siena_nic.c optional sfxge pci 296dev/sfxge/common/siena_nvram.c optional sfxge pci 297dev/sfxge/common/siena_phy.c optional sfxge pci 298dev/sfxge/common/siena_sram.c optional sfxge pci 299dev/sfxge/common/siena_vpd.c optional sfxge pci 300dev/sfxge/sfxge.c optional sfxge pci 301dev/sfxge/sfxge_dma.c optional sfxge pci 302dev/sfxge/sfxge_ev.c optional sfxge pci 303dev/sfxge/sfxge_intr.c optional sfxge pci 304dev/sfxge/sfxge_mcdi.c optional sfxge pci 305dev/sfxge/sfxge_nvram.c optional sfxge pci 306dev/sfxge/sfxge_port.c optional sfxge pci 307dev/sfxge/sfxge_rx.c optional sfxge pci 308dev/sfxge/sfxge_tx.c optional sfxge pci 309dev/smartpqi/smartpqi_cam.c optional smartpqi 310dev/smartpqi/smartpqi_cmd.c optional smartpqi 311dev/smartpqi/smartpqi_discovery.c optional smartpqi 312dev/smartpqi/smartpqi_event.c optional smartpqi 313dev/smartpqi/smartpqi_helper.c optional smartpqi 314dev/smartpqi/smartpqi_init.c optional smartpqi 315dev/smartpqi/smartpqi_intr.c optional smartpqi 316dev/smartpqi/smartpqi_ioctl.c optional smartpqi 317dev/smartpqi/smartpqi_main.c optional smartpqi 318dev/smartpqi/smartpqi_mem.c optional smartpqi 319dev/smartpqi/smartpqi_misc.c optional smartpqi 320dev/smartpqi/smartpqi_queue.c optional smartpqi 321dev/smartpqi/smartpqi_request.c optional smartpqi 322dev/smartpqi/smartpqi_response.c optional smartpqi 323dev/smartpqi/smartpqi_sis.c optional smartpqi 324dev/smartpqi/smartpqi_tag.c optional smartpqi 325dev/speaker/spkr.c optional speaker 326dev/sume/if_sume.c optional sume 327dev/superio/superio.c optional superio isa 328dev/syscons/apm/apm_saver.c optional apm_saver apm 329dev/syscons/scvesactl.c optional sc vga vesa 330dev/syscons/scvgarndr.c optional sc vga 331dev/tpm/tpm.c optional tpm 332dev/tpm/tpm20.c optional tpm 333dev/tpm/tpm_crb.c optional tpm acpi 334dev/tpm/tpm_tis.c optional tpm acpi 335dev/tpm/tpm_acpi.c optional tpm acpi 336dev/tpm/tpm_isa.c optional tpm isa 337dev/uart/uart_cpu_x86.c optional uart 338dev/viawd/viawd.c optional viawd 339dev/vmd/vmd.c optional vmd | vmd_bus 340dev/wbwd/wbwd.c optional wbwd 341dev/p2sb/p2sb.c optional p2sb pci 342dev/p2sb/lewisburg_gpiocm.c optional lbggpiocm p2sb 343dev/p2sb/lewisburg_gpio.c optional lbggpio lbggpiocm 344isa/syscons_isa.c optional sc 345isa/vga_isa.c optional vga 346kern/imgact_aout.c optional compat_aout 347kern/link_elf_obj.c standard 348# 349# IA32 binary support 350# 351#amd64/ia32/ia32_exception.S optional compat_freebsd32 352amd64/ia32/ia32_reg.c optional compat_freebsd32 353amd64/ia32/ia32_signal.c optional compat_freebsd32 354amd64/ia32/ia32_sigtramp.S optional compat_freebsd32 355amd64/ia32/ia32_syscall.c optional compat_freebsd32 356amd64/ia32/ia32_misc.c optional compat_freebsd32 357compat/ia32/ia32_sysvec.c optional compat_freebsd32 358# 359# x86 real mode BIOS emulator, required by dpms/pci/vesa 360# 361compat/x86bios/x86bios.c optional x86bios | dpms | pci | vesa 362contrib/x86emu/x86emu.c optional x86bios | dpms | pci | vesa 363# Common files where we currently configure the system differently, but perhaps shouldn't 364# config(8) doesn't have a way to force standard options, so we've been inconsistent 365# about marking non-optional things 'standard'. 366x86/acpica/madt.c optional acpi 367x86/isa/atpic.c optional atpic isa 368x86/isa/elcr.c optional atpic isa | mptable 369x86/isa/isa.c standard 370x86/isa/isa_dma.c standard 371x86/pci/pci_early_quirks.c optional pci 372x86/x86/io_apic.c standard 373x86/x86/local_apic.c standard 374x86/x86/mptable.c optional mptable 375x86/x86/mptable_pci.c optional mptable pci 376x86/x86/msi.c optional pci 377x86/xen/pv.c optional xenhvm 378 379contrib/openzfs/module/zcommon/zfs_fletcher_avx512.c optional zfs compile-with "${ZFS_C}" 380contrib/openzfs/module/zcommon/zfs_fletcher_intel.c optional zfs compile-with "${ZFS_C}" 381contrib/openzfs/module/zcommon/zfs_fletcher_sse.c optional zfs compile-with "${ZFS_C}" 382 383contrib/openzfs/module/zfs/vdev_raidz_math_avx2.c optional zfs compile-with "${ZFS_C}" 384contrib/openzfs/module/zfs/vdev_raidz_math_avx512bw.c optional zfs compile-with "${ZFS_C}" 385contrib/openzfs/module/zfs/vdev_raidz_math_avx512f.c optional zfs compile-with "${ZFS_C}" 386contrib/openzfs/module/zfs/vdev_raidz_math_sse2.c optional zfs compile-with "${ZFS_C}" 387contrib/openzfs/module/zfs/vdev_raidz_math_ssse3.c optional zfs compile-with "${ZFS_C}" 388