Re-land "Add ability to check /etc/lsb-release for HWID"

This reverts commit 33ab35b140d9d0da49d971cad26fb2f1b52215b0.


Add ability to check /etc/lsb-release for HWID

This is enabled by a compile-time option, only.

On certain boards HWID may not be available via normal means.
This functionality allows a compile-time choice to enable
behavior that will check /etc/lsb-release for an
HWID_OVERRIDE=<id> entry instead.

CQ-DEPEND=CL:186482
BUG=None
TEST=unit tests

Change-Id: I75a7bcf7219fbb19670647746735c814dacf7879
Reviewed-on: https://chromium-review.googlesource.com/187040
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/SConstruct b/SConstruct
index 341622b..489f956 100644
--- a/SConstruct
+++ b/SConstruct
@@ -222,6 +222,7 @@
                    hardware.cc
                    http_common.cc
                    http_fetcher.cc
+                   hwid_override.cc
                    install_plan.cc
                    libcurl_http_fetcher.cc
                    metadata.cc
@@ -272,6 +273,7 @@
                             gpio_mock_udev_interface.cc
                             graph_utils_unittest.cc
                             http_fetcher_unittest.cc
+                            hwid_override_unittest.cc
                             metadata_unittest.cc
                             mock_http_fetcher.cc
                             mock_system_state.cc