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>
25 lines
649 B
Meson
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
|