7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
379 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
381 _imgact_binmisc= imgact_binmisc
385 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
386 ${MACHINE_CPUARCH} != "mips"
391 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
392 # no BUS_SPACE_UNSPECIFIED
393 # No barrier instruction support (specific to this driver)
395 # intr_disable() is a macro, causes problems
396 .if ${MK_SOURCELESS_UCODE} != "no"
401 .if ${MK_SOURCELESS_UCODE} != "no"
405 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
406 .if exists(${.CURDIR}/../opencrypto)
408 _cryptodev= cryptodev
410 .if exists(${.CURDIR}/../crypto)
415 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
421 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
425 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
429 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
434 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
439 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
443 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
444 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
447 .if ${MK_INET_SUPPORT} != "no"
452 .if ${MK_SOURCELESS_UCODE} != "no"
465 .if ${MACHINE_CPUARCH} == "i386"
466 # XXX some of these can move to the general case when de-i386'ed
467 # XXX some of these can move now, but are untested on other architectures.
469 _3dfx_linux= 3dfx_linux
480 .if ${MK_SOURCELESS_UCODE} != "no"
484 .if ${MK_SOURCELESS_UCODE} != "no"
490 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
496 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
510 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
518 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
522 _linprocfs= linprocfs
526 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
535 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
536 _opensolaris= opensolaris
557 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
560 .if ${MACHINE} == "i386"
564 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
578 .if ${MK_SOURCELESS_UCODE} != "no"
583 .if ${MK_SOURCELESS_HOST} != "no"
587 .if ${MK_SOURCELESS_HOST} != "no"
599 .if ${MK_SOURCELESS_UCODE} != "no"
604 .if ${MK_SOURCELESS_UCODE} != "no"
608 .if ${MK_SOURCELESS_UCODE} != "no"
616 .if ${MK_SOURCELESS_HOST} != "no"
625 .if ${MK_SOURCELESS_UCODE} != "no"
628 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
636 .elif ${MACHINE} == "pc98"
645 .if ${MACHINE_CPUARCH} == "amd64"
650 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
668 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
674 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
682 .if ${MK_SOURCELESS_HOST} != "no"
686 .if ${MK_SOURCELESS_HOST} != "no"
693 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
703 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
708 .if ${MK_SOURCELESS_UCODE} != "no"
713 .if ${MK_SOURCELESS_UCODE} != "no"
717 .if ${MK_SOURCELESS_UCODE} != "no"
723 _linprocfs= linprocfs
727 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
737 .if ${MK_SOURCELESS_HOST} != "no"
743 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
744 _opensolaris= opensolaris
746 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
774 .if ${MK_SOURCELESS_UCODE} != "no"
777 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
782 .if ${MACHINE_CPUARCH} == "arm"
787 .if ${MACHINE_CPUARCH} == "ia64"
827 .if ${MACHINE_CPUARCH} == "powerpc"
835 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
839 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
843 _nvram= powermac_nvram
847 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
848 _opensolaris= opensolaris
853 .if ${MACHINE_ARCH} == "powerpc64"
854 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
859 .if ${MACHINE_CPUARCH} == "sparc64"
865 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
866 _opensolaris= opensolaris
870 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
875 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
876 SUBDIR=${MODULES_OVERRIDE}
879 .for reject in ${WITHOUT_MODULES}
880 SUBDIR:= ${SUBDIR:N${reject}}
883 # Calling kldxref(8) for each module is expensive.
884 .if !defined(NO_XREF)
885 .MAKEFLAGS+= -DNO_XREF
887 @if type kldxref >/dev/null 2>&1; then \
888 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
889 kldxref ${DESTDIR}${KMODDIR}; \
893 .include <bsd.subdir.mk>