mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 07:07:24 -04:00
options/makeman: Handle __REQUIRED_OPTIONS
Teach the code which generates src.conf.5 about __REQUIRED_OPTIONS; without this change it gets confused and thinks that every option turns the required options on. Reviewed by: sjg, imp Differential Revision: https://reviews.freebsd.org/D40591
This commit is contained in:
parent
b908f6c45e
commit
bce9967915
1 changed files with 7 additions and 0 deletions
|
|
@ -117,10 +117,17 @@ show()
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
requireds=`env -i make -f ${srcdir}/share/mk/src.opts.mk \
|
||||
-V '${__REQUIRED_OPTIONS:ts,}'`
|
||||
env -i ${make} .MAKE.MODE=normal "$@" showconfig __MAKE_CONF=/dev/null \
|
||||
SRCCONF=/dev/null |
|
||||
while read var _ val ; do
|
||||
opt=${var#MK_}
|
||||
case ,${requireds}, in
|
||||
*,${opt},*)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
case ${val} in
|
||||
yes)
|
||||
echo ${yes_prefix}_${opt}
|
||||
|
|
|
|||
Loading…
Reference in a new issue