7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
384 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
386 _imgact_binmisc= imgact_binmisc
390 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
391 ${MACHINE_CPUARCH} != "mips"
396 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
397 # no BUS_SPACE_UNSPECIFIED
398 # No barrier instruction support (specific to this driver)
400 # intr_disable() is a macro, causes problems
401 .if ${MK_SOURCELESS_UCODE} != "no"
406 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
407 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
408 ${MACHINE_ARCH} != "powerpc"
412 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
416 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
417 .if exists(${.CURDIR}/../opencrypto)
419 _cryptodev= cryptodev
421 .if exists(${.CURDIR}/../crypto)
426 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
434 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
438 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
442 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
447 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
449 SUBDIR+= iscsi_initiator
452 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
457 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
461 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
462 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
465 .if ${MK_INET_SUPPORT} != "no"
470 .if ${MK_SOURCELESS_UCODE} != "no"
483 .if ${MACHINE_CPUARCH} == "i386"
484 # XXX some of these can move to the general case when de-i386'ed
485 # XXX some of these can move now, but are untested on other architectures.
487 _3dfx_linux= 3dfx_linux
498 .if ${MK_SOURCELESS_UCODE} != "no"
502 .if ${MK_SOURCELESS_UCODE} != "no"
511 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
525 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
533 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
537 _linprocfs= linprocfs
541 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
550 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
551 _opensolaris= opensolaris
572 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
575 .if ${MACHINE} == "i386"
579 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
593 .if ${MK_SOURCELESS_UCODE} != "no"
598 .if ${MK_SOURCELESS_HOST} != "no"
602 .if ${MK_SOURCELESS_HOST} != "no"
614 .if ${MK_SOURCELESS_UCODE} != "no"
619 .if ${MK_SOURCELESS_UCODE} != "no"
623 .if ${MK_SOURCELESS_UCODE} != "no"
633 .if ${MK_SOURCELESS_HOST} != "no"
642 .if ${MK_SOURCELESS_UCODE} != "no"
645 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
653 .elif ${MACHINE} == "pc98"
662 .if ${MACHINE_CPUARCH} == "amd64"
667 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
688 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
696 .if ${MK_SOURCELESS_HOST} != "no"
700 .if ${MK_SOURCELESS_HOST} != "no"
707 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
717 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
722 .if ${MK_SOURCELESS_UCODE} != "no"
727 .if ${MK_SOURCELESS_UCODE} != "no"
731 .if ${MK_SOURCELESS_UCODE} != "no"
741 _linprocfs= linprocfs
745 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
755 .if ${MK_SOURCELESS_HOST} != "no"
761 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
762 _opensolaris= opensolaris
764 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
786 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
794 .if ${MK_SOURCELESS_UCODE} != "no"
797 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
802 .if ${MACHINE_CPUARCH} == "arm"
807 .if ${MACHINE_CPUARCH} == "ia64"
847 .if ${MACHINE_CPUARCH} == "powerpc"
856 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
860 _nvram= powermac_nvram
864 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
865 _opensolaris= opensolaris
870 .if ${MACHINE_ARCH} == "powerpc64"
873 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
878 .if ${MACHINE_CPUARCH} == "sparc64"
884 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
885 _opensolaris= opensolaris
889 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
894 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
895 SUBDIR=${MODULES_OVERRIDE}
898 SUBDIR+=${MODULES_EXTRA}
900 .for reject in ${WITHOUT_MODULES}
901 SUBDIR:= ${SUBDIR:N${reject}}
904 # Calling kldxref(8) for each module is expensive.
905 .if !defined(NO_XREF)
906 .MAKEFLAGS+= -DNO_XREF
908 @if type kldxref >/dev/null 2>&1; then \
909 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
910 kldxref ${DESTDIR}${KMODDIR}; \
914 .include <bsd.subdir.mk>