7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
393 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
394 _imgact_binmisc= imgact_binmisc
398 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
399 ${MACHINE_CPUARCH} != "mips"
404 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
405 # no BUS_SPACE_UNSPECIFIED
406 # No barrier instruction support (specific to this driver)
408 # intr_disable() is a macro, causes problems
409 .if ${MK_SOURCELESS_UCODE} != "no"
414 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
415 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
416 ${MACHINE_ARCH} != "powerpc"
420 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
424 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
425 .if exists(${.CURDIR}/../opencrypto)
427 _cryptodev= cryptodev
429 .if exists(${.CURDIR}/../crypto)
434 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
442 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
446 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
450 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
455 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
457 SUBDIR+= iscsi_initiator
460 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
465 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
469 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
470 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
473 .if ${MK_INET_SUPPORT} != "no"
478 .if ${MK_SOURCELESS_UCODE} != "no"
491 .if ${MACHINE_CPUARCH} == "i386"
492 # XXX some of these can move to the general case when de-i386'ed
493 # XXX some of these can move now, but are untested on other architectures.
495 _3dfx_linux= 3dfx_linux
506 .if ${MK_SOURCELESS_UCODE} != "no"
510 .if ${MK_SOURCELESS_UCODE} != "no"
519 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
533 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
541 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
545 _linprocfs= linprocfs
549 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
556 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
563 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
564 _opensolaris= opensolaris
585 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
588 .if ${MACHINE} == "i386"
592 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
606 .if ${MK_SOURCELESS_UCODE} != "no"
611 .if ${MK_SOURCELESS_HOST} != "no"
615 .if ${MK_SOURCELESS_HOST} != "no"
627 .if ${MK_SOURCELESS_UCODE} != "no"
632 .if ${MK_SOURCELESS_UCODE} != "no"
636 .if ${MK_SOURCELESS_UCODE} != "no"
646 .if ${MK_SOURCELESS_HOST} != "no"
655 .if ${MK_SOURCELESS_UCODE} != "no"
658 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
662 _sdhci_acpi= sdhci_acpi
667 .elif ${MACHINE} == "pc98"
676 .if ${MACHINE_CPUARCH} == "amd64"
681 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
703 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
711 .if ${MK_SOURCELESS_HOST} != "no"
715 .if ${MK_SOURCELESS_HOST} != "no"
722 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
733 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
738 .if ${MK_SOURCELESS_UCODE} != "no"
743 .if ${MK_SOURCELESS_UCODE} != "no"
747 .if ${MK_SOURCELESS_UCODE} != "no"
757 _linprocfs= linprocfs
761 _linux_common= linux_common
763 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
771 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
779 .if ${MK_SOURCELESS_HOST} != "no"
785 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
786 _opensolaris= opensolaris
788 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
812 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
820 .if ${MK_SOURCELESS_UCODE} != "no"
823 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
828 .if ${MACHINE_CPUARCH} == "arm"
833 .if ${MACHINE_CPUARCH} == "ia64"
873 .if ${MACHINE_CPUARCH} == "powerpc"
882 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
886 _nvram= powermac_nvram
890 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
891 _opensolaris= opensolaris
896 .if ${MACHINE_ARCH} == "powerpc64"
899 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
904 .if ${MACHINE_CPUARCH} == "sparc64"
910 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
911 _opensolaris= opensolaris
915 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
920 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
921 SUBDIR=${MODULES_OVERRIDE}
924 SUBDIR+=${MODULES_EXTRA}
926 .for reject in ${WITHOUT_MODULES}
927 SUBDIR:= ${SUBDIR:N${reject}}
930 # Calling kldxref(8) for each module is expensive.
931 .if !defined(NO_XREF)
932 .MAKEFLAGS+= -DNO_XREF
934 @if type kldxref >/dev/null 2>&1; then \
935 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
936 kldxref ${DESTDIR}${KMODDIR}; \
940 .include <bsd.subdir.mk>