qemu-cr16/pc-bios/dtb/meson.build
BALATON Zoltan 3c21f9dfcf
hw/ppc/pegasos2: Add VOF support for pegasos1
When running without firmware ROM using Virtual Open Firmware we need
to do some hardware initialisation and provide the device tree as the
machine firmware would normally do.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/qemu-devel/d2d7f173dbd436b47382f384d5a93eb7e713424e.1761176219.git.balaton@eik.bme.hu
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
2025-10-23 17:37:39 +05:30

25 lines
649 B
Meson

dtbs = [
'bamboo.dtb',
'canyonlands.dtb',
'pegasos1.dtb',
'pegasos2.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