From 7efd23338a0d18d596aa1058896e72d1ee3cb501 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Mon, 15 Jul 2019 16:13:49 -0700 Subject: Add command line parser for simulator Add a command line parser. Also add the support to parse the oem property file and skip certain functions. Bug: 131911365 Test: run simulator for wear builds Change-Id: Ide306b53d3f42b29c02279969aeb18bec4045d6f --- updater/include/updater/build_info.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'updater/include') diff --git a/updater/include/updater/build_info.h b/updater/include/updater/build_info.h index a1355e89a..22299579f 100644 --- a/updater/include/updater/build_info.h +++ b/updater/include/updater/build_info.h @@ -51,9 +51,18 @@ class BuildInfo { // Parses the given target-file, initializes the build properties and extracts the images. bool ParseTargetFile(const std::string_view target_file_path, bool extracted_input); + std::string GetOemSettings() const { + return oem_settings_; + } + void SetOemSettings(const std::string_view oem_settings) { + oem_settings_ = oem_settings; + } + private: // A map to store the system properties during simulation. std::map> build_props_; + // A file that contains the oem properties. + std::string oem_settings_; // A map from the blockdev_name to the FakeBlockDevice object, which contains the path to the // temporary file. std::map> blockdev_map_; -- cgit v1.2.3