mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-10 21:02:02 +00:00

Created lspcon-i2c-spi flashrom device that uses udev to detect i2c devices that can be updated with the lspcon-i2c-spi flashrom programmer. This change implements the logic from crrev.com/c/2792124 adapted to the upstream flashrom plugin.
37 lines
714 B
Meson
37 lines
714 B
Meson
if get_option('plugin_flashrom')
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginFlashrom"']
|
|
|
|
install_data(['flashrom.quirk'],
|
|
install_dir: join_paths(get_option('datadir'), 'fwupd', 'quirks.d')
|
|
)
|
|
|
|
shared_module('fu_plugin_flashrom',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-flashrom-device.c',
|
|
'fu-flashrom-internal-device.c',
|
|
'fu-flashrom-lspcon-i2c-spi-device.c',
|
|
'fu-plugin-flashrom.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args : [
|
|
cargs,
|
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
libflashrom,
|
|
],
|
|
)
|
|
endif
|