7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
383 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
385 _imgact_binmisc= imgact_binmisc
389 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
390 ${MACHINE_CPUARCH} != "mips"
395 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
396 # no BUS_SPACE_UNSPECIFIED
397 # No barrier instruction support (specific to this driver)
399 # intr_disable() is a macro, causes problems
400 .if ${MK_SOURCELESS_UCODE} != "no"
405 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
406 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
407 ${MACHINE_ARCH} != "powerpc"
411 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
415 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
416 .if exists(${.CURDIR}/../opencrypto)
418 _cryptodev= cryptodev
420 .if exists(${.CURDIR}/../crypto)
425 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
433 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
437 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
441 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
446 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
448 SUBDIR+= iscsi_initiator
451 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
456 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
460 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
461 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
464 .if ${MK_INET_SUPPORT} != "no"
469 .if ${MK_SOURCELESS_UCODE} != "no"
482 .if ${MACHINE_CPUARCH} == "i386"
483 # XXX some of these can move to the general case when de-i386'ed
484 # XXX some of these can move now, but are untested on other architectures.
486 _3dfx_linux= 3dfx_linux
497 .if ${MK_SOURCELESS_UCODE} != "no"
501 .if ${MK_SOURCELESS_UCODE} != "no"
510 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
524 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
532 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
536 _linprocfs= linprocfs
540 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
549 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
550 _opensolaris= opensolaris
571 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
574 .if ${MACHINE} == "i386"
578 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
592 .if ${MK_SOURCELESS_UCODE} != "no"
597 .if ${MK_SOURCELESS_HOST} != "no"
601 .if ${MK_SOURCELESS_HOST} != "no"
613 .if ${MK_SOURCELESS_UCODE} != "no"
618 .if ${MK_SOURCELESS_UCODE} != "no"
622 .if ${MK_SOURCELESS_UCODE} != "no"
632 .if ${MK_SOURCELESS_HOST} != "no"
641 .if ${MK_SOURCELESS_UCODE} != "no"
644 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
652 .elif ${MACHINE} == "pc98"
661 .if ${MACHINE_CPUARCH} == "amd64"
666 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
687 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
695 .if ${MK_SOURCELESS_HOST} != "no"
699 .if ${MK_SOURCELESS_HOST} != "no"
706 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
716 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
721 .if ${MK_SOURCELESS_UCODE} != "no"
726 .if ${MK_SOURCELESS_UCODE} != "no"
730 .if ${MK_SOURCELESS_UCODE} != "no"
740 _linprocfs= linprocfs
744 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
754 .if ${MK_SOURCELESS_HOST} != "no"
760 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
761 _opensolaris= opensolaris
763 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
785 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
793 .if ${MK_SOURCELESS_UCODE} != "no"
796 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
801 .if ${MACHINE_CPUARCH} == "arm"
806 .if ${MACHINE_CPUARCH} == "ia64"
846 .if ${MACHINE_CPUARCH} == "powerpc"
855 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
859 _nvram= powermac_nvram
863 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
864 _opensolaris= opensolaris
869 .if ${MACHINE_ARCH} == "powerpc64"
872 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
877 .if ${MACHINE_CPUARCH} == "sparc64"
883 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
884 _opensolaris= opensolaris
888 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
893 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
894 SUBDIR=${MODULES_OVERRIDE}
897 .for reject in ${WITHOUT_MODULES}
898 SUBDIR:= ${SUBDIR:N${reject}}
901 # Calling kldxref(8) for each module is expensive.
902 .if !defined(NO_XREF)
903 .MAKEFLAGS+= -DNO_XREF
905 @if type kldxref >/dev/null 2>&1; then \
906 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
907 kldxref ${DESTDIR}${KMODDIR}; \
911 .include <bsd.subdir.mk>