7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
389 .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)
727 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
732 .if ${MK_SOURCELESS_UCODE} != "no"
737 .if ${MK_SOURCELESS_UCODE} != "no"
741 .if ${MK_SOURCELESS_UCODE} != "no"
751 _linprocfs= linprocfs
755 _linux_common= linux_common
757 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
764 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
772 .if ${MK_SOURCELESS_HOST} != "no"
778 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
779 _opensolaris= opensolaris
781 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
804 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
812 .if ${MK_SOURCELESS_UCODE} != "no"
815 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
820 .if ${MACHINE_CPUARCH} == "arm"
825 .if ${MACHINE_CPUARCH} == "ia64"
865 .if ${MACHINE_CPUARCH} == "powerpc"
874 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
878 _nvram= powermac_nvram
882 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
883 _opensolaris= opensolaris
888 .if ${MACHINE_ARCH} == "powerpc64"
891 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
896 .if ${MACHINE_CPUARCH} == "sparc64"
902 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
903 _opensolaris= opensolaris
907 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
912 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
913 SUBDIR=${MODULES_OVERRIDE}
916 SUBDIR+=${MODULES_EXTRA}
918 .for reject in ${WITHOUT_MODULES}
919 SUBDIR:= ${SUBDIR:N${reject}}
922 # Calling kldxref(8) for each module is expensive.
923 .if !defined(NO_XREF)
924 .MAKEFLAGS+= -DNO_XREF
926 @if type kldxref >/dev/null 2>&1; then \
927 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
928 kldxref ${DESTDIR}${KMODDIR}; \
932 .include <bsd.subdir.mk>