mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 14:31:52 -06:00
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>
This commit is contained in:
parent
fbb04e760f
commit
c5b35f03c3
1 changed files with 2 additions and 2 deletions
|
@ -702,8 +702,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
config = data.compute_config()
|
config = data.compute_config()
|
||||||
for key in sorted(config.keys()):
|
for key in sorted(config.keys()):
|
||||||
if key not in external_vars:
|
if key not in external_vars and config[key]:
|
||||||
print ('CONFIG_%s=%s' % (key, ('y' if config[key] else 'n')))
|
print ('CONFIG_%s=y' % key)
|
||||||
|
|
||||||
deps = open(argv[2], 'w')
|
deps = open(argv[2], 'w')
|
||||||
for fname in data.previously_included:
|
for fname in data.previously_included:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue