Add support for the meson build system

The fwupd project has to build in all kinds of crazy targets, e.g. for odd
endians, odd instruction sets, and in odd ways, e.g. installing with a prefix
of /app for projects like flatpak. We also have other "robustness" guarantees
and therefore have a comprehensive set of CI tests which enable a lot of
warning flags and run linting and static analysis code like Coverity.

Rather than hack the Makefile I ported the codebase to use Meson.
Meson is a(nother) next-generation build system used by a lot of open source
projects ranging from low level libraries to desktop software. As part of the
port, I also copied the CONFIG_ logic from the makefile, e.g.

  Option                  Current Value Possible Values Description
  ------                  ------------- --------------- -----------
  config_atahpt           false         [true, false]   Highpoint (HPT) ATA/RAID controllers
  config_atapromise       false         [true, false]   Promise ATA controller
  config_atavia           true          [true, false]   VIA VT6421A LPC memory
...

At the moment I'm using the meson port so I can include flashrom as a subproject
to fwupd as distros are not yet shipping libflashrom as a shared library.

Change-Id: I3d950ece2a0568c09985eab47ddab9df1d0c43a2
Signed-off-by: Richard Hughes <richard@hughsie.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/31248
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
diff --git a/libflashrom.map b/libflashrom.map
new file mode 100644
index 0000000..3c287ff
--- /dev/null
+++ b/libflashrom.map
@@ -0,0 +1,24 @@
+LIBFLASHROM_1.0 {
+  global:
+    flashrom_flag_get;
+    flashrom_flag_set;
+    flashrom_flash_erase;
+    flashrom_flash_getsize;
+    flashrom_flash_probe;
+    flashrom_flash_release;
+    flashrom_image_read;
+    flashrom_image_verify;
+    flashrom_image_write;
+    flashrom_init;
+    flashrom_layout_include_region;
+    flashrom_layout_read_fmap_from_buffer;
+    flashrom_layout_read_fmap_from_rom;
+    flashrom_layout_read_from_ifd;
+    flashrom_layout_release;
+    flashrom_layout_set;
+    flashrom_programmer_init;
+    flashrom_programmer_shutdown;
+    flashrom_set_log_callback;
+    flashrom_shutdown;
+  local: *;
+};