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)
678 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
686 .if ${MK_SOURCELESS_HOST} != "no"
690 .if ${MK_SOURCELESS_HOST} != "no"
697 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
707 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
712 .if ${MK_SOURCELESS_UCODE} != "no"
717 .if ${MK_SOURCELESS_UCODE} != "no"
721 .if ${MK_SOURCELESS_UCODE} != "no"
729 _linprocfs= linprocfs
733 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
743 .if ${MK_SOURCELESS_HOST} != "no"
749 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
750 _opensolaris= opensolaris
752 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
774 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
782 .if ${MK_SOURCELESS_UCODE} != "no"
785 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
790 .if ${MACHINE_CPUARCH} == "arm"
795 .if ${MACHINE_CPUARCH} == "ia64"
835 .if ${MACHINE_CPUARCH} == "powerpc"
844 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
848 _nvram= powermac_nvram
852 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
853 _opensolaris= opensolaris
858 .if ${MACHINE_ARCH} == "powerpc64"
861 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
866 .if ${MACHINE_CPUARCH} == "sparc64"
872 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
873 _opensolaris= opensolaris
877 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
882 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
883 SUBDIR=${MODULES_OVERRIDE}
886 .for reject in ${WITHOUT_MODULES}
887 SUBDIR:= ${SUBDIR:N${reject}}
890 # Calling kldxref(8) for each module is expensive.
891 .if !defined(NO_XREF)
892 .MAKEFLAGS+= -DNO_XREF
894 @if type kldxref >/dev/null 2>&1; then \
895 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
896 kldxref ${DESTDIR}${KMODDIR}; \
900 .include <bsd.subdir.mk>