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_AUTOFS} != "no" || defined(ALL_MODULES)
410 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
411 .if exists(${.CURDIR}/../opencrypto)
413 _cryptodev= cryptodev
415 .if exists(${.CURDIR}/../crypto)
420 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
426 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
430 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
434 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
439 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
441 SUBDIR+= iscsi_initiator
444 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
449 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
453 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
454 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
457 .if ${MK_INET_SUPPORT} != "no"
462 .if ${MK_SOURCELESS_UCODE} != "no"
475 .if ${MACHINE_CPUARCH} == "i386"
476 # XXX some of these can move to the general case when de-i386'ed
477 # XXX some of these can move now, but are untested on other architectures.
479 _3dfx_linux= 3dfx_linux
490 .if ${MK_SOURCELESS_UCODE} != "no"
494 .if ${MK_SOURCELESS_UCODE} != "no"
503 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
517 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
525 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
529 _linprocfs= linprocfs
533 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
542 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
543 _opensolaris= opensolaris
564 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
567 .if ${MACHINE} == "i386"
571 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
585 .if ${MK_SOURCELESS_UCODE} != "no"
590 .if ${MK_SOURCELESS_HOST} != "no"
594 .if ${MK_SOURCELESS_HOST} != "no"
606 .if ${MK_SOURCELESS_UCODE} != "no"
611 .if ${MK_SOURCELESS_UCODE} != "no"
615 .if ${MK_SOURCELESS_UCODE} != "no"
623 .if ${MK_SOURCELESS_HOST} != "no"
632 .if ${MK_SOURCELESS_UCODE} != "no"
635 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
643 .elif ${MACHINE} == "pc98"
652 .if ${MACHINE_CPUARCH} == "amd64"
657 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
675 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
681 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
689 .if ${MK_SOURCELESS_HOST} != "no"
693 .if ${MK_SOURCELESS_HOST} != "no"
700 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
710 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
715 .if ${MK_SOURCELESS_UCODE} != "no"
720 .if ${MK_SOURCELESS_UCODE} != "no"
724 .if ${MK_SOURCELESS_UCODE} != "no"
732 _linprocfs= linprocfs
736 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
746 .if ${MK_SOURCELESS_HOST} != "no"
752 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
753 _opensolaris= opensolaris
755 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
777 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
785 .if ${MK_SOURCELESS_UCODE} != "no"
788 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
793 .if ${MACHINE_CPUARCH} == "arm"
798 .if ${MACHINE_CPUARCH} == "ia64"
838 .if ${MACHINE_CPUARCH} == "powerpc"
847 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
851 _nvram= powermac_nvram
855 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
856 _opensolaris= opensolaris
861 .if ${MACHINE_ARCH} == "powerpc64"
864 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
869 .if ${MACHINE_CPUARCH} == "sparc64"
875 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
876 _opensolaris= opensolaris
880 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
885 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
886 SUBDIR=${MODULES_OVERRIDE}
889 .for reject in ${WITHOUT_MODULES}
890 SUBDIR:= ${SUBDIR:N${reject}}
893 # Calling kldxref(8) for each module is expensive.
894 .if !defined(NO_XREF)
895 .MAKEFLAGS+= -DNO_XREF
897 @if type kldxref >/dev/null 2>&1; then \
898 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
899 kldxref ${DESTDIR}${KMODDIR}; \
903 .include <bsd.subdir.mk>