7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
390 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
391 _imgact_binmisc= imgact_binmisc
395 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
396 ${MACHINE_CPUARCH} != "mips"
401 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
402 # no BUS_SPACE_UNSPECIFIED
403 # No barrier instruction support (specific to this driver)
405 # intr_disable() is a macro, causes problems
406 .if ${MK_SOURCELESS_UCODE} != "no"
411 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
412 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
413 ${MACHINE_ARCH} != "powerpc"
417 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
421 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
422 .if exists(${.CURDIR}/../opencrypto)
424 _cryptodev= cryptodev
426 .if exists(${.CURDIR}/../crypto)
431 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
439 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
443 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
447 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
452 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
454 SUBDIR+= iscsi_initiator
457 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
462 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
466 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
467 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
470 .if ${MK_INET_SUPPORT} != "no"
475 .if ${MK_SOURCELESS_UCODE} != "no"
488 .if ${MACHINE_CPUARCH} == "i386"
489 # XXX some of these can move to the general case when de-i386'ed
490 # XXX some of these can move now, but are untested on other architectures.
492 _3dfx_linux= 3dfx_linux
503 .if ${MK_SOURCELESS_UCODE} != "no"
507 .if ${MK_SOURCELESS_UCODE} != "no"
516 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
530 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
538 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
542 _linprocfs= linprocfs
546 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
553 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
560 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
561 _opensolaris= opensolaris
582 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
585 .if ${MACHINE} == "i386"
589 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
603 .if ${MK_SOURCELESS_UCODE} != "no"
608 .if ${MK_SOURCELESS_HOST} != "no"
612 .if ${MK_SOURCELESS_HOST} != "no"
624 .if ${MK_SOURCELESS_UCODE} != "no"
629 .if ${MK_SOURCELESS_UCODE} != "no"
633 .if ${MK_SOURCELESS_UCODE} != "no"
643 .if ${MK_SOURCELESS_HOST} != "no"
652 .if ${MK_SOURCELESS_UCODE} != "no"
655 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
663 .elif ${MACHINE} == "pc98"
672 .if ${MACHINE_CPUARCH} == "amd64"
677 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
698 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
706 .if ${MK_SOURCELESS_HOST} != "no"
710 .if ${MK_SOURCELESS_HOST} != "no"
717 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
728 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
733 .if ${MK_SOURCELESS_UCODE} != "no"
738 .if ${MK_SOURCELESS_UCODE} != "no"
742 .if ${MK_SOURCELESS_UCODE} != "no"
752 _linprocfs= linprocfs
756 _linux_common= linux_common
758 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
765 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
773 .if ${MK_SOURCELESS_HOST} != "no"
779 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
780 _opensolaris= opensolaris
782 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
805 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
813 .if ${MK_SOURCELESS_UCODE} != "no"
816 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
821 .if ${MACHINE_CPUARCH} == "arm"
826 .if ${MACHINE_CPUARCH} == "ia64"
866 .if ${MACHINE_CPUARCH} == "powerpc"
875 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
879 _nvram= powermac_nvram
883 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
884 _opensolaris= opensolaris
889 .if ${MACHINE_ARCH} == "powerpc64"
892 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
897 .if ${MACHINE_CPUARCH} == "sparc64"
903 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
904 _opensolaris= opensolaris
908 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
913 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
914 SUBDIR=${MODULES_OVERRIDE}
917 SUBDIR+=${MODULES_EXTRA}
919 .for reject in ${WITHOUT_MODULES}
920 SUBDIR:= ${SUBDIR:N${reject}}
923 # Calling kldxref(8) for each module is expensive.
924 .if !defined(NO_XREF)
925 .MAKEFLAGS+= -DNO_XREF
927 @if type kldxref >/dev/null 2>&1; then \
928 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
929 kldxref ${DESTDIR}${KMODDIR}; \
933 .include <bsd.subdir.mk>