7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
388 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
390 _imgact_binmisc= imgact_binmisc
394 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
395 ${MACHINE_CPUARCH} != "mips"
400 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
401 # no BUS_SPACE_UNSPECIFIED
402 # No barrier instruction support (specific to this driver)
404 # intr_disable() is a macro, causes problems
405 .if ${MK_SOURCELESS_UCODE} != "no"
410 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
411 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
412 ${MACHINE_ARCH} != "powerpc"
416 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
420 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
421 .if exists(${.CURDIR}/../opencrypto)
423 _cryptodev= cryptodev
425 .if exists(${.CURDIR}/../crypto)
430 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
438 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
442 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
446 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
451 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
453 SUBDIR+= iscsi_initiator
456 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
461 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
465 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
466 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
469 .if ${MK_INET_SUPPORT} != "no"
474 .if ${MK_SOURCELESS_UCODE} != "no"
487 .if ${MACHINE_CPUARCH} == "i386"
488 # XXX some of these can move to the general case when de-i386'ed
489 # XXX some of these can move now, but are untested on other architectures.
491 _3dfx_linux= 3dfx_linux
502 .if ${MK_SOURCELESS_UCODE} != "no"
506 .if ${MK_SOURCELESS_UCODE} != "no"
515 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
529 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
537 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
541 _linprocfs= linprocfs
545 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
552 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
559 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
560 _opensolaris= opensolaris
581 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
584 .if ${MACHINE} == "i386"
588 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
602 .if ${MK_SOURCELESS_UCODE} != "no"
607 .if ${MK_SOURCELESS_HOST} != "no"
611 .if ${MK_SOURCELESS_HOST} != "no"
623 .if ${MK_SOURCELESS_UCODE} != "no"
628 .if ${MK_SOURCELESS_UCODE} != "no"
632 .if ${MK_SOURCELESS_UCODE} != "no"
642 .if ${MK_SOURCELESS_HOST} != "no"
651 .if ${MK_SOURCELESS_UCODE} != "no"
654 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
662 .elif ${MACHINE} == "pc98"
671 .if ${MACHINE_CPUARCH} == "amd64"
676 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
697 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
705 .if ${MK_SOURCELESS_HOST} != "no"
709 .if ${MK_SOURCELESS_HOST} != "no"
716 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
726 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
731 .if ${MK_SOURCELESS_UCODE} != "no"
736 .if ${MK_SOURCELESS_UCODE} != "no"
740 .if ${MK_SOURCELESS_UCODE} != "no"
750 _linprocfs= linprocfs
754 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
761 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
769 .if ${MK_SOURCELESS_HOST} != "no"
775 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
776 _opensolaris= opensolaris
778 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
801 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
803 _linux_common= linux_common
810 .if ${MK_SOURCELESS_UCODE} != "no"
813 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
818 .if ${MACHINE_CPUARCH} == "arm"
823 .if ${MACHINE_CPUARCH} == "ia64"
863 .if ${MACHINE_CPUARCH} == "powerpc"
872 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
876 _nvram= powermac_nvram
880 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
881 _opensolaris= opensolaris
886 .if ${MACHINE_ARCH} == "powerpc64"
889 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
894 .if ${MACHINE_CPUARCH} == "sparc64"
900 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
901 _opensolaris= opensolaris
905 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
910 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
911 SUBDIR=${MODULES_OVERRIDE}
914 SUBDIR+=${MODULES_EXTRA}
916 .for reject in ${WITHOUT_MODULES}
917 SUBDIR:= ${SUBDIR:N${reject}}
920 # Calling kldxref(8) for each module is expensive.
921 .if !defined(NO_XREF)
922 .MAKEFLAGS+= -DNO_XREF
924 @if type kldxref >/dev/null 2>&1; then \
925 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
926 kldxref ${DESTDIR}${KMODDIR}; \
930 .include <bsd.subdir.mk>