7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
387 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
389 _imgact_binmisc= imgact_binmisc
393 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
394 ${MACHINE_CPUARCH} != "mips"
399 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
400 # no BUS_SPACE_UNSPECIFIED
401 # No barrier instruction support (specific to this driver)
403 # intr_disable() is a macro, causes problems
404 .if ${MK_SOURCELESS_UCODE} != "no"
409 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
410 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
411 ${MACHINE_ARCH} != "powerpc"
415 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
419 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
420 .if exists(${.CURDIR}/../opencrypto)
422 _cryptodev= cryptodev
424 .if exists(${.CURDIR}/../crypto)
429 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
437 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
441 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
445 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
450 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
452 SUBDIR+= iscsi_initiator
455 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
460 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
464 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
465 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
468 .if ${MK_INET_SUPPORT} != "no"
473 .if ${MK_SOURCELESS_UCODE} != "no"
486 .if ${MACHINE_CPUARCH} == "i386"
487 # XXX some of these can move to the general case when de-i386'ed
488 # XXX some of these can move now, but are untested on other architectures.
490 _3dfx_linux= 3dfx_linux
501 .if ${MK_SOURCELESS_UCODE} != "no"
505 .if ${MK_SOURCELESS_UCODE} != "no"
514 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
528 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
536 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
540 _linprocfs= linprocfs
544 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
551 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
558 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
559 _opensolaris= opensolaris
580 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
583 .if ${MACHINE} == "i386"
587 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
601 .if ${MK_SOURCELESS_UCODE} != "no"
606 .if ${MK_SOURCELESS_HOST} != "no"
610 .if ${MK_SOURCELESS_HOST} != "no"
622 .if ${MK_SOURCELESS_UCODE} != "no"
627 .if ${MK_SOURCELESS_UCODE} != "no"
631 .if ${MK_SOURCELESS_UCODE} != "no"
641 .if ${MK_SOURCELESS_HOST} != "no"
650 .if ${MK_SOURCELESS_UCODE} != "no"
653 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
661 .elif ${MACHINE} == "pc98"
670 .if ${MACHINE_CPUARCH} == "amd64"
675 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
696 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
704 .if ${MK_SOURCELESS_HOST} != "no"
708 .if ${MK_SOURCELESS_HOST} != "no"
715 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
725 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
730 .if ${MK_SOURCELESS_UCODE} != "no"
735 .if ${MK_SOURCELESS_UCODE} != "no"
739 .if ${MK_SOURCELESS_UCODE} != "no"
749 _linprocfs= linprocfs
753 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
760 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
768 .if ${MK_SOURCELESS_HOST} != "no"
774 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
775 _opensolaris= opensolaris
777 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
800 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
808 .if ${MK_SOURCELESS_UCODE} != "no"
811 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
816 .if ${MACHINE_CPUARCH} == "arm"
821 .if ${MACHINE_CPUARCH} == "ia64"
861 .if ${MACHINE_CPUARCH} == "powerpc"
870 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
874 _nvram= powermac_nvram
878 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
879 _opensolaris= opensolaris
884 .if ${MACHINE_ARCH} == "powerpc64"
887 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
892 .if ${MACHINE_CPUARCH} == "sparc64"
898 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
899 _opensolaris= opensolaris
903 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
908 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
909 SUBDIR=${MODULES_OVERRIDE}
912 SUBDIR+=${MODULES_EXTRA}
914 .for reject in ${WITHOUT_MODULES}
915 SUBDIR:= ${SUBDIR:N${reject}}
918 # Calling kldxref(8) for each module is expensive.
919 .if !defined(NO_XREF)
920 .MAKEFLAGS+= -DNO_XREF
922 @if type kldxref >/dev/null 2>&1; then \
923 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
924 kldxref ${DESTDIR}${KMODDIR}; \
928 .include <bsd.subdir.mk>