meson: fix dependencies for modinfo #2

modinfo runs the preprocessor and therefore needs all generated input files
to be there.  The "depends" clause does not work in Meson 0.55.3, so for
now use "input".

Part #2: Update the rule for target-specific modules too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210723120156.1183920-1-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Gerd Hoffmann 2021-07-23 14:01:56 +02:00 committed by Paolo Bonzini
parent 7b7ca8ebde
commit 917ddc27d8

View File

@ -2373,9 +2373,9 @@ foreach d, list : target_modules
# FIXME: Should use sl.extract_all_objects(recursive: true) too.
modinfo_files += custom_target(module_name + '.modinfo',
output: module_name + '.modinfo',
input: target_module_ss.sources(),
input: target_module_ss.sources() + genh,
capture: true,
command: [modinfo_collect, '--target', target, '@INPUT@'])
command: [modinfo_collect, '--target', target, target_module_ss.sources()])
endif
endif
endforeach