aboutsummaryrefslogtreecommitdiff
path: root/scripts/minikconf.py
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-25 23:36:15 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2019-08-21 16:29:57 +0200
commitc5b35f03c3fcb8c8e0c6efc50f3a9e70dc028c00 (patch)
tree97b57906ff9b534584d81e0d558c95bfb47ffe28 /scripts/minikconf.py
parentfbb04e760f4818a1ba9cfde0a2571a15cd4f49f7 (diff)
minikconf: don't print CONFIG_FOO=n lines
qemu in general doesn't define CONFIG_FOO if it's false. This also helps with the dumb kconfig parser from meson, as source_set considers any non-empty value as true. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/minikconf.py')
-rw-r--r--scripts/minikconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/minikconf.py b/scripts/minikconf.py
index 3109a81db7..40ae1989e1 100644
--- a/scripts/minikconf.py
+++ b/scripts/minikconf.py
@@ -702,8 +702,8 @@ if __name__ == '__main__':
config = data.compute_config()
for key in sorted(config.keys()):
- if key not in external_vars:
- print ('CONFIG_%s=%s' % (key, ('y' if config[key] else 'n')))
+ if key not in external_vars and config[key]:
+ print ('CONFIG_%s=y' % key)
deps = open(argv[2], 'w')
for fname in data.previously_included: