Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kmod.mk
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
AWK?= awk | AWK?= awk | ||||
KMODLOAD?= /sbin/kldload | KMODLOAD?= /sbin/kldload | ||||
KMODUNLOAD?= /sbin/kldunload | KMODUNLOAD?= /sbin/kldunload | ||||
KMODISLOADED?= /sbin/kldstat -q -n | KMODISLOADED?= /sbin/kldstat -q -n | ||||
OBJCOPY?= objcopy | OBJCOPY?= objcopy | ||||
.include <bsd.init.mk> | .include "kmod.opts.mk" | ||||
# Grab all the options for a kernel build. For backwards compat, we need to | |||||
# do this after bsd.own.mk. | |||||
.include "kern.opts.mk" | |||||
.include <bsd.compiler.mk> | |||||
.include "config.mk" | |||||
# Search for kernel source tree in standard places. | # Search for kernel source tree in standard places. | ||||
.if empty(KERNBUILDDIR) | .if empty(KERNBUILDDIR) | ||||
.if !defined(SYSDIR) | .if !defined(SYSDIR) | ||||
.for _dir in ${SRCTOP:D${SRCTOP}/sys} \ | .for _dir in ${SRCTOP:D${SRCTOP}/sys} \ | ||||
${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys | ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys | ||||
.if !defined(SYSDIR) && exists(${_dir}/kern/) | .if !defined(SYSDIR) && exists(${_dir}/kern/) | ||||
SYSDIR= ${_dir:tA} | SYSDIR= ${_dir:tA} | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |