From 1c1a2e459655c6062ab4fc425cb055360a75b3f3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 8 Oct 2013 12:10:54 +0200 Subject: wafsamba: add CONFIG_RESET() Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- buildtools/wafsamba/samba_autoconf.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index e14f9cd321e..e726536eb4e 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -495,6 +495,14 @@ def CONFIG_SET(conf, option): if v == (): return False return True + +@conf +def CONFIG_RESET(conf, option): + if option not in conf.env: + return + del conf.env[option] + +Build.BuildContext.CONFIG_RESET = CONFIG_RESET Build.BuildContext.CONFIG_SET = CONFIG_SET Build.BuildContext.CONFIG_GET = CONFIG_GET -- cgit