7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
379 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
384 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
385 ${MACHINE_CPUARCH} != "mips"
390 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
391 # no BUS_SPACE_UNSPECIFIED
392 # No barrier instruction support (specific to this driver)
394 # intr_disable() is a macro, causes problems
395 .if ${MK_SOURCELESS_UCODE} != "no"
400 .if ${MK_SOURCELESS_UCODE} != "no"
404 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
405 .if exists(${.CURDIR}/../opencrypto)
407 _cryptodev= cryptodev
409 .if exists(${.CURDIR}/../crypto)
414 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
420 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
424 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
428 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
433 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
438 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
442 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
443 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
446 .if ${MK_INET_SUPPORT} != "no"
451 .if ${MK_SOURCELESS_UCODE} != "no"
464 .if ${MACHINE_CPUARCH} == "i386"
465 # XXX some of these can move to the general case when de-i386'ed
466 # XXX some of these can move now, but are untested on other architectures.
468 _3dfx_linux= 3dfx_linux
479 .if ${MK_SOURCELESS_UCODE} != "no"
483 .if ${MK_SOURCELESS_UCODE} != "no"
489 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
495 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
509 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
517 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
520 _linprocfs= linprocfs
524 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
533 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
534 _opensolaris= opensolaris
539 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
557 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
560 .if ${MACHINE} == "i386"
564 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
567 .if ${MK_EISA} != "no"
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"
624 .if ${MK_SOURCELESS_UCODE} != "no"
627 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
635 .elif ${MACHINE} == "pc98"
644 .if ${MACHINE_CPUARCH} == "amd64"
649 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
667 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
673 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
681 .if ${MK_SOURCELESS_HOST} != "no"
685 .if ${MK_SOURCELESS_HOST} != "no"
692 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
702 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
707 .if ${MK_SOURCELESS_UCODE} != "no"
712 .if ${MK_SOURCELESS_UCODE} != "no"
716 .if ${MK_SOURCELESS_UCODE} != "no"
721 _linprocfs= linprocfs
725 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
738 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
739 _opensolaris= opensolaris
741 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
748 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
771 .if ${MK_SOURCELESS_UCODE} != "no"
774 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
779 .if ${MACHINE_CPUARCH} == "arm"
785 .if ${MACHINE_CPUARCH} == "powerpc"
793 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
797 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
801 _nvram= powermac_nvram
805 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
806 _opensolaris= opensolaris
811 .if ${MACHINE_ARCH} == "powerpc64"
812 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
817 .if ${MACHINE_CPUARCH} == "sparc64"
823 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
824 _opensolaris= opensolaris
828 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
833 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
834 SUBDIR=${MODULES_OVERRIDE}
837 .for reject in ${WITHOUT_MODULES}
838 SUBDIR:= ${SUBDIR:N${reject}}
841 # Calling kldxref(8) for each module is expensive.
842 .if !defined(NO_XREF)
843 .MAKEFLAGS+= -DNO_XREF
845 @if type kldxref >/dev/null 2>&1; then \
846 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
847 kldxref ${DESTDIR}${KMODDIR}; \
851 .include <bsd.subdir.mk>