Makes this custom_target() usage consistent with other ones in QEMU.
Fixes: 6e0dc9d2a8 ("meson: compile bundled device trees")
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Link: https://lore.kernel.org/r/20250610204131.2862-3-shentey@gmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
23 lines
613 B
Meson
23 lines
613 B
Meson
dtbs = [
|
|
'bamboo.dtb',
|
|
'canyonlands.dtb',
|
|
'petalogix-ml605.dtb',
|
|
'petalogix-s3adsp1800.dtb',
|
|
]
|
|
|
|
dtc = find_program('dtc', required: false)
|
|
if dtc.found()
|
|
foreach out : dtbs
|
|
f = fs.replace_suffix(out, '.dts')
|
|
custom_target(out,
|
|
build_by_default: have_system,
|
|
input: files(f),
|
|
output: out,
|
|
install: get_option('install_blobs'),
|
|
install_dir: qemu_datadir / 'dtb',
|
|
command: [ dtc, '-q', '-I', 'dts', '-O', 'dtb',
|
|
'-o', '@OUTPUT@', '@INPUT0@' ])
|
|
endforeach
|
|
else
|
|
install_data(dtbs, install_dir: qemu_datadir / 'dtb')
|
|
endif
|