summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2010-09-13 18:26:34 +0000
committeremaste <emaste@FreeBSD.org>2010-09-13 18:26:34 +0000
commit9a10f7c4328c6763a33844ed9635ef3c2a7f1e84 (patch)
tree733562e03aa6a7dfe6da8c1ba88ff4869cd5a906 /usr.sbin/config
parent8fc202916b0110a57a11545a2588c16ed04135f4 (diff)
downloadFreeBSD-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.y1
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); } ;
OpenPOWER on IntegriCloud