7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
393 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
394 _imgact_binmisc= imgact_binmisc
398 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
399 ${MACHINE_CPUARCH} != "mips"
404 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
405 # no BUS_SPACE_UNSPECIFIED
406 # No barrier instruction support (specific to this driver)
408 # intr_disable() is a macro, causes problems
409 .if ${MK_SOURCELESS_UCODE} != "no"
414 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
415 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
416 ${MACHINE_ARCH} != "powerpc"
420 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
424 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
425 .if exists(${.CURDIR}/../opencrypto)
427 _cryptodev= cryptodev
429 .if exists(${.CURDIR}/../crypto)
434 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
442 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
446 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
450 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
455 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
457 SUBDIR+= iscsi_initiator
460 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
465 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
469 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
470 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
473 .if ${MK_INET_SUPPORT} != "no"
478 .if ${MK_SOURCELESS_UCODE} != "no"
491 .if ${MACHINE_CPUARCH} == "i386"
492 # XXX some of these can move to the general case when de-i386'ed
493 # XXX some of these can move now, but are untested on other architectures.
495 _3dfx_linux= 3dfx_linux
503 .if ${MK_SOURCELESS_UCODE} != "no"
508 .if ${MK_SOURCELESS_UCODE} != "no"
512 .if ${MK_SOURCELESS_UCODE} != "no"
521 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
535 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
543 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
547 _linprocfs= linprocfs
551 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
558 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
565 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
566 _opensolaris= opensolaris
587 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
590 .if ${MACHINE} == "i386"
594 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
608 .if ${MK_SOURCELESS_UCODE} != "no"
613 .if ${MK_SOURCELESS_HOST} != "no"
617 .if ${MK_SOURCELESS_HOST} != "no"
629 .if ${MK_SOURCELESS_UCODE} != "no"
634 .if ${MK_SOURCELESS_UCODE} != "no"
638 .if ${MK_SOURCELESS_UCODE} != "no"
648 .if ${MK_SOURCELESS_HOST} != "no"
657 .if ${MK_SOURCELESS_UCODE} != "no"
660 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
664 _sdhci_acpi= sdhci_acpi
669 .elif ${MACHINE} == "pc98"
678 .if ${MACHINE_CPUARCH} == "amd64"
683 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
705 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
713 .if ${MK_SOURCELESS_HOST} != "no"
717 .if ${MK_SOURCELESS_HOST} != "no"
724 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
735 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
740 .if ${MK_SOURCELESS_UCODE} != "no"
745 .if ${MK_SOURCELESS_UCODE} != "no"
749 .if ${MK_SOURCELESS_UCODE} != "no"
759 _linprocfs= linprocfs
763 _linux_common= linux_common
765 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
773 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
781 .if ${MK_SOURCELESS_HOST} != "no"
787 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
788 _opensolaris= opensolaris
790 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
797 .if ${MK_SOURCELESS_UCODE} != "no"
816 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
824 .if ${MK_SOURCELESS_UCODE} != "no"
827 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
832 .if ${MACHINE_CPUARCH} == "arm"
837 .if ${MACHINE_CPUARCH} == "ia64"
877 .if ${MACHINE_CPUARCH} == "powerpc"
886 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
890 _nvram= powermac_nvram
894 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
895 _opensolaris= opensolaris
900 .if ${MACHINE_ARCH} == "powerpc64"
903 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
908 .if ${MACHINE_CPUARCH} == "sparc64"
914 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
915 _opensolaris= opensolaris
919 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
924 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
925 SUBDIR=${MODULES_OVERRIDE}
928 SUBDIR+=${MODULES_EXTRA}
930 .for reject in ${WITHOUT_MODULES}
931 SUBDIR:= ${SUBDIR:N${reject}}
934 # Calling kldxref(8) for each module is expensive.
935 .if !defined(NO_XREF)
936 .MAKEFLAGS+= -DNO_XREF
938 @if type kldxref >/dev/null 2>&1; then \
939 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
940 kldxref ${DESTDIR}${KMODDIR}; \
944 .include <bsd.subdir.mk>