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_NAND} != "no" || defined(ALL_MODULES)
441 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
445 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
446 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
449 .if ${MK_INET_SUPPORT} != "no"
454 .if ${MK_SOURCELESS_UCODE} != "no"
467 .if ${MACHINE_CPUARCH} == "i386"
468 # XXX some of these can move to the general case when de-i386'ed
469 # XXX some of these can move now, but are untested on other architectures.
471 _3dfx_linux= 3dfx_linux
482 .if ${MK_SOURCELESS_UCODE} != "no"
486 .if ${MK_SOURCELESS_UCODE} != "no"
492 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
498 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
512 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
520 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
524 _linprocfs= linprocfs
528 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
537 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
538 _opensolaris= opensolaris
559 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
562 .if ${MACHINE} == "i386"
566 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
580 .if ${MK_SOURCELESS_UCODE} != "no"
585 .if ${MK_SOURCELESS_HOST} != "no"
589 .if ${MK_SOURCELESS_HOST} != "no"
601 .if ${MK_SOURCELESS_UCODE} != "no"
606 .if ${MK_SOURCELESS_UCODE} != "no"
610 .if ${MK_SOURCELESS_UCODE} != "no"
618 .if ${MK_SOURCELESS_HOST} != "no"
627 .if ${MK_SOURCELESS_UCODE} != "no"
630 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
638 .elif ${MACHINE} == "pc98"
647 .if ${MACHINE_CPUARCH} == "amd64"
652 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
670 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
676 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
684 .if ${MK_SOURCELESS_HOST} != "no"
688 .if ${MK_SOURCELESS_HOST} != "no"
695 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
705 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
710 .if ${MK_SOURCELESS_UCODE} != "no"
715 .if ${MK_SOURCELESS_UCODE} != "no"
719 .if ${MK_SOURCELESS_UCODE} != "no"
725 _linprocfs= linprocfs
729 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
739 .if ${MK_SOURCELESS_HOST} != "no"
745 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
746 _opensolaris= opensolaris
748 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
776 .if ${MK_SOURCELESS_UCODE} != "no"
779 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
784 .if ${MACHINE_CPUARCH} == "arm"
789 .if ${MACHINE_CPUARCH} == "ia64"
829 .if ${MACHINE_CPUARCH} == "powerpc"
837 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
841 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
845 _nvram= powermac_nvram
849 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
850 _opensolaris= opensolaris
855 .if ${MACHINE_ARCH} == "powerpc64"
856 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
861 .if ${MACHINE_CPUARCH} == "sparc64"
867 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
868 _opensolaris= opensolaris
872 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
877 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
878 SUBDIR=${MODULES_OVERRIDE}
881 .for reject in ${WITHOUT_MODULES}
882 SUBDIR:= ${SUBDIR:N${reject}}
885 # Calling kldxref(8) for each module is expensive.
886 .if !defined(NO_XREF)
887 .MAKEFLAGS+= -DNO_XREF
889 @if type kldxref >/dev/null 2>&1; then \
890 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
891 kldxref ${DESTDIR}${KMODDIR}; \
895 .include <bsd.subdir.mk>