7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
392 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
393 _imgact_binmisc= imgact_binmisc
397 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
398 ${MACHINE_CPUARCH} != "mips"
403 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
404 # no BUS_SPACE_UNSPECIFIED
405 # No barrier instruction support (specific to this driver)
407 # intr_disable() is a macro, causes problems
408 .if ${MK_SOURCELESS_UCODE} != "no"
413 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
414 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
415 ${MACHINE_ARCH} != "powerpc"
419 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
423 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
424 .if exists(${.CURDIR}/../opencrypto)
426 _cryptodev= cryptodev
428 .if exists(${.CURDIR}/../crypto)
433 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
441 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
445 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
449 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
454 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
456 SUBDIR+= iscsi_initiator
459 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
464 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
468 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
469 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
472 .if ${MK_INET_SUPPORT} != "no"
477 .if ${MK_SOURCELESS_UCODE} != "no"
490 .if ${MACHINE_CPUARCH} == "i386"
491 # XXX some of these can move to the general case when de-i386'ed
492 # XXX some of these can move now, but are untested on other architectures.
494 _3dfx_linux= 3dfx_linux
505 .if ${MK_SOURCELESS_UCODE} != "no"
509 .if ${MK_SOURCELESS_UCODE} != "no"
518 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
532 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
540 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
544 _linprocfs= linprocfs
548 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
555 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
562 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
563 _opensolaris= opensolaris
584 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
587 .if ${MACHINE} == "i386"
591 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
605 .if ${MK_SOURCELESS_UCODE} != "no"
610 .if ${MK_SOURCELESS_HOST} != "no"
614 .if ${MK_SOURCELESS_HOST} != "no"
626 .if ${MK_SOURCELESS_UCODE} != "no"
631 .if ${MK_SOURCELESS_UCODE} != "no"
635 .if ${MK_SOURCELESS_UCODE} != "no"
645 .if ${MK_SOURCELESS_HOST} != "no"
654 .if ${MK_SOURCELESS_UCODE} != "no"
657 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
661 _sdhci_acpi= sdhci_acpi
666 .elif ${MACHINE} == "pc98"
675 .if ${MACHINE_CPUARCH} == "amd64"
680 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
702 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
710 .if ${MK_SOURCELESS_HOST} != "no"
714 .if ${MK_SOURCELESS_HOST} != "no"
721 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
732 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
737 .if ${MK_SOURCELESS_UCODE} != "no"
742 .if ${MK_SOURCELESS_UCODE} != "no"
746 .if ${MK_SOURCELESS_UCODE} != "no"
756 _linprocfs= linprocfs
760 _linux_common= linux_common
762 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
769 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
777 .if ${MK_SOURCELESS_HOST} != "no"
783 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
784 _opensolaris= opensolaris
786 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
810 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
818 .if ${MK_SOURCELESS_UCODE} != "no"
821 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
826 .if ${MACHINE_CPUARCH} == "arm"
831 .if ${MACHINE_CPUARCH} == "ia64"
871 .if ${MACHINE_CPUARCH} == "powerpc"
880 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
884 _nvram= powermac_nvram
888 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
889 _opensolaris= opensolaris
894 .if ${MACHINE_ARCH} == "powerpc64"
897 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
902 .if ${MACHINE_CPUARCH} == "sparc64"
908 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
909 _opensolaris= opensolaris
913 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
918 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
919 SUBDIR=${MODULES_OVERRIDE}
922 SUBDIR+=${MODULES_EXTRA}
924 .for reject in ${WITHOUT_MODULES}
925 SUBDIR:= ${SUBDIR:N${reject}}
928 # Calling kldxref(8) for each module is expensive.
929 .if !defined(NO_XREF)
930 .MAKEFLAGS+= -DNO_XREF
932 @if type kldxref >/dev/null 2>&1; then \
933 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
934 kldxref ${DESTDIR}${KMODDIR}; \
938 .include <bsd.subdir.mk>