7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
381 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
383 _imgact_binmisc= imgact_binmisc
387 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
388 ${MACHINE_CPUARCH} != "mips"
393 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
394 # no BUS_SPACE_UNSPECIFIED
395 # No barrier instruction support (specific to this driver)
397 # intr_disable() is a macro, causes problems
398 .if ${MK_SOURCELESS_UCODE} != "no"
403 .if ${MK_SOURCELESS_UCODE} != "no"
407 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
411 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
412 .if exists(${.CURDIR}/../opencrypto)
414 _cryptodev= cryptodev
416 .if exists(${.CURDIR}/../crypto)
421 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
427 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
431 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
435 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
440 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
442 SUBDIR+= iscsi_initiator
445 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
450 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
454 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
455 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
458 .if ${MK_INET_SUPPORT} != "no"
463 .if ${MK_SOURCELESS_UCODE} != "no"
476 .if ${MACHINE_CPUARCH} == "i386"
477 # XXX some of these can move to the general case when de-i386'ed
478 # XXX some of these can move now, but are untested on other architectures.
480 _3dfx_linux= 3dfx_linux
491 .if ${MK_SOURCELESS_UCODE} != "no"
495 .if ${MK_SOURCELESS_UCODE} != "no"
504 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
518 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
526 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
530 _linprocfs= linprocfs
534 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
543 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
544 _opensolaris= opensolaris
565 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
568 .if ${MACHINE} == "i386"
572 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
586 .if ${MK_SOURCELESS_UCODE} != "no"
591 .if ${MK_SOURCELESS_HOST} != "no"
595 .if ${MK_SOURCELESS_HOST} != "no"
607 .if ${MK_SOURCELESS_UCODE} != "no"
612 .if ${MK_SOURCELESS_UCODE} != "no"
616 .if ${MK_SOURCELESS_UCODE} != "no"
624 .if ${MK_SOURCELESS_HOST} != "no"
633 .if ${MK_SOURCELESS_UCODE} != "no"
636 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
644 .elif ${MACHINE} == "pc98"
653 .if ${MACHINE_CPUARCH} == "amd64"
658 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
679 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
687 .if ${MK_SOURCELESS_HOST} != "no"
691 .if ${MK_SOURCELESS_HOST} != "no"
698 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
708 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
713 .if ${MK_SOURCELESS_UCODE} != "no"
718 .if ${MK_SOURCELESS_UCODE} != "no"
722 .if ${MK_SOURCELESS_UCODE} != "no"
730 _linprocfs= linprocfs
734 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
744 .if ${MK_SOURCELESS_HOST} != "no"
750 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
751 _opensolaris= opensolaris
753 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
775 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
783 .if ${MK_SOURCELESS_UCODE} != "no"
786 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
791 .if ${MACHINE_CPUARCH} == "arm"
796 .if ${MACHINE_CPUARCH} == "ia64"
836 .if ${MACHINE_CPUARCH} == "powerpc"
845 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
849 _nvram= powermac_nvram
853 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
854 _opensolaris= opensolaris
859 .if ${MACHINE_ARCH} == "powerpc64"
862 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
867 .if ${MACHINE_CPUARCH} == "sparc64"
873 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
874 _opensolaris= opensolaris
878 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
883 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
884 SUBDIR=${MODULES_OVERRIDE}
887 .for reject in ${WITHOUT_MODULES}
888 SUBDIR:= ${SUBDIR:N${reject}}
891 # Calling kldxref(8) for each module is expensive.
892 .if !defined(NO_XREF)
893 .MAKEFLAGS+= -DNO_XREF
895 @if type kldxref >/dev/null 2>&1; then \
896 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
897 kldxref ${DESTDIR}${KMODDIR}; \
901 .include <bsd.subdir.mk>