7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
381 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
383 _imgact_binmisc= imgact_binmisc
387 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
388 ${MACHINE_CPUARCH} != "mips"
393 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
394 # no BUS_SPACE_UNSPECIFIED
395 # No barrier instruction support (specific to this driver)
397 # intr_disable() is a macro, causes problems
398 .if ${MK_SOURCELESS_UCODE} != "no"
403 .if ${MK_SOURCELESS_UCODE} != "no"
407 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
408 .if exists(${.CURDIR}/../opencrypto)
410 _cryptodev= cryptodev
412 .if exists(${.CURDIR}/../crypto)
417 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
423 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
427 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
431 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
436 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
438 SUBDIR+= iscsi_initiator
441 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
446 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
450 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
451 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
454 .if ${MK_INET_SUPPORT} != "no"
459 .if ${MK_SOURCELESS_UCODE} != "no"
472 .if ${MACHINE_CPUARCH} == "i386"
473 # XXX some of these can move to the general case when de-i386'ed
474 # XXX some of these can move now, but are untested on other architectures.
476 _3dfx_linux= 3dfx_linux
487 .if ${MK_SOURCELESS_UCODE} != "no"
491 .if ${MK_SOURCELESS_UCODE} != "no"
497 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
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)
675 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
681 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
689 .if ${MK_SOURCELESS_HOST} != "no"
693 .if ${MK_SOURCELESS_HOST} != "no"
700 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
710 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
715 .if ${MK_SOURCELESS_UCODE} != "no"
720 .if ${MK_SOURCELESS_UCODE} != "no"
724 .if ${MK_SOURCELESS_UCODE} != "no"
732 _linprocfs= linprocfs
736 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
746 .if ${MK_SOURCELESS_HOST} != "no"
752 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
753 _opensolaris= opensolaris
755 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
777 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
785 .if ${MK_SOURCELESS_UCODE} != "no"
788 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
793 .if ${MACHINE_CPUARCH} == "arm"
798 .if ${MACHINE_CPUARCH} == "ia64"
838 .if ${MACHINE_CPUARCH} == "powerpc"
846 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
850 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
854 _nvram= powermac_nvram
858 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
859 _opensolaris= opensolaris
864 .if ${MACHINE_ARCH} == "powerpc64"
865 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
870 .if ${MACHINE_CPUARCH} == "sparc64"
876 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
877 _opensolaris= opensolaris
881 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
886 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
887 SUBDIR=${MODULES_OVERRIDE}
890 .for reject in ${WITHOUT_MODULES}
891 SUBDIR:= ${SUBDIR:N${reject}}
894 # Calling kldxref(8) for each module is expensive.
895 .if !defined(NO_XREF)
896 .MAKEFLAGS+= -DNO_XREF
898 @if type kldxref >/dev/null 2>&1; then \
899 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
900 kldxref ${DESTDIR}${KMODDIR}; \
904 .include <bsd.subdir.mk>