pc-bios: Move device tree files in their own subdir
We have several device tree files already and may have more in the future so add a new dtb subdirectory and move device tree files there so they are not mixed with ROM binaries. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <57f179bd3904c1f2ca062ca4d4ff9592bb4f4daa.1745402140.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
fcb1ad456c
commit
12963e79ca
13 changed files with 29 additions and 25 deletions
23
pc-bios/dtb/meson.build
Normal file
23
pc-bios/dtb/meson.build
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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(f,
|
||||
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
|
||||
|
|
@ -86,31 +86,10 @@ blobs = [
|
|||
'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, '-q', '-I', 'dts', '-O', 'dtb',
|
||||
'-o', '@OUTPUT@', '@INPUT0@' ])
|
||||
else
|
||||
blobs += out
|
||||
endif
|
||||
endforeach
|
||||
|
||||
if get_option('install_blobs')
|
||||
install_data(blobs, install_dir: qemu_datadir)
|
||||
endif
|
||||
|
||||
subdir('descriptors')
|
||||
subdir('dtb')
|
||||
subdir('keymaps')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue