7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
382 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
384 _imgact_binmisc= imgact_binmisc
388 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
389 ${MACHINE_CPUARCH} != "mips"
394 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
395 # no BUS_SPACE_UNSPECIFIED
396 # No barrier instruction support (specific to this driver)
398 # intr_disable() is a macro, causes problems
399 .if ${MK_SOURCELESS_UCODE} != "no"
404 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
405 ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
406 ${MACHINE_ARCH} != "powerpc"
410 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
414 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
415 .if exists(${.CURDIR}/../opencrypto)
417 _cryptodev= cryptodev
419 .if exists(${.CURDIR}/../crypto)
424 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
430 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
434 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
438 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
443 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
445 SUBDIR+= iscsi_initiator
448 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
453 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
457 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
458 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
461 .if ${MK_INET_SUPPORT} != "no"
466 .if ${MK_SOURCELESS_UCODE} != "no"
479 .if ${MACHINE_CPUARCH} == "i386"
480 # XXX some of these can move to the general case when de-i386'ed
481 # XXX some of these can move now, but are untested on other architectures.
483 _3dfx_linux= 3dfx_linux
494 .if ${MK_SOURCELESS_UCODE} != "no"
498 .if ${MK_SOURCELESS_UCODE} != "no"
507 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
521 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
529 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
533 _linprocfs= linprocfs
537 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
546 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
547 _opensolaris= opensolaris
568 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
571 .if ${MACHINE} == "i386"
575 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
589 .if ${MK_SOURCELESS_UCODE} != "no"
594 .if ${MK_SOURCELESS_HOST} != "no"
598 .if ${MK_SOURCELESS_HOST} != "no"
610 .if ${MK_SOURCELESS_UCODE} != "no"
615 .if ${MK_SOURCELESS_UCODE} != "no"
619 .if ${MK_SOURCELESS_UCODE} != "no"
629 .if ${MK_SOURCELESS_HOST} != "no"
638 .if ${MK_SOURCELESS_UCODE} != "no"
641 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
649 .elif ${MACHINE} == "pc98"
658 .if ${MACHINE_CPUARCH} == "amd64"
663 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
684 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
692 .if ${MK_SOURCELESS_HOST} != "no"
696 .if ${MK_SOURCELESS_HOST} != "no"
703 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
713 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
718 .if ${MK_SOURCELESS_UCODE} != "no"
723 .if ${MK_SOURCELESS_UCODE} != "no"
727 .if ${MK_SOURCELESS_UCODE} != "no"
737 _linprocfs= linprocfs
741 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
751 .if ${MK_SOURCELESS_HOST} != "no"
757 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
758 _opensolaris= opensolaris
760 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
782 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
790 .if ${MK_SOURCELESS_UCODE} != "no"
793 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
798 .if ${MACHINE_CPUARCH} == "arm"
803 .if ${MACHINE_CPUARCH} == "ia64"
843 .if ${MACHINE_CPUARCH} == "powerpc"
852 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
856 _nvram= powermac_nvram
860 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
861 _opensolaris= opensolaris
866 .if ${MACHINE_ARCH} == "powerpc64"
869 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
874 .if ${MACHINE_CPUARCH} == "sparc64"
880 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
881 _opensolaris= opensolaris
885 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
890 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
891 SUBDIR=${MODULES_OVERRIDE}
894 .for reject in ${WITHOUT_MODULES}
895 SUBDIR:= ${SUBDIR:N${reject}}
898 # Calling kldxref(8) for each module is expensive.
899 .if !defined(NO_XREF)
900 .MAKEFLAGS+= -DNO_XREF
902 @if type kldxref >/dev/null 2>&1; then \
903 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
904 kldxref ${DESTDIR}${KMODDIR}; \
908 .include <bsd.subdir.mk>