mirror of
https://git.proxmox.com/git/fwupd
synced 2026-03-28 19:55:48 +00:00
In the latest version of the LVFS you can restrict the firmware to a specific machine type, for instance a specific baseboard vendor. This is the same as done in Microsoft Update using the CHID mechanism. This commit adds support for the <hardware> requires type, although it needs to be built against appstream-glib 0.7.4 to be supported and/or tested.
14 lines
318 B
Meson
14 lines
318 B
Meson
gcab = find_program('gcab', required : false)
|
|
if gcab.found()
|
|
hwid_test_firmware = custom_target('hwid-test-firmware',
|
|
input : [
|
|
'firmware.bin',
|
|
'firmware.metainfo.xml',
|
|
],
|
|
output : 'hwid-1.2.3.cab',
|
|
command : [
|
|
gcab, '--create', '--nopath', '@OUTPUT@', '@INPUT@',
|
|
],
|
|
)
|
|
endif
|