7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
391 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
392 _imgact_binmisc= imgact_binmisc
396 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
397 ${MACHINE_CPUARCH} != "mips"
402 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
403 # no BUS_SPACE_UNSPECIFIED
404 # No barrier instruction support (specific to this driver)
406 # intr_disable() is a macro, causes problems
407 .if ${MK_SOURCELESS_UCODE} != "no"
412 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
413 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
414 ${MACHINE_ARCH} != "powerpc"
418 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
422 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
423 .if exists(${.CURDIR}/../opencrypto)
425 _cryptodev= cryptodev
427 .if exists(${.CURDIR}/../crypto)
432 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
440 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
444 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
448 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
453 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
455 SUBDIR+= iscsi_initiator
458 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
463 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
467 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
468 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
471 .if ${MK_INET_SUPPORT} != "no"
476 .if ${MK_SOURCELESS_UCODE} != "no"
489 .if ${MACHINE_CPUARCH} == "i386"
490 # XXX some of these can move to the general case when de-i386'ed
491 # XXX some of these can move now, but are untested on other architectures.
493 _3dfx_linux= 3dfx_linux
504 .if ${MK_SOURCELESS_UCODE} != "no"
508 .if ${MK_SOURCELESS_UCODE} != "no"
517 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
531 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
539 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
543 _linprocfs= linprocfs
547 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
554 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
561 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
562 _opensolaris= opensolaris
583 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
586 .if ${MACHINE} == "i386"
590 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
604 .if ${MK_SOURCELESS_UCODE} != "no"
609 .if ${MK_SOURCELESS_HOST} != "no"
613 .if ${MK_SOURCELESS_HOST} != "no"
625 .if ${MK_SOURCELESS_UCODE} != "no"
630 .if ${MK_SOURCELESS_UCODE} != "no"
634 .if ${MK_SOURCELESS_UCODE} != "no"
644 .if ${MK_SOURCELESS_HOST} != "no"
653 .if ${MK_SOURCELESS_UCODE} != "no"
656 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
664 .elif ${MACHINE} == "pc98"
673 .if ${MACHINE_CPUARCH} == "amd64"
678 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
700 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
708 .if ${MK_SOURCELESS_HOST} != "no"
712 .if ${MK_SOURCELESS_HOST} != "no"
719 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
730 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
735 .if ${MK_SOURCELESS_UCODE} != "no"
740 .if ${MK_SOURCELESS_UCODE} != "no"
744 .if ${MK_SOURCELESS_UCODE} != "no"
754 _linprocfs= linprocfs
758 _linux_common= linux_common
760 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
767 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
775 .if ${MK_SOURCELESS_HOST} != "no"
781 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
782 _opensolaris= opensolaris
784 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
808 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
816 .if ${MK_SOURCELESS_UCODE} != "no"
819 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
824 .if ${MACHINE_CPUARCH} == "arm"
829 .if ${MACHINE_CPUARCH} == "ia64"
869 .if ${MACHINE_CPUARCH} == "powerpc"
878 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
882 _nvram= powermac_nvram
886 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
887 _opensolaris= opensolaris
892 .if ${MACHINE_ARCH} == "powerpc64"
895 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
900 .if ${MACHINE_CPUARCH} == "sparc64"
906 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
907 _opensolaris= opensolaris
911 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
916 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
917 SUBDIR=${MODULES_OVERRIDE}
920 SUBDIR+=${MODULES_EXTRA}
922 .for reject in ${WITHOUT_MODULES}
923 SUBDIR:= ${SUBDIR:N${reject}}
926 # Calling kldxref(8) for each module is expensive.
927 .if !defined(NO_XREF)
928 .MAKEFLAGS+= -DNO_XREF
930 @if type kldxref >/dev/null 2>&1; then \
931 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
932 kldxref ${DESTDIR}${KMODDIR}; \
936 .include <bsd.subdir.mk>