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"
501 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
507 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
521 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
529 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
533 _linprocfs= linprocfs
537 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
546 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
547 _opensolaris= opensolaris
568 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
571 .if ${MACHINE} == "i386"
575 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
589 .if ${MK_SOURCELESS_UCODE} != "no"
594 .if ${MK_SOURCELESS_HOST} != "no"
598 .if ${MK_SOURCELESS_HOST} != "no"
610 .if ${MK_SOURCELESS_UCODE} != "no"
615 .if ${MK_SOURCELESS_UCODE} != "no"
619 .if ${MK_SOURCELESS_UCODE} != "no"
627 .if ${MK_SOURCELESS_HOST} != "no"
636 .if ${MK_SOURCELESS_UCODE} != "no"
639 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
647 .elif ${MACHINE} == "pc98"
656 .if ${MACHINE_CPUARCH} == "amd64"
661 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
679 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
685 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
693 .if ${MK_SOURCELESS_HOST} != "no"
697 .if ${MK_SOURCELESS_HOST} != "no"
704 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
714 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
719 .if ${MK_SOURCELESS_UCODE} != "no"
724 .if ${MK_SOURCELESS_UCODE} != "no"
728 .if ${MK_SOURCELESS_UCODE} != "no"
736 _linprocfs= linprocfs
740 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
750 .if ${MK_SOURCELESS_HOST} != "no"
756 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
757 _opensolaris= opensolaris
759 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
781 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
789 .if ${MK_SOURCELESS_UCODE} != "no"
792 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
797 .if ${MACHINE_CPUARCH} == "arm"
802 .if ${MACHINE_CPUARCH} == "ia64"
842 .if ${MACHINE_CPUARCH} == "powerpc"
850 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
854 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
858 _nvram= powermac_nvram
862 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
863 _opensolaris= opensolaris
868 .if ${MACHINE_ARCH} == "powerpc64"
871 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
876 .if ${MACHINE_CPUARCH} == "sparc64"
882 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
883 _opensolaris= opensolaris
887 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
892 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
893 SUBDIR=${MODULES_OVERRIDE}
896 .for reject in ${WITHOUT_MODULES}
897 SUBDIR:= ${SUBDIR:N${reject}}
900 # Calling kldxref(8) for each module is expensive.
901 .if !defined(NO_XREF)
902 .MAKEFLAGS+= -DNO_XREF
904 @if type kldxref >/dev/null 2>&1; then \
905 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
906 kldxref ${DESTDIR}${KMODDIR}; \
910 .include <bsd.subdir.mk>