7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
385 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
387 _imgact_binmisc= imgact_binmisc
391 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
392 ${MACHINE_CPUARCH} != "mips"
397 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
398 # no BUS_SPACE_UNSPECIFIED
399 # No barrier instruction support (specific to this driver)
401 # intr_disable() is a macro, causes problems
402 .if ${MK_SOURCELESS_UCODE} != "no"
407 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
408 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
409 ${MACHINE_ARCH} != "powerpc"
413 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
417 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
418 .if exists(${.CURDIR}/../opencrypto)
420 _cryptodev= cryptodev
422 .if exists(${.CURDIR}/../crypto)
427 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
435 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
439 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
443 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
448 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
450 SUBDIR+= iscsi_initiator
453 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
458 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
462 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
463 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
466 .if ${MK_INET_SUPPORT} != "no"
471 .if ${MK_SOURCELESS_UCODE} != "no"
484 .if ${MACHINE_CPUARCH} == "i386"
485 # XXX some of these can move to the general case when de-i386'ed
486 # XXX some of these can move now, but are untested on other architectures.
488 _3dfx_linux= 3dfx_linux
499 .if ${MK_SOURCELESS_UCODE} != "no"
503 .if ${MK_SOURCELESS_UCODE} != "no"
512 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
526 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
534 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
538 _linprocfs= linprocfs
542 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
551 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
552 _opensolaris= opensolaris
573 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
576 .if ${MACHINE} == "i386"
580 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
594 .if ${MK_SOURCELESS_UCODE} != "no"
599 .if ${MK_SOURCELESS_HOST} != "no"
603 .if ${MK_SOURCELESS_HOST} != "no"
615 .if ${MK_SOURCELESS_UCODE} != "no"
620 .if ${MK_SOURCELESS_UCODE} != "no"
624 .if ${MK_SOURCELESS_UCODE} != "no"
634 .if ${MK_SOURCELESS_HOST} != "no"
643 .if ${MK_SOURCELESS_UCODE} != "no"
646 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
654 .elif ${MACHINE} == "pc98"
663 .if ${MACHINE_CPUARCH} == "amd64"
668 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
689 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
697 .if ${MK_SOURCELESS_HOST} != "no"
701 .if ${MK_SOURCELESS_HOST} != "no"
708 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
718 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
723 .if ${MK_SOURCELESS_UCODE} != "no"
728 .if ${MK_SOURCELESS_UCODE} != "no"
732 .if ${MK_SOURCELESS_UCODE} != "no"
742 _linprocfs= linprocfs
746 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
756 .if ${MK_SOURCELESS_HOST} != "no"
762 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
763 _opensolaris= opensolaris
765 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
788 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
796 .if ${MK_SOURCELESS_UCODE} != "no"
799 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
804 .if ${MACHINE_CPUARCH} == "arm"
809 .if ${MACHINE_CPUARCH} == "ia64"
849 .if ${MACHINE_CPUARCH} == "powerpc"
858 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
862 _nvram= powermac_nvram
866 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
867 _opensolaris= opensolaris
872 .if ${MACHINE_ARCH} == "powerpc64"
875 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
880 .if ${MACHINE_CPUARCH} == "sparc64"
886 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
887 _opensolaris= opensolaris
891 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
896 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
897 SUBDIR=${MODULES_OVERRIDE}
900 SUBDIR+=${MODULES_EXTRA}
902 .for reject in ${WITHOUT_MODULES}
903 SUBDIR:= ${SUBDIR:N${reject}}
906 # Calling kldxref(8) for each module is expensive.
907 .if !defined(NO_XREF)
908 .MAKEFLAGS+= -DNO_XREF
910 @if type kldxref >/dev/null 2>&1; then \
911 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
912 kldxref ${DESTDIR}${KMODDIR}; \
916 .include <bsd.subdir.mk>