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)
699 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
707 .if ${MK_SOURCELESS_HOST} != "no"
711 .if ${MK_SOURCELESS_HOST} != "no"
718 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
729 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
734 .if ${MK_SOURCELESS_UCODE} != "no"
739 .if ${MK_SOURCELESS_UCODE} != "no"
743 .if ${MK_SOURCELESS_UCODE} != "no"
753 _linprocfs= linprocfs
757 _linux_common= linux_common
759 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
766 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
774 .if ${MK_SOURCELESS_HOST} != "no"
780 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
781 _opensolaris= opensolaris
783 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
806 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
814 .if ${MK_SOURCELESS_UCODE} != "no"
817 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
822 .if ${MACHINE_CPUARCH} == "arm"
827 .if ${MACHINE_CPUARCH} == "ia64"
867 .if ${MACHINE_CPUARCH} == "powerpc"
876 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
880 _nvram= powermac_nvram
884 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
885 _opensolaris= opensolaris
890 .if ${MACHINE_ARCH} == "powerpc64"
893 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
898 .if ${MACHINE_CPUARCH} == "sparc64"
904 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
905 _opensolaris= opensolaris
909 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
914 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
915 SUBDIR=${MODULES_OVERRIDE}
918 SUBDIR+=${MODULES_EXTRA}
920 .for reject in ${WITHOUT_MODULES}
921 SUBDIR:= ${SUBDIR:N${reject}}
924 # Calling kldxref(8) for each module is expensive.
925 .if !defined(NO_XREF)
926 .MAKEFLAGS+= -DNO_XREF
928 @if type kldxref >/dev/null 2>&1; then \
929 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
930 kldxref ${DESTDIR}${KMODDIR}; \
934 .include <bsd.subdir.mk>