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/aesni-x86_64.S optional ossl 92crypto/openssl/amd64/chacha-x86_64.S optional ossl 93crypto/openssl/amd64/poly1305-x86_64.S optional ossl 94crypto/openssl/amd64/sha1-x86_64.S optional ossl 95crypto/openssl/amd64/sha256-x86_64.S optional ossl 96crypto/openssl/amd64/sha512-x86_64.S optional ossl 97dev/acpi_support/acpi_wmi_if.m standard 98dev/agp/agp_amd64.c optional agp 99dev/agp/agp_i810.c optional agp 100dev/agp/agp_via.c optional agp 101dev/amdgpio/amdgpio.c optional amdgpio 102dev/axgbe/if_axgbe_pci.c optional axp 103dev/axgbe/xgbe-desc.c optional axp 104dev/axgbe/xgbe-dev.c optional axp 105dev/axgbe/xgbe-drv.c optional axp 106dev/axgbe/xgbe-mdio.c optional axp 107dev/axgbe/xgbe-sysctl.c optional axp 108dev/axgbe/xgbe-txrx.c optional axp 109dev/axgbe/xgbe_osdep.c optional axp 110dev/axgbe/xgbe-i2c.c optional axp 111dev/axgbe/xgbe-phy-v2.c optional axp 112dev/hyperv/vmbus/amd64/hyperv_machdep.c optional hyperv 113dev/hyperv/vmbus/amd64/vmbus_vector.S optional hyperv 114dev/ice/if_ice_iflib.c optional ice pci \ 115 compile-with "${NORMAL_C} -I$S/dev/ice" 116dev/ice/ice_lib.c optional ice pci \ 117 compile-with "${NORMAL_C} -I$S/dev/ice" 118dev/ice/ice_osdep.c optional ice pci \ 119 compile-with "${NORMAL_C} -I$S/dev/ice" 120dev/ice/ice_resmgr.c optional ice pci \ 121 compile-with "${NORMAL_C} -I$S/dev/ice" 122dev/ice/ice_strings.c optional ice pci \ 123 compile-with "${NORMAL_C} -I$S/dev/ice" 124dev/ice/ice_iflib_recovery_txrx.c optional ice pci \ 125 compile-with "${NORMAL_C} -I$S/dev/ice" 126dev/ice/ice_iflib_txrx.c optional ice pci \ 127 compile-with "${NORMAL_C} -I$S/dev/ice" 128dev/ice/ice_common.c optional ice pci \ 129 compile-with "${NORMAL_C} -I$S/dev/ice" 130dev/ice/ice_controlq.c optional ice pci \ 131 compile-with "${NORMAL_C} -I$S/dev/ice" 132dev/ice/ice_dcb.c optional ice pci \ 133 compile-with "${NORMAL_C} -I$S/dev/ice" 134dev/ice/ice_flex_pipe.c optional ice pci \ 135 compile-with "${NORMAL_C} -I$S/dev/ice" 136dev/ice/ice_flow.c optional ice pci \ 137 compile-with "${NORMAL_C} -I$S/dev/ice" 138dev/ice/ice_nvm.c optional ice pci \ 139 compile-with "${NORMAL_C} -I$S/dev/ice" 140dev/ice/ice_sched.c optional ice pci \ 141 compile-with "${NORMAL_C} -I$S/dev/ice" 142dev/ice/ice_sriov.c optional ice pci \ 143 compile-with "${NORMAL_C} -I$S/dev/ice" 144dev/ice/ice_switch.c optional ice pci \ 145 compile-with "${NORMAL_C} -I$S/dev/ice" 146dev/ice/ice_vlan_mode.c optional ice pci \ 147 compile-with "${NORMAL_C} -I$S/dev/ice" 148ice_ddp.c optional ice_ddp \ 149 compile-with "${AWK} -f $S/tools/fw_stub.awk ice_ddp.fw:ice_ddp:0x01031800 -mice_ddp -c${.TARGET}" \ 150 no-ctfconvert no-implicit-rule before-depend local \ 151 clean "ice_ddp.c" 152ice_ddp.fwo optional ice_ddp \ 153 dependency "ice_ddp.fw" \ 154 compile-with "${NORMAL_FWO}" \ 155 no-implicit-rule \ 156 clean "ice_ddp.fwo" 157ice_ddp.fw optional ice_ddp \ 158 dependency "$S/contrib/dev/ice/ice-1.3.24.0.pkg" \ 159 compile-with "${CP} $S/contrib/dev/ice/ice-1.3.24.0.pkg ice_ddp.fw" \ 160 no-obj no-implicit-rule \ 161 clean "ice_ddp.fw" 162dev/ioat/ioat.c optional ioat pci 163dev/ioat/ioat_test.c optional ioat pci 164dev/ixl/if_ixl.c optional ixl pci \ 165 compile-with "${NORMAL_C} -I$S/dev/ixl" 166dev/ixl/ixl_pf_main.c optional ixl pci \ 167 compile-with "${NORMAL_C} -I$S/dev/ixl" 168dev/ixl/ixl_pf_iflib.c optional ixl pci \ 169 compile-with "${NORMAL_C} -I$S/dev/ixl" 170dev/ixl/ixl_pf_qmgr.c optional ixl pci \ 171 compile-with "${NORMAL_C} -I$S/dev/ixl" 172dev/ixl/ixl_pf_iov.c optional ixl pci pci_iov \ 173 compile-with "${NORMAL_C} -I$S/dev/ixl" 174dev/ixl/ixl_pf_i2c.c optional ixl pci \ 175 compile-with "${NORMAL_C} -I$S/dev/ixl" 176dev/ixl/if_iavf.c optional iavf pci \ 177 compile-with "${NORMAL_C} -I$S/dev/ixl" 178dev/ixl/iavf_vc.c optional iavf pci \ 179 compile-with "${NORMAL_C} -I$S/dev/ixl" 180dev/ixl/ixl_txrx.c optional ixl pci | iavf pci \ 181 compile-with "${NORMAL_C} -I$S/dev/ixl" 182dev/ixl/i40e_osdep.c optional ixl pci | iavf pci \ 183 compile-with "${NORMAL_C} -I$S/dev/ixl" 184dev/ixl/i40e_lan_hmc.c optional ixl pci | iavf pci \ 185 compile-with "${NORMAL_C} -I$S/dev/ixl" 186dev/ixl/i40e_hmc.c optional ixl pci | iavf pci \ 187 compile-with "${NORMAL_C} -I$S/dev/ixl" 188dev/ixl/i40e_common.c optional ixl pci | iavf pci \ 189 compile-with "${NORMAL_C} -I$S/dev/ixl" 190dev/ixl/i40e_nvm.c optional ixl pci | iavf pci \ 191 compile-with "${NORMAL_C} -I$S/dev/ixl" 192dev/ixl/i40e_adminq.c optional ixl pci | iavf pci \ 193 compile-with "${NORMAL_C} -I$S/dev/ixl" 194dev/ixl/i40e_dcb.c optional ixl pci \ 195 compile-with "${NORMAL_C} -I$S/dev/ixl" 196dev/nctgpio/nctgpio.c optional nctgpio 197dev/nfe/if_nfe.c optional nfe pci 198dev/ntb/if_ntb/if_ntb.c optional if_ntb 199dev/ntb/ntb_transport.c optional ntb_transport | if_ntb 200dev/ntb/ntb.c optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw 201dev/ntb/ntb_if.m optional ntb | ntb_transport | if_ntb | ntb_hw_amd | ntb_hw_intel | ntb_hw_plx | ntb_hw 202dev/ntb/ntb_hw/ntb_hw_amd.c optional ntb_hw_amd | ntb_hw 203dev/ntb/ntb_hw/ntb_hw_intel.c optional ntb_hw_intel | ntb_hw 204dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw 205dev/ntb/test/ntb_tool.c optional ntb_tool 206dev/nvram/nvram.c optional nvram isa 207dev/random/ivy.c optional rdrand_rng !random_loadable 208dev/random/nehemiah.c optional padlock_rng !random_loadable 209dev/qlxge/qls_dbg.c optional qlxge pci 210dev/qlxge/qls_dump.c optional qlxge pci 211dev/qlxge/qls_hw.c optional qlxge pci 212dev/qlxge/qls_ioctl.c optional qlxge pci 213dev/qlxge/qls_isr.c optional qlxge pci 214dev/qlxge/qls_os.c optional qlxge pci 215dev/qlxgb/qla_dbg.c optional qlxgb pci 216dev/qlxgb/qla_hw.c optional qlxgb pci 217dev/qlxgb/qla_ioctl.c optional qlxgb pci 218dev/qlxgb/qla_isr.c optional qlxgb pci 219dev/qlxgb/qla_misc.c optional qlxgb pci 220dev/qlxgb/qla_os.c optional qlxgb pci 221dev/qlxgbe/ql_dbg.c optional qlxgbe pci 222dev/qlxgbe/ql_hw.c optional qlxgbe pci 223dev/qlxgbe/ql_ioctl.c optional qlxgbe pci 224dev/qlxgbe/ql_isr.c optional qlxgbe pci 225dev/qlxgbe/ql_misc.c optional qlxgbe pci 226dev/qlxgbe/ql_os.c optional qlxgbe pci 227dev/qlxgbe/ql_reset.c optional qlxgbe pci 228dev/qlxgbe/ql_fw.c optional qlxgbe pci 229dev/qlxgbe/ql_boot.c optional qlxgbe pci 230dev/qlxgbe/ql_minidump.c optional qlxgbe pci 231dev/qlnx/qlnxe/ecore_cxt.c optional qlnxe pci \ 232 compile-with "${LINUXKPI_C}" 233dev/qlnx/qlnxe/ecore_dbg_fw_funcs.c optional qlnxe pci \ 234 compile-with "${LINUXKPI_C}" 235dev/qlnx/qlnxe/ecore_dcbx.c optional qlnxe pci \ 236 compile-with "${LINUXKPI_C}" 237dev/qlnx/qlnxe/ecore_dev.c optional qlnxe pci \ 238 compile-with "${LINUXKPI_C}" 239dev/qlnx/qlnxe/ecore_hw.c optional qlnxe pci \ 240 compile-with "${LINUXKPI_C}" 241dev/qlnx/qlnxe/ecore_init_fw_funcs.c optional qlnxe pci \ 242 compile-with "${LINUXKPI_C}" 243dev/qlnx/qlnxe/ecore_init_ops.c optional qlnxe pci \ 244 compile-with "${LINUXKPI_C}" 245dev/qlnx/qlnxe/ecore_int.c optional qlnxe pci \ 246 compile-with "${LINUXKPI_C}" 247dev/qlnx/qlnxe/ecore_l2.c optional qlnxe pci \ 248 compile-with "${LINUXKPI_C}" 249dev/qlnx/qlnxe/ecore_mcp.c optional qlnxe pci \ 250 compile-with "${LINUXKPI_C}" 251dev/qlnx/qlnxe/ecore_sp_commands.c optional qlnxe pci \ 252 compile-with "${LINUXKPI_C}" 253dev/qlnx/qlnxe/ecore_spq.c optional qlnxe pci \ 254 compile-with "${LINUXKPI_C}" 255dev/qlnx/qlnxe/qlnx_ioctl.c optional qlnxe pci \ 256 compile-with "${LINUXKPI_C}" 257dev/qlnx/qlnxe/qlnx_os.c optional qlnxe pci \ 258 compile-with "${LINUXKPI_C}" 259dev/sfxge/common/ef10_ev.c optional sfxge pci 260dev/sfxge/common/ef10_filter.c optional sfxge pci 261dev/sfxge/common/ef10_image.c optional sfxge pci 262dev/sfxge/common/ef10_intr.c optional sfxge pci 263dev/sfxge/common/ef10_mac.c optional sfxge pci 264dev/sfxge/common/ef10_mcdi.c optional sfxge pci 265dev/sfxge/common/ef10_nic.c optional sfxge pci 266dev/sfxge/common/ef10_nvram.c optional sfxge pci 267dev/sfxge/common/ef10_phy.c optional sfxge pci 268dev/sfxge/common/ef10_rx.c optional sfxge pci 269dev/sfxge/common/ef10_tx.c optional sfxge pci 270dev/sfxge/common/ef10_vpd.c optional sfxge pci 271dev/sfxge/common/efx_bootcfg.c optional sfxge pci 272dev/sfxge/common/efx_crc32.c optional sfxge pci 273dev/sfxge/common/efx_ev.c optional sfxge pci 274dev/sfxge/common/efx_filter.c optional sfxge pci 275dev/sfxge/common/efx_hash.c optional sfxge pci 276dev/sfxge/common/efx_intr.c optional sfxge pci 277dev/sfxge/common/efx_lic.c optional sfxge pci 278dev/sfxge/common/efx_mac.c optional sfxge pci 279dev/sfxge/common/efx_mcdi.c optional sfxge pci 280dev/sfxge/common/efx_mon.c optional sfxge pci 281dev/sfxge/common/efx_nic.c optional sfxge pci 282dev/sfxge/common/efx_nvram.c optional sfxge pci 283dev/sfxge/common/efx_phy.c optional sfxge pci 284dev/sfxge/common/efx_port.c optional sfxge pci 285dev/sfxge/common/efx_rx.c optional sfxge pci 286dev/sfxge/common/efx_sram.c optional sfxge pci 287dev/sfxge/common/efx_tunnel.c optional sfxge pci 288dev/sfxge/common/efx_tx.c optional sfxge pci 289dev/sfxge/common/efx_vpd.c optional sfxge pci 290dev/sfxge/common/hunt_nic.c optional sfxge pci 291dev/sfxge/common/mcdi_mon.c optional sfxge pci 292dev/sfxge/common/medford_nic.c optional sfxge pci 293dev/sfxge/common/medford2_nic.c optional sfxge pci 294dev/sfxge/common/siena_mac.c optional sfxge pci 295dev/sfxge/common/siena_mcdi.c optional sfxge pci 296dev/sfxge/common/siena_nic.c optional sfxge pci 297dev/sfxge/common/siena_nvram.c optional sfxge pci 298dev/sfxge/common/siena_phy.c optional sfxge pci 299dev/sfxge/common/siena_sram.c optional sfxge pci 300dev/sfxge/common/siena_vpd.c optional sfxge pci 301dev/sfxge/sfxge.c optional sfxge pci 302dev/sfxge/sfxge_dma.c optional sfxge pci 303dev/sfxge/sfxge_ev.c optional sfxge pci 304dev/sfxge/sfxge_intr.c optional sfxge pci 305dev/sfxge/sfxge_mcdi.c optional sfxge pci 306dev/sfxge/sfxge_nvram.c optional sfxge pci 307dev/sfxge/sfxge_port.c optional sfxge pci 308dev/sfxge/sfxge_rx.c optional sfxge pci 309dev/sfxge/sfxge_tx.c optional sfxge pci 310dev/smartpqi/smartpqi_cam.c optional smartpqi 311dev/smartpqi/smartpqi_cmd.c optional smartpqi 312dev/smartpqi/smartpqi_discovery.c optional smartpqi 313dev/smartpqi/smartpqi_event.c optional smartpqi 314dev/smartpqi/smartpqi_helper.c optional smartpqi 315dev/smartpqi/smartpqi_init.c optional smartpqi 316dev/smartpqi/smartpqi_intr.c optional smartpqi 317dev/smartpqi/smartpqi_ioctl.c optional smartpqi 318dev/smartpqi/smartpqi_main.c optional smartpqi 319dev/smartpqi/smartpqi_mem.c optional smartpqi 320dev/smartpqi/smartpqi_misc.c optional smartpqi 321dev/smartpqi/smartpqi_queue.c optional smartpqi 322dev/smartpqi/smartpqi_request.c optional smartpqi 323dev/smartpqi/smartpqi_response.c optional smartpqi 324dev/smartpqi/smartpqi_sis.c optional smartpqi 325dev/smartpqi/smartpqi_tag.c optional smartpqi 326dev/speaker/spkr.c optional speaker 327dev/sume/if_sume.c optional sume 328dev/superio/superio.c optional superio isa 329dev/syscons/apm/apm_saver.c optional apm_saver apm 330dev/syscons/scvesactl.c optional sc vga vesa 331dev/syscons/scvgarndr.c optional sc vga 332dev/tpm/tpm.c optional tpm 333dev/tpm/tpm20.c optional tpm 334dev/tpm/tpm_crb.c optional tpm acpi 335dev/tpm/tpm_tis.c optional tpm acpi 336dev/tpm/tpm_acpi.c optional tpm acpi 337dev/tpm/tpm_isa.c optional tpm isa 338dev/uart/uart_cpu_x86.c optional uart 339dev/viawd/viawd.c optional viawd 340dev/vmd/vmd.c optional vmd | vmd_bus 341dev/wbwd/wbwd.c optional wbwd 342dev/p2sb/p2sb.c optional p2sb pci 343dev/p2sb/lewisburg_gpiocm.c optional lbggpiocm p2sb 344dev/p2sb/lewisburg_gpio.c optional lbggpio lbggpiocm 345isa/syscons_isa.c optional sc 346isa/vga_isa.c optional vga 347kern/imgact_aout.c optional compat_aout 348kern/link_elf_obj.c standard 349# 350# IA32 binary support 351# 352#amd64/ia32/ia32_exception.S optional compat_freebsd32 353amd64/ia32/ia32_reg.c optional compat_freebsd32 354amd64/ia32/ia32_signal.c optional compat_freebsd32 355amd64/ia32/ia32_sigtramp.S optional compat_freebsd32 356amd64/ia32/ia32_syscall.c optional compat_freebsd32 357amd64/ia32/ia32_misc.c optional compat_freebsd32 358compat/ia32/ia32_sysvec.c optional compat_freebsd32 359# 360# x86 real mode BIOS emulator, required by dpms/pci/vesa 361# 362compat/x86bios/x86bios.c optional x86bios | dpms | pci | vesa 363contrib/x86emu/x86emu.c optional x86bios | dpms | pci | vesa 364# Common files where we currently configure the system differently, but perhaps shouldn't 365# config(8) doesn't have a way to force standard options, so we've been inconsistent 366# about marking non-optional things 'standard'. 367x86/acpica/madt.c optional acpi 368x86/isa/atpic.c optional atpic isa 369x86/isa/elcr.c optional atpic isa | mptable 370x86/isa/isa.c standard 371x86/isa/isa_dma.c standard 372x86/pci/pci_early_quirks.c optional pci 373x86/x86/io_apic.c standard 374x86/x86/local_apic.c standard 375x86/x86/mptable.c optional mptable 376x86/x86/mptable_pci.c optional mptable pci 377x86/x86/msi.c optional pci 378x86/xen/pv.c optional xenhvm 379 380contrib/openzfs/module/zcommon/zfs_fletcher_avx512.c optional zfs compile-with "${ZFS_C}" 381contrib/openzfs/module/zcommon/zfs_fletcher_intel.c optional zfs compile-with "${ZFS_C}" 382contrib/openzfs/module/zcommon/zfs_fletcher_sse.c optional zfs compile-with "${ZFS_C}" 383 384contrib/openzfs/module/zfs/vdev_raidz_math_avx2.c optional zfs compile-with "${ZFS_C}" 385contrib/openzfs/module/zfs/vdev_raidz_math_avx512bw.c optional zfs compile-with "${ZFS_C}" 386contrib/openzfs/module/zfs/vdev_raidz_math_avx512f.c optional zfs compile-with "${ZFS_C}" 387contrib/openzfs/module/zfs/vdev_raidz_math_sse2.c optional zfs compile-with "${ZFS_C}" 388contrib/openzfs/module/zfs/vdev_raidz_math_ssse3.c optional zfs compile-with "${ZFS_C}" 389