4 .include "${SYSDIR}/conf/kern.opts.mk"
8 # Modules that include binary-only blobs of microcode should be selectable by
9 # MK_SOURCELESS_UCODE option (see below).
11 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
12 SUBDIR=${MODULES_OVERRIDE}
389 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
390 .if exists(${.CURDIR}/../opencrypto)
392 _cryptodev= cryptodev
394 .if exists(${.CURDIR}/../crypto)
399 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
405 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
411 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
415 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
420 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
424 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
425 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
428 .if ${MK_INET_SUPPORT} != "no"
433 .if ${MK_SOURCELESS_UCODE} != "no"
448 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" && \
449 ${MACHINE_CPUARCH} != "powerpc"
454 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
455 # no BUS_SPACE_UNSPECIFIED
456 # No barrier instruction support (specific to this driver)
458 # intr_disable() is a macro, causes problems
459 .if ${MK_SOURCELESS_UCODE} != "no"
464 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
474 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
480 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
490 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
496 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
499 _linprocfs= linprocfs
503 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
504 _opensolaris= opensolaris
507 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
522 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
525 .if ${MACHINE} != "pc98"
529 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
539 .if ${MK_SOURCELESS_HOST} != "no"
543 .if ${MK_SOURCELESS_HOST} != "no"
555 .if ${MK_SOURCELESS_UCODE} != "no"
560 .if ${MK_SOURCELESS_UCODE} != "no"
564 .if ${MK_SOURCELESS_UCODE} != "no"
569 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
575 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
583 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
593 .if ${MK_SOURCELESS_UCODE} != "no"
600 .if ${MACHINE_CPUARCH} == "amd64"
611 .if ${MACHINE_CPUARCH} == "i386"
612 # XXX some of these can move to the general case when de-i386'ed
613 # XXX some of these can move now, but are untested on other architectures.
615 _3dfx_linux= 3dfx_linux
619 .if ${MK_SOURCELESS_UCODE} != "no"
623 .if ${MK_SOURCELESS_UCODE} != "no"
646 .if ${MACHINE} == "i386"
647 .if ${MK_EISA} != "no"
653 .if ${MK_SOURCELESS_UCODE} != "no"
659 .elif ${MACHINE} == "pc98"
668 .if ${MACHINE_CPUARCH} == "arm"
674 .if ${MACHINE_CPUARCH} == "powerpc"
682 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
686 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
690 _nvram= powermac_nvram
691 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
692 _opensolaris= opensolaris
700 .if ${MACHINE_ARCH} == "powerpc64"
701 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
706 .if ${MACHINE_CPUARCH} == "sparc64"
712 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
713 _opensolaris= opensolaris
717 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
724 .for reject in ${WITHOUT_MODULES}
725 SUBDIR:= ${SUBDIR:N${reject}}
728 # Calling kldxref(8) for each module is expensive.
729 .if !defined(NO_XREF)
730 .MAKEFLAGS+= -DNO_XREF
732 @if type kldxref >/dev/null 2>&1; then \
733 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
734 kldxref ${DESTDIR}${KMODDIR}; \
738 .include <bsd.subdir.mk>