fw update: spi device code updater
This code updater is for updating spi flash devices.
It can for example update the host firmware on different server boards
and has following features:
- power down the host before update
- set mux gpios to access spi flash
- (very limited) communication with ME (Management Engine)
- use flashrom to utilize fw with IFD (Intel Flash Descriptor)
- otherwise directly write to the flash chip.
The behavior of this code updater can be configured via EM.
Tested: on Tyan S5549 Board
Change-Id: I27803b7fded71af2364c2f55fad841a410603dec
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/bios-spi/meson.build b/bios-spi/meson.build
new file mode 100644
index 0000000..e2d6853
--- /dev/null
+++ b/bios-spi/meson.build
@@ -0,0 +1,27 @@
+
+bios_spi_src = files(
+ 'spi_device.cpp',
+ 'spi_device_code_updater.cpp'
+)
+
+bios_spi_include = include_directories('.')
+
+executable(
+ 'phosphor-fw-update-bios',
+ 'main.cpp',
+ bios_spi_src,
+ include_directories: [
+ common_include,
+ bios_spi_include,
+ ],
+ dependencies: [
+ sdbusplus_dep,
+ phosphor_logging_dep,
+ pdi_dep,
+ boost_dep,
+ libgpiod,
+ libpldm_dep,
+ ],
+ link_with: [libpldmutil, software_common_lib],
+ install: true
+)