fwupd/plugins/flashrom/meson.build
Daniel Campello fe073a304d flashrom: add lspcon-i2c-spi programmer support
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.
2021-04-08 18:12:16 -06:00

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