diff options
author | Warner Losh <imp@FreeBSD.org> | 2014-11-14 21:10:45 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2014-11-14 21:10:45 +0000 |
commit | 8a3e6d90e52b4227bc3e4b8ff408f0ceedc2e59a (patch) | |
tree | 0b14f3948d72c2233aea461740fbdc18ad93670b /sys/conf | |
parent | 5181481b9ba9bd90754bf47315d6cdd1c983d295 (diff) | |
download | src-8a3e6d90e52b4227bc3e4b8ff408f0ceedc2e59a.tar.gz src-8a3e6d90e52b4227bc3e4b8ff408f0ceedc2e59a.zip |
Automate options INET/INET6 turning into MK_$opt_SUPPORT
correctly. Fixes if_gfe when building without INET6 and
simplifies if_gif's Makefile.
Sponsored by: Netflix, Inc
Notes
Notes:
svn path=/head/; revision=274529
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.opts.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk index 8c7a0baac5d4..16bb13447a71 100644 --- a/sys/conf/kern.opts.mk +++ b/sys/conf/kern.opts.mk @@ -79,6 +79,18 @@ MK_${var}:= no .if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no" MK_${var}_SUPPORT:= no .else +.if defined(KERNBUILDDIR) # See if there's an opt_foo.h +OPT_${var}!= cat ${KERNBUILDDIR}/opt_${var:tl}.h; echo +.if ${OPT_${var}} == "" # nothing -> no +MK_${var}_SUPPORT:= no +.else +MK_${var}_SUPPORT:= yes +.endif +.else # otherwise, yes MK_${var}_SUPPORT:= yes .endif +.endif .endfor + + + |