diff options
author | emaste <emaste@FreeBSD.org> | 2010-09-13 18:26:34 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2010-09-13 18:26:34 +0000 |
commit | 9a10f7c4328c6763a33844ed9635ef3c2a7f1e84 (patch) | |
tree | 733562e03aa6a7dfe6da8c1ba88ff4869cd5a906 /usr.sbin/config | |
parent | 8fc202916b0110a57a11545a2588c16ed04135f4 (diff) | |
download | FreeBSD-src-9a10f7c4328c6763a33844ed9635ef3c2a7f1e84.zip FreeBSD-src-9a10f7c4328c6763a33844ed9635ef3c2a7f1e84.tar.gz |
Allow a kernel config to specify a set but empty value via
'makeoptions OPTION=' for consistency with the make commandline.
Previously 'makeoptions WERROR=' would result in a syntax error; now
it produces the same effect as 'makeoptions WERROR'. Both forms now
result in 'WERROR=' in the generated Makefile.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/config.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 430bbf0..808b673 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -261,6 +261,7 @@ Mkopt_list: Mkoption: Save_id { newopt(&mkopt, $1, ns(""), 0); } | + Save_id EQUALS { newopt(&mkopt, $1, ns(""), 0); } | Save_id EQUALS Opt_value { newopt(&mkopt, $1, $3, 0); } | Save_id PLUSEQUALS Opt_value { newopt(&mkopt, $1, $3, 1); } ; |