From 9a10f7c4328c6763a33844ed9635ef3c2a7f1e84 Mon Sep 17 00:00:00 2001 From: emaste Date: Mon, 13 Sep 2010 18:26:34 +0000 Subject: 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. --- usr.sbin/config/config.y | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin/config/config.y') 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); } ; -- cgit v1.1