mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
9ab286b7c1
This Makefile sets KERN_OPTS. This permits kernel module Makefiles to use KERN_OPTS to control the value of variables such as SRCS that are used by bsd.kmod.mk for KERN_OPTS values that honor WITH/WITHOUT options for standalone builds.
17 lines
454 B
Makefile
17 lines
454 B
Makefile
# $FreeBSD$
|
|
#
|
|
# Handle options (KERN_OPTS) for kernel module options. This can be included earlier in a kmod Makefile
|
|
# to allow KERN_OPTS to control SRCS, etc.
|
|
|
|
.if !target(__<kmod.opts.mk>__)
|
|
__<kmod.opts.mk>__:
|
|
|
|
.include <bsd.init.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"
|
|
|
|
.endif # !target(__<kmod.opts.mk>__)
|