]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kmod build: start generating opt_global.h, include it
authorkevans <kevans@FreeBSD.org>
Wed, 29 Jan 2020 18:50:55 +0000 (18:50 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 29 Jan 2020 18:50:55 +0000 (18:50 +0000)
commit31fe1a2de1a19e8d1a4682821fa114579d4c6dc4
treefbc185edafe281579f25da08dd4146a0a8de63a9
parent5dd165422221a2adf19d2b87d865337a85548fea
kmod build: start generating opt_global.h, include it

For untied module builds, we'll generate opt_foo headers if they're included
in SRCS. However, options that would normally be represented in opt_global.h
aren't properly represented.

Start generating opt_global.h with #define VIMAGE for !mips since it's
almost universally a project default and right now kmods must hack it in
themselves in order to be properly compiled for the default kernel. For
example, ^/sys/modules/pf/Makefile

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D23345
sys/conf/config.mk
sys/conf/kmod.mk