|
@@ -57,10 +57,6 @@ blobs = [
|
|
'efi-e1000e.rom',
|
|
'efi-e1000e.rom',
|
|
'efi-vmxnet3.rom',
|
|
'efi-vmxnet3.rom',
|
|
'qemu-nsis.bmp',
|
|
'qemu-nsis.bmp',
|
|
- 'bamboo.dtb',
|
|
|
|
- 'canyonlands.dtb',
|
|
|
|
- 'petalogix-s3adsp1800.dtb',
|
|
|
|
- 'petalogix-ml605.dtb',
|
|
|
|
'multiboot.bin',
|
|
'multiboot.bin',
|
|
'multiboot_dma.bin',
|
|
'multiboot_dma.bin',
|
|
'linuxboot.bin',
|
|
'linuxboot.bin',
|
|
@@ -84,6 +80,27 @@ blobs = [
|
|
'vof-nvram.bin',
|
|
'vof-nvram.bin',
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+dtc = find_program('dtc', required: false)
|
|
|
|
+foreach f : [
|
|
|
|
+ 'bamboo.dts',
|
|
|
|
+ 'canyonlands.dts',
|
|
|
|
+ 'petalogix-s3adsp1800.dts',
|
|
|
|
+ 'petalogix-ml605.dts',
|
|
|
|
+]
|
|
|
|
+ out = fs.replace_suffix(f, '.dtb')
|
|
|
|
+ if dtc.found()
|
|
|
|
+ custom_target(f,
|
|
|
|
+ build_by_default: have_system,
|
|
|
|
+ input: files(f),
|
|
|
|
+ output: out,
|
|
|
|
+ install: get_option('install_blobs'),
|
|
|
|
+ install_dir: qemu_datadir,
|
|
|
|
+ command: [ dtc, '-I', 'dts', '-O', 'dtb', '-o', '@OUTPUT@', '@INPUT0@' ])
|
|
|
|
+ else
|
|
|
|
+ blobs += out
|
|
|
|
+ endif
|
|
|
|
+endforeach
|
|
|
|
+
|
|
if get_option('install_blobs')
|
|
if get_option('install_blobs')
|
|
install_data(blobs, install_dir: qemu_datadir)
|
|
install_data(blobs, install_dir: qemu_datadir)
|
|
endif
|
|
endif
|