fwupd/plugins/raspberrypi/rpiupdate/meson.build
Richard Hughes 9f0c47b36a Fix the raspberrypi self test code under meson
Also, refactor the common test code to a new source file.
2017-04-13 10:09:33 +01:00

31 lines
776 B
Meson

tar = find_program('tar', required : false)
if tar.found()
raspberrypi_firmware_files = [
'README',
'start.elf',
'overlays/test.dtb',
]
raspberrypi_firmware_bin = custom_target('raspberrypi-firmware-tar',
input : raspberrypi_firmware_files,
output : 'firmware.bin',
command : [
tar, '--directory=' + meson.current_source_dir(),
'-cf', '@OUTPUT@', raspberrypi_firmware_files,
],
)
endif
gcab = find_program('gcab', required : false)
if gcab.found()
raspberrypi_firmware_cab = custom_target('raspberrypi-firmware-cab',
input : [
'firmware.bin',
'firmware.metainfo.xml',
],
output : 'rpi-firmware-20150805.cab',
command : [
gcab, '--create', '--nopath', '@OUTPUT@', '@INPUT@',
],
)
endif