7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
380 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
382 _imgact_binmisc= imgact_binmisc
386 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
387 ${MACHINE_CPUARCH} != "mips"
392 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
393 # no BUS_SPACE_UNSPECIFIED
394 # No barrier instruction support (specific to this driver)
396 # intr_disable() is a macro, causes problems
397 .if ${MK_SOURCELESS_UCODE} != "no"
402 .if ${MK_SOURCELESS_UCODE} != "no"
406 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
407 .if exists(${.CURDIR}/../opencrypto)
409 _cryptodev= cryptodev
411 .if exists(${.CURDIR}/../crypto)
416 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
422 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
426 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
430 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
435 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
440 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
444 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
445 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
448 .if ${MK_INET_SUPPORT} != "no"
453 .if ${MK_SOURCELESS_UCODE} != "no"
466 .if ${MACHINE_CPUARCH} == "i386"
467 # XXX some of these can move to the general case when de-i386'ed
468 # XXX some of these can move now, but are untested on other architectures.
470 _3dfx_linux= 3dfx_linux
481 .if ${MK_SOURCELESS_UCODE} != "no"
485 .if ${MK_SOURCELESS_UCODE} != "no"
491 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
497 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
511 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
519 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
523 _linprocfs= linprocfs
527 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
536 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
537 _opensolaris= opensolaris
558 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
561 .if ${MACHINE} == "i386"
565 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
579 .if ${MK_SOURCELESS_UCODE} != "no"
584 .if ${MK_SOURCELESS_HOST} != "no"
588 .if ${MK_SOURCELESS_HOST} != "no"
600 .if ${MK_SOURCELESS_UCODE} != "no"
605 .if ${MK_SOURCELESS_UCODE} != "no"
609 .if ${MK_SOURCELESS_UCODE} != "no"
617 .if ${MK_SOURCELESS_HOST} != "no"
626 .if ${MK_SOURCELESS_UCODE} != "no"
629 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
637 .elif ${MACHINE} == "pc98"
646 .if ${MACHINE_CPUARCH} == "amd64"
651 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
669 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
675 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
683 .if ${MK_SOURCELESS_HOST} != "no"
687 .if ${MK_SOURCELESS_HOST} != "no"
694 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
704 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
709 .if ${MK_SOURCELESS_UCODE} != "no"
714 .if ${MK_SOURCELESS_UCODE} != "no"
718 .if ${MK_SOURCELESS_UCODE} != "no"
724 _linprocfs= linprocfs
728 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
738 .if ${MK_SOURCELESS_HOST} != "no"
744 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
745 _opensolaris= opensolaris
747 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
775 .if ${MK_SOURCELESS_UCODE} != "no"
778 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
783 .if ${MACHINE_CPUARCH} == "arm"
788 .if ${MACHINE_CPUARCH} == "ia64"
828 .if ${MACHINE_CPUARCH} == "powerpc"
836 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
840 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
844 _nvram= powermac_nvram
848 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
849 _opensolaris= opensolaris
854 .if ${MACHINE_ARCH} == "powerpc64"
855 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
860 .if ${MACHINE_CPUARCH} == "sparc64"
866 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
867 _opensolaris= opensolaris
871 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
876 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
877 SUBDIR=${MODULES_OVERRIDE}
880 .for reject in ${WITHOUT_MODULES}
881 SUBDIR:= ${SUBDIR:N${reject}}
884 # Calling kldxref(8) for each module is expensive.
885 .if !defined(NO_XREF)
886 .MAKEFLAGS+= -DNO_XREF
888 @if type kldxref >/dev/null 2>&1; then \
889 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
890 kldxref ${DESTDIR}${KMODDIR}; \
894 .include <bsd.subdir.mk>