7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
382 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
384 _imgact_binmisc= imgact_binmisc
388 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
389 ${MACHINE_CPUARCH} != "mips"
394 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
395 # no BUS_SPACE_UNSPECIFIED
396 # No barrier instruction support (specific to this driver)
398 # intr_disable() is a macro, causes problems
399 .if ${MK_SOURCELESS_UCODE} != "no"
404 .if ${MK_SOURCELESS_UCODE} != "no"
408 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
412 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
413 .if exists(${.CURDIR}/../opencrypto)
415 _cryptodev= cryptodev
417 .if exists(${.CURDIR}/../crypto)
422 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
428 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
432 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
436 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
441 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
443 SUBDIR+= iscsi_initiator
446 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
451 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
455 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
456 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
459 .if ${MK_INET_SUPPORT} != "no"
464 .if ${MK_SOURCELESS_UCODE} != "no"
477 .if ${MACHINE_CPUARCH} == "i386"
478 # XXX some of these can move to the general case when de-i386'ed
479 # XXX some of these can move now, but are untested on other architectures.
481 _3dfx_linux= 3dfx_linux
492 .if ${MK_SOURCELESS_UCODE} != "no"
496 .if ${MK_SOURCELESS_UCODE} != "no"
505 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
519 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
527 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
531 _linprocfs= linprocfs
535 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
544 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
545 _opensolaris= opensolaris
566 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
569 .if ${MACHINE} == "i386"
573 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
587 .if ${MK_SOURCELESS_UCODE} != "no"
592 .if ${MK_SOURCELESS_HOST} != "no"
596 .if ${MK_SOURCELESS_HOST} != "no"
608 .if ${MK_SOURCELESS_UCODE} != "no"
613 .if ${MK_SOURCELESS_UCODE} != "no"
617 .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)
682 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
690 .if ${MK_SOURCELESS_HOST} != "no"
694 .if ${MK_SOURCELESS_HOST} != "no"
701 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
711 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
716 .if ${MK_SOURCELESS_UCODE} != "no"
721 .if ${MK_SOURCELESS_UCODE} != "no"
725 .if ${MK_SOURCELESS_UCODE} != "no"
735 _linprocfs= linprocfs
739 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
749 .if ${MK_SOURCELESS_HOST} != "no"
755 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
756 _opensolaris= opensolaris
758 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
780 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
788 .if ${MK_SOURCELESS_UCODE} != "no"
791 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
796 .if ${MACHINE_CPUARCH} == "arm"
801 .if ${MACHINE_CPUARCH} == "ia64"
841 .if ${MACHINE_CPUARCH} == "powerpc"
850 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
854 _nvram= powermac_nvram
858 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
859 _opensolaris= opensolaris
864 .if ${MACHINE_ARCH} == "powerpc64"
867 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
872 .if ${MACHINE_CPUARCH} == "sparc64"
878 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
879 _opensolaris= opensolaris
883 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
888 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
889 SUBDIR=${MODULES_OVERRIDE}
892 .for reject in ${WITHOUT_MODULES}
893 SUBDIR:= ${SUBDIR:N${reject}}
896 # Calling kldxref(8) for each module is expensive.
897 .if !defined(NO_XREF)
898 .MAKEFLAGS+= -DNO_XREF
900 @if type kldxref >/dev/null 2>&1; then \
901 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
902 kldxref ${DESTDIR}${KMODDIR}; \
906 .include <bsd.subdir.mk>